Recent Topics

1 Apr 05, 2006 00:11    

I can run getmail OK with the following:
I installed psuedo-cron to run getmail whenever there was a hit on a page. I get the following error:

../b2evolution/blogs/htsrv/getmail.php # check email"

Running 01 * * * * ../b2evolution/blogs/htsrv/getmail.php # check email
Last run: Wed, 31 Dec 1969 16:00:00 -0800
Last scheduled: Wed, 31 Dec 1969 16:01:00 -0800

Fatal error: Call to a member function on a non-object in /var/www/html/b2evolution/blogs/b2evocore/_class_settings.php on line 30
What do I need to fix?

2 Apr 05, 2006 01:16

Line 30 seems to be this, right?

$result = $DB->get_results( "SELECT * FROM $tablesettings" );

Then the problem is there's no DB object.

And that would be strange, because _config.php is included at the beginning of getmail.php.

Is pseudo-cron invoked by the webserver/through a page-hit? Or is it called through PHP's CLI (command line interface)?

You should try setting

ini_set( 'display_errors', 'On' );

at the top of "pseudo-cron" and see if it outputs anything (despite the current fatal error).

3 Apr 05, 2006 02:07

Psudeo-cron is invoked with an include statement on a web page. As I stated, it runs OK when I type it in as http://webpage/htsrv/getmail.php. That's what has me stumped. The database is there, getmail reads it correctly when involked via the http line, but not from the include statement for psuedo-cron to involk getmail.

Form is loading...