Bug #66587

Updated by Xavier Perseguers over 6 years ago

<pre> 
 Fatal error: TYPO3\CMS\Scheduler\Controller\SchedulerModuleController::listTasksAction(): The script tried to execute a method or 
 access a property of an incomplete object. Please ensure that the class definition &quot;tx_scheduler_Execution&quot; of the object you 
 are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in 
 /path/to/typo3/sysext/scheduler/Classes/Controller/SchedulerModuleController.php on line 1043 
 </pre> 

 Problem is with this PHP block: 

 <pre> 
 // Get execution type 
 if ($task->getExecution()->getInterval() == 0 && $task->getExecution()->getCronCmd() == '') { 
	 $execType = $this->getLanguageService()->getLL('label.type.single'); 
	 $frequency = '-'; 
 } else { 
	 $execType = $this->getLanguageService()->getLL('label.type.recurring'); 
	 if ($task->getExecution()->getCronCmd() == '') { 
		 $frequency = $task->getExecution()->getInterval(); 
	 } else { 
		 $frequency = $task->getExecution()->getCronCmd(); 
	 } 
 } 
 </pre> 

 This fails since @$task->getExecution()@ is an incomplete PHP task: 

 !incomplete.png! 

 The serialized task object is: 

 <pre> 
 O:37:"Causal\IgLdapSsoAuth\Task\ImportUsers":10:{s:10:"*context";s:4:"both";s:16:"*configuration";i:0;s:23:"*missingUsersHandling";s:7:"nothing";s:24:"*restoredUsersHandling";s:7:"nothing";s:10:"*taskUid";i:7;s:11:"*disabled";b:1;s:12:"*execution";O:29:"TYPO3\CMS\Scheduler\Execution":6:{s:8:"*start";i:1424099520;s:6:"*end";i:1424099520;s:11:"*interval";i:0;s:11:"*multiple";i:0;s:10:"*cronCmd";s:0:"";s:23:"*isNewSingleExecution";b:0;}s:16:"*executionTime";i:1424099520;s:14:"*description";s:0:"";s:12:"*taskGroup";N;} O:37:"Causal\IgLdapSsoAuth\Task\ImportUsers":10:{s:10:"*context";s:4:"both";s:16:"*configuration";i:0;s:23:"*missingUsersHandling";s:7:"nothing";s:24:"*restoredUsersHandling";s:7:"nothing";s:10:"*taskUid";i:7;s:11:"*disabled";b:1;s:12:"*execution";O:29:"TYPO3\CMS\Scheduler\Execution":6:{s:8:"*start";i:1424099520;s:6:"*end";i:1424099520;s:11:"*interval";i:0;s:11:"*multiple";i:0;s:10:"*cronCmd";s:0:"";s:23:"*isNewSingleExecution";b:0;}s:16:"*executionTime";i:1424099520;s:14:"*description";s:0:"";s:12:"*taskGroup";N;} 
 </pre>

Back