--- poormanscron.module.1.21.2.1 Mon Aug 11 15:04:18 2008 +++ poormanscron.module Mon Aug 11 15:06:16 2008 @@ -44,6 +44,9 @@ 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. $message = NULL; if (drupal_cron_run()) {