[BUGFIX] ErrorController is called via PSR-7 request 96/56796/2
authorBenni Mack <benni@typo3.org>
Wed, 25 Apr 2018 05:40:27 +0000 (07:40 +0200)
committerSusanne Moog <susanne.moog@typo3.org>
Thu, 26 Apr 2018 16:37:40 +0000 (18:37 +0200)
One call to the ErrorController->pageNotFoundAction is missing the PSR-7
object, which is now added.

Resolves: #84858
Releases: master
Change-Id: Ie0339e055400a615f33dc3435c95e2a78875202f
Reviewed-on: https://review.typo3.org/56796
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Tested-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php

index 5f15c87..3308b87 100644 (file)
@@ -2612,7 +2612,7 @@ class TypoScriptFrontendController implements LoggerAwareInterface
                                         // The existing fallbacks have not been found, but instead of continuing
                                         // page rendering with default language, a "page not found" message should be shown
                                         // instead.
-                                        $response = GeneralUtility::makeInstance(ErrorController::class)->pageNotFoundAction('Page is not available in the requested language (fallbacks did not apply).');
+                                        $response = GeneralUtility::makeInstance(ErrorController::class)->pageNotFoundAction($GLOBALS['TYPO3_REQUEST'], 'Page is not available in the requested language (fallbacks did not apply).');
                                         $this->sendResponseAndExit($response);
                                     }
                                 }