Title: Warning: array_combine() [function.array-combine]: Both parameters should have a
Last modified: August 30, 2016

---

# Warning: array_combine() [function.array-combine]: Both parameters should have a

 *  Resolved [maartenkuijpers](https://wordpress.org/support/users/maartenkuijpers/)
 * (@maartenkuijpers)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/warning-array_combine-functionarray-combine-both-parameters-should-have-a/)
 * Get this error:
 * Warning: array_combine() [function.array-combine]: Both parameters should have
   at least 1 element in /var/www/vhosts/ruudhuijbregts.nl/httpdocs/wp-content/plugins/
   google-calendar-events/includes/calendars/views/default-calendar-list.php on 
   line 271
 * [https://wordpress.org/plugins/google-calendar-events/](https://wordpress.org/plugins/google-calendar-events/)

Viewing 13 replies - 1 through 13 (of 13 total)

 *  Plugin Contributor [Nick Young](https://wordpress.org/support/users/nickyoung87/)
 * (@nickyoung87)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/warning-array_combine-functionarray-combine-both-parameters-should-have-a/#post-6739955)
 * What are the settings you have for the calendar causing this issue?
 * I have not seen this before and will try to reproduce to test it, but any additional
   info you might have will be very helpful. Maybe a test page link that shows the
   issue?
 * Thanks!
 *  Thread Starter [maartenkuijpers](https://wordpress.org/support/users/maartenkuijpers/)
 * (@maartenkuijpers)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/warning-array_combine-functionarray-combine-both-parameters-should-have-a/#post-6739980)
 * Hi Nick, thanks for coming back at this!
    The issue is currently visible on [http://www.ruudhuijbregts.nl](http://www.ruudhuijbregts.nl).
   I’ve not removed the calendar yet as it’s a low profile website.
 * I’m using Twenty Twelve theme and put the Simple Calendar in the main widget 
   area, one instance per language I’m using (NL & GB). Perhaps related to the Twenty
   Twelve theme, but the Simple Calendar widgets were moved to a differnt widget
   area. When moving them back to the main area, the events are now becoming visible
   underneath the error message.
 * I cannot access the related gmail account as this is not my own. The calendar
   however is public and can be imported. Here are the plugin settings:
    – Public
   calendar ID = [8hcmcc6e3k038mcadf3722mq74@group.calendar.google.com](https://wordpress.org/support/topic/warning-array_combine-functionarray-combine-both-parameters-should-have-a/8hcmcc6e3k038mcadf3722mq74@group.calendar.google.com?output_format=md)(
   first upcoming event on 22 Nov) – Event Sources: google calendar API filled in(
   40 chars) – General: Attach Calendars is empty. – Advanced: all checkboxes unchecked.
 * Please let me know if you need any specific setting!
    Thanks!
 *  [HennerB](https://wordpress.org/support/users/hennerb/)
 * (@hennerb)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/warning-array_combine-functionarray-combine-both-parameters-should-have-a/#post-6739993)
 * Hi,
 * I have the same problem after the update with several calendars, in fact the 
   error message is even a bit longer ([http://prntscr.com/928gqg](http://prntscr.com/928gqg)).
 * It seems that it has something to do with the calendars, because I can switch
   the error message on and off, only by changing the calendar ID.
 * A calendar without problems is e.g. [ag-bremen@albert-schweitzer-stiftung.de](https://wordpress.org/support/topic/warning-array_combine-functionarray-combine-both-parameters-should-have-a/ag-bremen@albert-schweitzer-stiftung.de?output_format=md)
   and a calendar which shows the error-message is e.g. [albert-schweitzer-stiftung.de_ajdbk2afree43sbrdppn569u5c@group.calendar.google.com](https://wordpress.org/support/topic/warning-array_combine-functionarray-combine-both-parameters-should-have-a/albert-schweitzer-stiftung.de_ajdbk2afree43sbrdppn569u5c@group.calendar.google.com?output_format=md)
 *  [HennerB](https://wordpress.org/support/users/hennerb/)
 * (@hennerb)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/warning-array_combine-functionarray-combine-both-parameters-should-have-a/#post-6739994)
 * Another thing I found out is that I can make the error message disappear by changing
   the Appearance Settings from 3 Months (error) to 3 Events (no error).
    Maybe 
   that helps…
 *  [HennerB](https://wordpress.org/support/users/hennerb/)
 * (@hennerb)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/warning-array_combine-functionarray-combine-both-parameters-should-have-a/#post-6739996)
 * It seems also that the error occurs only in calendars with no upcoming events
   to show and with the appearance settings set to months instead of events.
 * Another thing I found by playing around, is that if I set Appearance to 7 Events
   a calendar with 2 upcoming events (Nov 29 and Dec 5) is only showing the first
   event. Both events are displayed again correctly if I change the Appperance Setting
   back to 3 Months…
 *  [HennerB](https://wordpress.org/support/users/hennerb/)
 * (@hennerb)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/warning-array_combine-functionarray-combine-both-parameters-should-have-a/#post-6740013)
 * Even I am not sure about this, but for the last point I mentioned it seems, that
   events are only shown if they are still in November and not yet in December. 
   But maybe it has nothing to to with the month but with days in the future.
 *  [DaBau](https://wordpress.org/support/users/dabau/)
 * (@dabau)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/warning-array_combine-functionarray-combine-both-parameters-should-have-a/#post-6740031)
 * Same problem here – hope you guys can fix it, since it’s the best plugin.
 * I have looked into the mentioned line 318, and it is definitely a problem related
   to the filtering option, that let you decide how many events in the past and 
   future should be shown.
 * I tried changing the amount of events as well as start/end dates, but I can’t
   get rid of the failure.
 *  Plugin Contributor [Nick Young](https://wordpress.org/support/users/nickyoung87/)
 * (@nickyoung87)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/warning-array_combine-functionarray-combine-both-parameters-should-have-a/#post-6740068)
 * Thanks for all the additional information guys. We will have to look into it 
   and get back to you about it.
 *  [imdtracy](https://wordpress.org/support/users/imdtracy/)
 * (@imdtracy)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/warning-array_combine-functionarray-combine-both-parameters-should-have-a/#post-6740072)
 * I get a similar error when my calendar is set to list view and there are no upcoming
   events:
 * Warning: array_combine() [function.array-combine]: Both parameters should have
   at least 1 element in /home/mrcoho2/public_html/wp-content/plugins/google-calendar-
   events/includes/calendars/views/default-calendar-list.php on line 285
 * Warning: array_intersect_key() [function.array-intersect-key]: Argument #2 is
   not an array in /home/mrcoho2/public_html/wp-content/plugins/google-calendar-
   events/includes/calendars/views/default-calendar-list.php on line 285
 * Warning: Invalid argument supplied for foreach() in /home/mrcoho2/public_html/
   wp-content/plugins/google-calendar-events/includes/calendars/views/default-calendar-
   list.php on line 286
 *  Plugin Contributor [Nick Young](https://wordpress.org/support/users/nickyoung87/)
 * (@nickyoung87)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/warning-array_combine-functionarray-combine-both-parameters-should-have-a/#post-6740088)
 * [@imdtracy](https://wordpress.org/support/users/imdtracy/)
 * What are your settings for your calendar?
 *  [imdtracy](https://wordpress.org/support/users/imdtracy/)
 * (@imdtracy)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/warning-array_combine-functionarray-combine-both-parameters-should-have-a/#post-6740092)
 * **Plugin Settings:**
    - Event Sources Tab: Google API is set up and was working until latest update
    - Calendar Tab: No attached calendar
    - Advanced Tab: No boxes checked
 * **Calendar Settings:**
    - Event Source: Google Calendar, Default, List View
    - Events Tab: Calendar start=today, Earliest event=1 month before start date,
      Latest event=2 months after start date
    - Appearance Tab: Span= 5 events, Theme=Light, no other boxes checked
    - Google Calendar Tab: Calendar id=7vp50kvl764aoamdmn4sb0v100@group.calendar.
      google.com, no search query, recurring events=show all, max events=2500
    - Advanced Tab: All settings default except refresh interval set to 2 hours
 *  Plugin Contributor [Nick Young](https://wordpress.org/support/users/nickyoung87/)
 * (@nickyoung87)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/warning-array_combine-functionarray-combine-both-parameters-should-have-a/#post-6740108)
 * Thank you. Will continue to look into it.
 *  Plugin Contributor [Nick Young](https://wordpress.org/support/users/nickyoung87/)
 * (@nickyoung87)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/warning-array_combine-functionarray-combine-both-parameters-should-have-a/#post-6740184)
 * This was resolved in one of the updates. If you are on 3.0.9 then you should 
   not have this issue anymore.

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Warning: array_combine() [function.array-combine]: Both parameters should
have a’ is closed to new replies.

 * ![](https://ps.w.org/google-calendar-events/assets/icon-256x256.png?rev=1263960)
 * [Simple Calendar - Google Calendar Plugin](https://wordpress.org/plugins/google-calendar-events/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-calendar-events/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-calendar-events/)
 * [Active Topics](https://wordpress.org/support/plugin/google-calendar-events/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-calendar-events/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-calendar-events/reviews/)

 * 13 replies
 * 5 participants
 * Last reply from: [Nick Young](https://wordpress.org/support/users/nickyoung87/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/warning-array_combine-functionarray-combine-both-parameters-should-have-a/#post-6740184)
 * Status: resolved