Hi,
I have a website running on Neos 5.2.1, however, after a while the site returns a “500 Internal Server Error”. The issue can be resolved by deleting Data/Temporary, but after a while the error comes back.
The logged Exception looks as follow:
Exception in line 490 of /home/www/neos/releases/20200522105533/Packages/Framework/Neos.Flow/Classes/Core/Booting/Scripts.php: Argument 1 passed to Neos\Flow\ObjectManagement\ObjectManager::setObjects() must be of the type array, null given, called in /home/www/neos/releases/20200522105533/Packages/Framework/Neos.Flow/Classes/Core/Booting/Scripts.php on line 490
14 Neos\Flow\ObjectManagement\ObjectManager::setObjects(NULL)
13 Neos\Flow\Core\Booting\Scripts::initializeObjectManager(Neos\Flow\Core\Bootstrap)
12 call_user_func(array|2|, Neos\Flow\Core\Bootstrap)
11 Neos\Flow\Core\Booting\Step::__invoke(Neos\Flow\Core\Bootstrap)
10 Neos\Flow\Core\Booting\Sequence::invokeStep(Neos\Flow\Core\Booting\Step, Neos\Flow\Core\Bootstrap)
9 Neos\Flow\Core\Booting\Sequence::invokeStep(Neos\Flow\Core\Booting\Step, Neos\Flow\Core\Bootstrap)
8 Neos\Flow\Core\Booting\Sequence::invokeStep(Neos\Flow\Core\Booting\Step, Neos\Flow\Core\Bootstrap)
7 Neos\Flow\Core\Booting\Sequence::invokeStep(Neos\Flow\Core\Booting\Step, Neos\Flow\Core\Bootstrap)
6 Neos\Flow\Core\Booting\Sequence::invokeStep(Neos\Flow\Core\Booting\Step, Neos\Flow\Core\Bootstrap)
5 Neos\Flow\Core\Booting\Sequence::invokeStep(Neos\Flow\Core\Booting\Step, Neos\Flow\Core\Bootstrap)
4 Neos\Flow\Core\Booting\Sequence::invoke(Neos\Flow\Core\Bootstrap)
3 Neos\Flow\Http\RequestHandler::boot()
2 Neos\Flow\Http\RequestHandler::handleRequest()
1 Neos\Flow\Core\Bootstrap::run()
The error seems to arise during the initialization of the Object Manager.
476 /**
477 * Initializes the runtime Object Manager
478 *
479 * @param Bootstrap $bootstrap
480 * @return void
481 */
482 public static function initializeObjectManager(Bootstrap $bootstrap)
483 {
484 $configurationManager = $bootstrap->getEarlyInstance(ConfigurationManager::class);
485 $objectConfigurationCache = $bootstrap->getEarlyInstance(CacheManager::class)->getCache('Flow_Object_Configuration');
486
487 $objectManager = new ObjectManager($bootstrap->getContext());
488
489 $objectManager->injectAllSettings($configurationManager->getConfiguration(ConfigurationManager::CONFIGURATION_TYPE_SETTINGS));
490 $objectManager->setObjects($objectConfigurationCache->get('objects'));
Can somebody tell me what the reason for this could be?
Best regards,
Matthias