[TYPO3-mvc] scheduler problems - memory exhausted

Stig Nørgaard Færch snf at dkm.dk
Mon Mar 26 11:44:02 CEST 2012


I have problem when I try to run an action from a scheduler task.
The action itself runs ok. But if I try to use a repository then it 
crashes with a memory error:
$test = $this->personRepository->findBySentButNotAcknowledged();
Actually it also crashes when I just do a debug or get_object_vars on $this.

I get this error in the log:
PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted in 
/...../typo3_src/typo3_src-4.5.12/t3lib/utility/class.t3lib_utility_debug.php 
on line 155, referer: 
/mod.php?M=tools_txschedulerM1&CMD=stop&tx_scheduler[uid]=9


This is my scheduler task:
public function execute() {
	$this->testing = FALSE; // Testing disables emptying tables and 
inserting into -||-.
	$configuration = array(
		'extensionName' => 'DkmFolkekirkenindmeld',
		'pluginName' => 'formular',
//			'switchableControllerActions' =>  array(
//				'Person' => array(
//					'actions' => 'reminder'
//				)
//			),
	);
	$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['extbase']['extensions']['DkmFolkekirkenindmeld']['modules']['formular']['controllers']
		= array(
		'Person' => array('actions' => array('reminder'))
	);

	$bootstrap = new Tx_Extbase_Core_Bootstrap();
	$bootstrap->run('', $configuration);

	return true;
}


Any ideas what I'm missing?

/Stig


More information about the TYPO3-project-typo3v4mvc mailing list