Issue Bug Closed

#65065Cron fail when using objectManager

Mohamed Rebai 02/13/15, 21:52 updated 03/07/15, 22:04

Description

Hi,

I have a weird bug. In my website, i have a some recurring tasks in my scheduler, all working well.

I added one other lately : When i manually execute the task, everything works perfectly. But when i set it to recurring, the cron fails to execute it, and the error is “Execution failed: 1232985415, The APC backend cannot be used because apc is disabled on CLI.”

I thing this error has nothing to do with the real error, cause i have other recurring tasks, all working well and no problems with apc or cli

So i started debugging, enabling my code line by line, and i found that the error happens when this line code is executed :

$this->ministre = $this->objectManager->get(‘CCW\CcwTransparenceAgenda\Domain\Repository\MinistreRepository’);

Here is the complete code :

Here’s how i declare the objectManager :

$this->objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(‘TYPO3\CMS\Extbase\Object\ObjectManager’);

I just can’t understand why, manually it works, but when recurring, it fails ? Please help!

Thanks.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.