PDA

View Full Version : Scheduled Task Error


DJ Biscuit
03-02-2011, 05:24 AM
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
03-02-2011, 12:45 PM
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
03-02-2011, 01:36 PM
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
03-02-2011, 06:38 PM
I will test with an expired subscription.

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

DJ Biscuit
03-02-2011, 06:42 PM
Exactly what I thought. Unfortunately this error prevents plugins on the paidsub_delete hook from running.

PitchouneN64ngc
03-03-2011, 06:18 AM
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.