Archives for: June 2012, 08

08/06/12

Permalink 12:00:16 pm, by sarneil, 186 words, 113 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).

Permalink 10:13:03 am, by sarneil, 79 words, 163 views   English (CA)
Categories: Activity log; Mins. worked: 90

etcl : solved: wp event calendar 3 bug throws load_plugin_textdomain deprecated warning

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.

Depts

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

Reports

Categories

June 2012
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

XML Feeds