Hi, all,
I'm trying to get started with the default cron.php (below for reference). It always stops trying to
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
with these two errors:
#
[client 209.144.81.41] PHP Notice: Trying to get property of non-object in /home/publiccomputingservices/public_html/includes/bootstrap.inc on line 576
#
[client 209.144.81.41] PHP Notice: Undefined property: stdClass::$uid in /home/publiccomputingservices/public_html/includes/session.inc on line 35
#
My hunch is this is something I should fix in my configuration, but I'm at a loss to get started.
TIA for any suggestions.
<?php
// $Id: cron.php,v 1.34 2005/12/31 14:18:22 dries Exp $
/**
* @file
* Handles incoming requests to fire off regularly-scheduled tasks (cron jobs).
*/
include_once './includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
// If not in 'safe mode', increase the maximum execution time:
if (!ini_get('safe_mode')) {
set_time_limit(240);
}
// Check if the last cron run completed
if (variable_get('cron_busy', false)) {
watchdog('cron', t('Last cron run did not complete.'), WATCHDOG_WARNING);
}
else {
variable_set('cron_busy', true);
}
// Iterate through the modules calling their cron handlers (if any):
module_invoke_all('cron');
// Clean up
variable_set('cron_busy', false);
variable_set('cron_last', time());