--- poormanscron.module.1.18.2.1 Sun Jan 14 12:34:37 2007 +++ poormanscron.module Mon Aug 11 14:50:11 2008 @@ -46,6 +46,8 @@ function poormanscron_exit() { // we don't get a chance to restore them below. $saved_messages = drupal_set_message(); + // Ensure that common.inc and all modules are loaded. + drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); // Invoke the cron hooks of all enabled modules. if (variable_get('poormanscron_log_progress', 0) == 1) { // Invoke the cron hooks of all enabled modules and log the progress.