[Solved] Fatal error after upgrading test site...

The members of the Dev team will place issues here that they consider to be solved.
Post Reply
janaf
Forum Members
Forum Members
Posts: 183
Joined: Sun Jan 10, 2010 7:02 pm

[Solved] Fatal error after upgrading test site...

Post by janaf »

After upgrading from the latest 1.9.x to 1.10 (without problems) I could log on to the admin page once, see the front end once, with a number of smarty errors from invalidated module tags.

First time I click on a an admin pages menue, now I get, both on admin and front end:
Fatal error: Call to a member function get_tasks() on a non-object in /var/www/testsite/lib/classes/class.CmsRegularTaskHandler.php on line 87
I have a clean 1.10 install working fine on the same system.

So I suppose its a core error but caused by some module.. ???
Last edited by janaf on Sat Aug 20, 2011 8:34 pm, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Fatal error after upgrading test site...

Post by calguy1000 »

Nope, that one appears to be a genuine bug. in the modules_with_capability cache stuff.

I've commited a fix to it to svn, and here's the diff:

Index: class.CmsRegularTaskHandler.php
===================================================================
--- class.CmsRegularTaskHandler.php (revision 7338)
+++ class.CmsRegularTaskHandler.php (revision 7340)
@@ -82,6 +82,7 @@
if (!$modules) return;
foreach( $modules as $one )
{
+ if( !is_object($one) ) $one = cms_utils::get_module($one);
if( !method_exists($one,'get_tasks') ) continue;

$tasks = $one->get_tasks()
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
janaf
Forum Members
Forum Members
Posts: 183
Joined: Sun Jan 10, 2010 7:02 pm

Re: Fatal error after upgrading test site...

Post by janaf »

The fix is confirmed OK on my install...
Post Reply

Return to “Closed Issues”