etcl : undefined variable and index in Event Calendar 3 code

08/06/12

Permalink 12:00:16 pm, by sarneil, 186 words, 109 views   English (CA)
Categories: Activity log; Mins. worked: 90

etcl : undefined variable and index in Event Calendar 3 code

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).

Pingbacks:

No Pingbacks for this post yet...

Depts

This blog is for work done for academic departments which does not fall under other categories.

Reports

Categories

May 2013
Sun Mon Tue Wed Thu Fri Sat
 << <   > >>
      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 31  

XML Feeds