Hi,

While writing code to log calls to cron hooks, I noticed that the script common.inc is not always loaded before poormanscron_exit() is called. I learned this the hard way by having crontabs fail because the Acidfree module was trying to call drupal_get_path().

The solution for this is to put

include_once("includes/common.inc");

into poormanscron_exit() before the code to invoke the cron hooks.

-- Doug

Comments

dave reid’s picture

Status: Active » Closed (duplicate)

Marking as a duplicate of #231724: Incompatible with page caching (incomplete cron runs, possible PHP fatal errors) since there has been more progress in that issue.