etcl : partial fix of events listing problems

07/06/12

Permalink 03:38:41 pm, by sarneil, 457 words, 195 views   English (CA)
Categories: Activity log; Mins. worked: 240

etcl : partial fix of events listing problems

The etcl site uses a plugin called event calendar 3 to display events in the content area or the What's New page, the content area of a specific event listing and in the right side-bar of the What's New page and the specific event listing page.
"Event Calendar 3" works with WP 1.5 - 2.7 and php 4
"Event Calendar 3 for php 53" works with WP 1.5 - 3.1 and maybe newer, and presumably php 5.3.
The production site is running php 4.2 and wp 2.6.1
The development site is running php 5.2 and wp 3.3.2

On the production site
"Event Calendar 3" seems to work. I can't see any errors, but I'm not sure if I'm turning on the debug messaging properly (i.e. by putting define('WP_DEBUG', true); into the wp-config file in the root directory).

On the dev site

When I try to activate "Event Calendar 3 for php 53", at the top of the plugins page in the admin interface:
- Notice: load_plugin_textdomain was called with an argument that is deprecated since version 2.7 with no alternative available. in /etcl/www/wordpress/wp-includes/functions.php on line 3553
- Notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /etcl/www/wordpress/wp-includes/functions.php on line 3551
- Notice: Undefined index: page in /etcl/www/wordpress/wp-content/themes/etcl/functions.php on line 86

Similarly, on the What's New page on the site, I see:

In the right sidebar:
- Notice: Undefined variable: and_before in /etcl/www/wordpress/wp-content/plugins/event-calendar-3-for-php-53/template-functions.php on line 405
At the top of the page:
- Notice: load_plugin_textdomain was called with an argument that is deprecated since version 2.7 with no alternative available. in /etcl/www/wordpress/wp-includes/functions.php on line 3553
- 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 995

The functionality seems to work, and the notices "go away" if I turn off the debug reporting (i.e. define('WP_DEBUG', false); in wp-config in the root folder).

I have no desire to start messing around with the code internal to some plugin, especially when the PHP and WP platform I'm running is not explicitly supported by the plug-in.
For example, I looked into the load_plugin_textdomain notice. The problem is supposed to be caused by invoking the method with only two arguments instead of three. There are three instances of that invocation in the codebase and all three of them have three arguments and each appears to have sensible values for those arguments, so I don't know what the problem is.

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

June 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            

XML Feeds