Title: Array Error
Last modified: August 30, 2016

---

# Array Error

 *  Resolved [greencircleprojects](https://wordpress.org/support/users/greencircleprojects/)
 * (@greencircleprojects)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/array-error-10/)
 * Hello
    When I attempt to create a calendar (following all the steps I used before,
   using the Google Calendar Events) I get this error after trying to view the calendar:
 * Warning: array_combine(): Both parameters should have at least 1 element in /
   var/www/vhosts/trailspring.org/httpdocs/wp-content/plugins/google-calendar-events/
   includes/calendars/views/default-calendar-grid.php on line 318 Warning: array_intersect_key():
   Argument #2 is not an array in /var/www/vhosts/trailspring.org/httpdocs/wp-content/
   plugins/google-calendar-events/includes/calendars/views/default-calendar-grid.
   php on line 318 Warning: Invalid argument supplied for foreach() in /var/www/
   vhosts/trailspring.org/httpdocs/wp-content/plugins/google-calendar-events/includes/
   calendars/views/default-calendar-grid.php on line 322
 * I’m not savvy with code in the least, any help clearing this error would be greatly
   appreciated.
 * [https://wordpress.org/plugins/google-calendar-events/](https://wordpress.org/plugins/google-calendar-events/)

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

 *  [sanderton](https://wordpress.org/support/users/sanderton/)
 * (@sanderton)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/array-error-10/#post-6825045)
 * Exact same problem.
 *  Thread Starter [greencircleprojects](https://wordpress.org/support/users/greencircleprojects/)
 * (@greencircleprojects)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/array-error-10/#post-6825201)
 * Any help with this would be super appreciated. I haven’t updated any of our other
   sites to the new Simple Calendar for fear of this issue springing up there as
   well.
 * I followed all the steps to create the calendar that I would’ve to previously
   create a Google Calendar Events calendar. I have the API key, the calendar is
   Public, etc.
 * Using the basic settings as well, nothing custom. Grid view.
 * Even tried to switch to List view to see if that were achievable, but no.
 * Definitely not ruling out user error, but I’m not sure how to prove out causes
   as it looks to be a code issue.
 *  Plugin Contributor [Nick Young](https://wordpress.org/support/users/nickyoung87/)
 * (@nickyoung87)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/array-error-10/#post-6825252)
 * What version of the plugin are you running?
 *  [Hulivili](https://wordpress.org/support/users/hulivili/)
 * (@hulivili)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/array-error-10/#post-6825257)
 * Exact same problem, blugin version 3.0.8.
 * All works fine with first calendar, but but when I add other, I get this error
   in Grid view, list view works normally. First one works still normally, problem
   is only second calendar.
 * Warning: array_combine() [function.array-combine]: Both parameters should have
   at least 1 element in /home/customers/s2cvk/public_html/wordpress/wp-content/
   plugins/google-calendar-events/includes/calendars/views/default-calendar-grid.
   php on line 318
 * Warning: array_intersect_key() [function.array-intersect-key]: Argument #2 is
   not an array in /home/customers/s2cvk/public_html/wordpress/wp-content/plugins/
   google-calendar-events/includes/calendars/views/default-calendar-grid.php on 
   line 318
 * Warning: Invalid argument supplied for foreach() in /home/customers/s2cvk/public_html/
   wordpress/wp-content/plugins/google-calendar-events/includes/calendars/views/
   default-calendar-grid.php on line 322
 *  Thread Starter [greencircleprojects](https://wordpress.org/support/users/greencircleprojects/)
 * (@greencircleprojects)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/array-error-10/#post-6825268)
 * I’m using the latest.
 * I’ve deleted it and re-downloaded, re-uploaded, everything.
 *  Plugin Contributor [Nick Young](https://wordpress.org/support/users/nickyoung87/)
 * (@nickyoung87)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/array-error-10/#post-6825272)
 * Ok this is an issue I will look at fixing. Thanks for bringing it to our attention.
 *  Plugin Contributor [Nick Young](https://wordpress.org/support/users/nickyoung87/)
 * (@nickyoung87)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/array-error-10/#post-6825291)
 * Is this fixed for you in 3.0.9?
 *  Thread Starter [greencircleprojects](https://wordpress.org/support/users/greencircleprojects/)
 * (@greencircleprojects)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/array-error-10/#post-6825292)
 * Yes! Looks like whatever you did worked. Thanks a ton.
 *  Plugin Contributor [Nick Young](https://wordpress.org/support/users/nickyoung87/)
 * (@nickyoung87)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/array-error-10/#post-6825294)
 * Awesome! Happy to help.
 * If you have a second could you quickly rate our plugin if you haven’t already?
   It keeps us highly motivated to continue improving the plugin and helps spread
   the word so more folks find it.
 * Click here to rate us
 * Thanks!

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

The topic ‘Array Error’ 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/)

 * 9 replies
 * 4 participants
 * Last reply from: [Nick Young](https://wordpress.org/support/users/nickyoung87/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/array-error-10/#post-6825294)
 * Status: resolved