Download & Extend

common.inc does not always get loaded

Project:Poormanscron
Version:4.6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (duplicate)

Issue Summary

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

#1

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.