File tree Expand file tree Collapse file tree 1 file changed +35
-16
lines changed
Expand file tree Collapse file tree 1 file changed +35
-16
lines changed Original file line number Diff line number Diff line change @@ -7,25 +7,44 @@ TYPO3 Exception 1666513645
77.. include :: /If-you-encounter-this-exception.rst.txt
88
99
10- ..
11- TYPO3 [version] - [date of report]
12- ==================================
10+ TYPO3 13.4 - 30th December 2024
11+ ================================
1312
14- Installation Overview
15- ---------------------
13+ Installation Overview
14+ ---------------------
1615
17- Provide as much information about your installation of TYPO3
18- including its version number and any other information that
19- you think will be relevant to other users who encounter the same issue.
16+ It uses the extension tslib_fetce 0.9.2 which uses the FrontendTce class Middleware.
2017
21- The Issue
22- ---------
18+ The Issue
19+ ---------
2320
24- Detail each of the steps or changes that took place leading up to the
25- issue occurring.
21+ RuntimeException
22+
23+ Setup array has not been initialized. This happens in cached Frontend scope where full TypoScript is not needed by the system.
24+
25+ Solution
26+ --------
27+
28+ Call the method hasSetup before hasSetup.
29+
30+ .. code-block :: php
31+
32+ public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
33+ {
34+ $tsfe = $this->getTypoScriptFrontendController();
35+ $frontendTypoScript = $request->getAttribute('frontend.typoscript');
36+ if ($frontendTypoScript->hasSetup()) {
37+ $typoScriptSetupArray = $frontendTypoScript->getSetupArray();
38+ // ...
39+ }
40+ }
41+
42+ /**
43+ * @return TypoScriptFrontendController
44+ */
45+ protected function getTypoScriptFrontendController(): TypoScriptFrontendController
46+ {
47+ return $GLOBALS['TSFE'];
48+ }
2649
27- Solution
28- --------
2950
30- Did you resolve the issue? List the steps or changes made that resolved the
31- issue.
You can’t perform that action at this time.
0 commit comments