Running Cron Manually

shirleyto's picture

Hi there,

I'm trying to run cron manually for the site search feature but it's giving me this error:

 Fatal error: Call to undefined function the_time() in <<site path>>includes/common.inc(1646) : eval()'d code on line 55

I took a look at common.inc and bootstrap.inc but I don't think what I'm looking for is in either of those files...? What should I look at?

Thanks.

-shirley

Login to post comments

This isn't a problem with cron

christefano's picture
christefano - Fri, 2009-06-05 06:44

This isn't a problem with cron but with a third-party module (or custom PHP somewhere else that's being run by the PHP input filter). Have you searched through your codebase or a database dump for this function name? I don't know of any function called "the_time()" in Drupal core.

Try disabling the PHP input filter and then running cron manually. If the problem doesn't go away, it's being caused by a module. If the problem does go away, then it's probably caused by custom PHP in a node, view or block. You'll need to audit all of your blocks, views and nodes that have custom PHP in them or use a tool to search through a database dump to isolate the code.


Looked at database dump and found the problem

shirleyto's picture
shirleyto - Tue, 2009-06-09 06:46

I did a database dump like you suggested and found the offending function call (in node_revisions table), removed it and cron ran fine.

Thanks for your help!