I get the following php notices when I set WP_DEBUG to true in my wp-config.php file.
Notice: Undefined index: ec3_before in /etcl/www/wordpress/wp-content/plugins/event-calendar-3-for-php-53/eventcalendar3.php on line 993
Notice: Undefined variable: a in /etcl/www/wordpress/wp-content/plugins/event-calendar-3-for-php-53/eventcalendar3.php on line 994
Those are being thrown by the last two lines of this block from eventcalendar3.php
if( !empty($wp_query->query_vars['ec3_after']) )
$a=$wp_query->query_vars['ec3_after'];
else if( !empty($wp_query->query_vars['ec3_from']) )
$a=$wp_query->query_vars['ec3_from'];
$b=$wp_query->query_vars['ec3_before'];
if( $a=='today' )
I've been unable to figure out how to ensure those entries in the query_vars array have sensible values. I've posted to the support group for the plugin, but it doesn't look very lively, so I'm not too optimistic. It looks like we can suppress the notices and the functionality is more or less OK (the content area's single item or listing on What's New in shows up, but I suspect the widget in the sidebar isn't working properly).
In wp-content/plugins/event-calendar-3-for-php-53.php, there is this function call:
load_plugin_textdomain('ec3','wp-content/plugins/'.$mydir.'/gettext');
That 2-argument signature is deprecated. There should be three arguments, the second of which is "false, ". Like this :
load_plugin_textdomain('ec3',false,'wp-content/plugins/'.$mydir.'/gettext');
I've fixed that in this instance, but of course unless the plugin is fixed, every time we update the plugin we'll have to make this change again.
This blog is for work done for academic departments which does not fall under other categories.
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
| << < | Current | > >> | ||||
| 1 | 2 | |||||
| 3 | 4 | 5 | 6 | 7 | 8 | 9 |
| 10 | 11 | 12 | 13 | 14 | 15 | 16 |
| 17 | 18 | 19 | 20 | 21 | 22 | 23 |
| 24 | 25 | 26 | 27 | 28 | 29 | 30 |