PDA

View Full Version : Scheduled Task Error


DJ Biscuit
02 Mar 2011, 06:24
It seems project tools causes an error when running the Subscriptions scheduled task manually.

This is the error I get:

Fatal error: Call to a member function query_read() on a non-object in /home/{REMOVED}/domains/{REMOVED}/public_html/newforums/dev/includes/adminfunctions_projecttools.php on line 125



I am using Project Tools 2.1.2 and vBulletin 4.1.2

PitchouneN64ngc
02 Mar 2011, 13:45
This error is strange as all the needed code is present.

I ran the 3 scheduled tasks on my install and there is no error. Can you retry to put again ./includes/adminfunctions_projecttools.php in your server?

DJ Biscuit
02 Mar 2011, 14:36
I've tried it on 2 different installations of vB4 (4.1.2 and 4.0.7). and Project Tools 2.1.1 and 2.1.2.

Seems to happen when you have a paid subscription that expires.

PitchouneN64ngc
02 Mar 2011, 19:38
I will test with an expired subscription.

This is strange as $db is globalized at line 120...

DJ Biscuit
02 Mar 2011, 19:42
Exactly what I thought. Unfortunately this error prevents plugins on the paidsub_delete hook from running.

PitchouneN64ngc
03 Mar 2011, 07:18
Really strange as PT as nothing to do with paid subscription.

Maybe you can try to add to $specialtemplates 'pt_permissions' for THIS_SCRIPT == 'cron' but I'm not sure it will fix it.