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.
- The topic ‘Bug: unfound search term generates errors’ is closed to new replies.