common.inc does not always get loaded

dmuth - January 29, 2006 - 03:48
Project:Poormanscron
Version:4.6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

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

#1

Dave Reid - April 20, 2009 - 17:33
Status:active» 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.

 
 

Drupal is a registered trademark of Dries Buytaert.