Title: Bug: unfound search term generates errors
Last modified: August 30, 2016

---

# Bug: unfound search term generates errors

 *  Resolved [steevithak](https://wordpress.org/support/users/steevithak/)
 * (@steevithak)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/bug-unfound-search-term-generates-errors/)
 * We use a search term to show only events that match a specific string in the 
   calendar events (the string entered in Calendar Settings -> Google Calendar -
   > Search Query). If matching events are found, everything works great but in 
   a time period with no matching events, a page full of PHP error messages appears.
   The plugin should fail more gracefully, perhaps with a simple messages that says“
   no upcoming events found” or something like that. Here’s what we actually get:
 * Warning: array_combine() [function.array-combine]: Both parameters should have
   at least 1 element in /home/91/33/2003391/web/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/91/33/2003391/web/wp-content/plugins/google-calendar-events/
   includes/calendars/views/default-calendar-list.php on line 285
 * Warning: Invalid argument supplied for foreach() in /home/91/33/2003391/web/wp-
   content/plugins/google-calendar-events/includes/calendars/views/default-calendar-
   list.php on line 286
    Nothing from November 17, 2015 to December 16, 2015.
 * [https://wordpress.org/plugins/google-calendar-events/](https://wordpress.org/plugins/google-calendar-events/)

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

 *  Thread Starter [steevithak](https://wordpress.org/support/users/steevithak/)
 * (@steevithak)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/bug-unfound-search-term-generates-errors/#post-6758767)
 * Given that these are all PHP warnings rather than errors, I wonder if the developers
   accidentally left some sort of debug code in place on the last release? Seems
   like if PHP was suppressing warning messages within the plugin, things would 
   be ok.
 *  Plugin Contributor [Nick Young](https://wordpress.org/support/users/nickyoung87/)
 * (@nickyoung87)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/bug-unfound-search-term-generates-errors/#post-6758845)
 * No it should not be in there. We will be looking into these. We have the array_combine
   issue on our list of bugs already.
 * Thanks for bringing this up to our attention.
 *  Plugin Contributor [Nick Young](https://wordpress.org/support/users/nickyoung87/)
 * (@nickyoung87)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/bug-unfound-search-term-generates-errors/#post-6758904)
 * This should not be happening anymore if you are running 3.0.9.

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

The topic ‘Bug: unfound search term generates errors’ 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/)

## Tags

 * [events](https://wordpress.org/support/topic-tag/events/)
 * [search query](https://wordpress.org/support/topic-tag/search-query/)

 * 3 replies
 * 2 participants
 * Last reply from: [Nick Young](https://wordpress.org/support/users/nickyoung87/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/bug-unfound-search-term-generates-errors/#post-6758904)
 * Status: resolved