PDA

View Full Version : Cron Help Needed


Our House
08-05-2007, 03:34 PM
Hi,

I'm trying to create a custom Scheduled Task in vB. In the cron php file, I need to require/include another file, but whenever I do I get the following error:

Fatal error: Call to a member function on a non-object in /home/xxxxxxx/public_html/testforum/global.php(237) : eval()'d code on line 1

Any advice on how to require other files for a cronjob?

Thanks,
J

Our House
08-15-2007, 03:50 PM
Bump. Anyone?

Paul M
08-15-2007, 06:38 PM
Pretty had to to even guess at the problem, as your description is not very clear. When you say the "cron php file" what file exactly do you mean ?

JFYI, That message is basically complaining about the contents of a plugin linked to the 'style_fetch' hook.

Our House
08-17-2007, 02:37 PM
Thanks, Paul...got it sorted out.

The "cron PHP file" refers to the file that is being run by Scheduled Tasks (the PHP file contained in ./includes/cron)