Closed (duplicate)
Project:
Poormanscron
Version:
5.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Oct 2008 at 19:55 UTC
Updated:
20 Apr 2009 at 17:36 UTC
My php error log keeps displaying the following error message (20+ times a day):
PHP Fatal error: Call to undefined function drupal_get_path() in D:\www\domain\sites\all\modules\notifications\notifications.module on line 847
and it's referring to this line in the module:
include_once drupal_get_path('module', 'notifications') .'/notifications.cron.inc';
I have poormanscron set up to run cron jobs every 6 hrs. I will say that messages are being sent so it is working. Is this error message due to using poormanscron?
Thanks
Comments
Comment #1
jose reyero commentedMy guess is that it may be poormanscron not including common.inc for cached pages.
Moving to that module to see if we get any help here.
Comment #2
gpk commentedYes that is correct. There is a patch at #231724: Incompatible with page caching (incomplete cron runs, possible PHP fatal errors) that simulates a full bootstrap after a cached page view - see #7.
Leaving this issue open for now to highlight the problem, though it is essentially a duplicate.
Comment #3
dave reidMarking as a duplicate of #231724: Incompatible with page caching (incomplete cron runs, possible PHP fatal errors).