TYPO3 Exception 1666513645
Note
Below, the TYPO3 community may have provided additional information or solutions for this exception. However, these may or may not apply to your particular case. If you can provide more information, you should come back here and add your experience and solution steps to this issue once you have resolved it.
General TYPO3 troubleshooting tips can be found in the Troubleshooting section in the menu. You can also ask questions and receive support in the TYPO3 Questions category on talk.typo3.org.
To add your experience, click "Edit on GitHub" above and follow the "Edit on GitHub" workflow. Also check out our tip on Coding Style and reST.
TYPO3 13.4 - 30th December 2024
Installation Overview
It uses the extension tslib_fetce 0.9.2 which uses the FrontendTce class Middleware.
The Issue
RuntimeException
Setup array has not been initialized. This happens in cached Frontend scope where full TypoScript is not needed by the system.
Solution
Call the method hasSetup before hasSetup.
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
{
$tsfe = $this->getTypoScriptFrontendController();
$frontendTypoScript = $request->getAttribute('frontend.typoscript');
if ($frontendTypoScript->hasSetup()) {
$typoScriptSetupArray = $frontendTypoScript->getSetupArray();
// ...
}
}
/**
* @return TypoScriptFrontendController
*/
protected function getTypoScriptFrontendController(): TypoScriptFrontendController
{
return $GLOBALS['TSFE'];
}