SourceForge.net
2010-02-28 03:38:42 UTC
Bugs item #2960488, was opened at 2010-02-28 03:38
Message generated for change (Tracker Item Submitted) made by soepy
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=542822&aid=2960488&group_id=75065
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Plugins
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Lionello Lunesu (soepy)
Assigned to: Nobody/Anonymous (nobody)
Summary: get_plugin_title needs more error checking
Initial Comment:
I recently moved my blog from one host to another, and updated to 1.5.2 in the process. Everything seemed to work just fine, apart from the Weather sidebar plugin that needed PEAR Services and Weather to work.
Problems appeared when I tried to install that PEAR lib using "sudo apt-get install php-services-weather". The installation was successful, but suddenly, all of the sidebar plugins disappeared from the blog's homepage and the "configure plugins" admin page stopped working: it would show the first 3 sidebar plugins and then stop without mentioning any error (and no admin menus on the left side either.)
I've tracked the problem down to include/plugin_api.inc.php: get_plugin_title. The line $plugin->generate_content($title); apparently caused an error for the Weather plugin. I was able to fix my problem my commenting that line. The $title would then become a default "[Weather]" but my homepage and more importantly the "configure plugins" admin page continued to work correctly.
When a plugin is not working (missing dependencies?) that should not cause the rest to malfunction. I think the call to $plugin->generate_content needs more error checking. My PHP-fu is not good enough to delve deeper into this.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=542822&aid=2960488&group_id=75065
Message generated for change (Tracker Item Submitted) made by soepy
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=542822&aid=2960488&group_id=75065
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Plugins
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Lionello Lunesu (soepy)
Assigned to: Nobody/Anonymous (nobody)
Summary: get_plugin_title needs more error checking
Initial Comment:
I recently moved my blog from one host to another, and updated to 1.5.2 in the process. Everything seemed to work just fine, apart from the Weather sidebar plugin that needed PEAR Services and Weather to work.
Problems appeared when I tried to install that PEAR lib using "sudo apt-get install php-services-weather". The installation was successful, but suddenly, all of the sidebar plugins disappeared from the blog's homepage and the "configure plugins" admin page stopped working: it would show the first 3 sidebar plugins and then stop without mentioning any error (and no admin menus on the left side either.)
I've tracked the problem down to include/plugin_api.inc.php: get_plugin_title. The line $plugin->generate_content($title); apparently caused an error for the Weather plugin. I was able to fix my problem my commenting that line. The $title would then become a default "[Weather]" but my homepage and more importantly the "configure plugins" admin page continued to work correctly.
When a plugin is not working (missing dependencies?) that should not cause the rest to malfunction. I think the call to $plugin->generate_content needs more error checking. My PHP-fu is not good enough to delve deeper into this.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=542822&aid=2960488&group_id=75065