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

jose reyero’s picture

Project: Notifications » Poormanscron

My 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.

gpk’s picture

Category: support » bug

Yes 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.

dave reid’s picture

Status: Active » Closed (duplicate)