This was a bug in the CE version of the scheduler
Please modify SUGARINSTALL/cron.php around line 79 to look like this
Code:
if($timestamp[0] < strtotime(date('H:i'))) {
if(is_writable($cachePath.'/'.$pid)) {
write_array_to_file('timestamp', array(strtotime(date('H:i'))) , $cachePath.'/'.$pid);
require_once('modules/Schedulers/Scheduler.php');
// HACK By Kenneth Thorman to allow the Scheduler to work Sugar 5.0.0e
require_once('include/utils.php');
$GLOBALS['mod_strings'] = return_module_language($current_language, "Schedulers");
// HACK By Kenneth Thorman to allow the Scheduler to work
$s = new Scheduler();
$s->flushDeadJobs();
$s->checkPendingJobs();
} else {
and then modify SUGARINSTALL/modules/Schedulers/Scheduler.php change the constructor to this
Code:
function Scheduler($init=true) {
parent::SugarBean();
if($init) {
require_once('modules/Users/User.php');
$user = new User();
$user->retrieve('1'); // Scheduler jobs run as Admin
$this->user = $user;
// HACK By Kenneth Thorman to allow the Scheduler to work Sugar 5.0.0e
$this->setStandardArraysAttributes();
// HACK By Kenneth Thorman to allow the Scheduler to work Sugar 5.0.0e
}
}
Bookmarks