Running Cron Manually
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
Groups:
Login to post comments

Ical feed
This isn't a problem with cron
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
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!