#99444Core: Exception handler (WEB: FE): Error, code #0, file TypoScriptFrontendController.php, line 2099: Attempt to assign property "rootLine" on null
Description
Generated by Googlebot visiting a translated page that is a shortcut to another page like:
http://domain.ext/es/soporte/
that is a shortcut to page with uid=3
PHP error log:
Mon, 02 Jan 2023 08:38:14 +0100 [WARNING] request=“31bc2c162961e” component=“TYPO3.CMS.Core.Error.ErrorHandler”: Core: Error handler (FE): PHP Warning: Undefined array key “uid” in typo3/sysext/core/Classes/Domain/Repository/PageRepository.php line 1101
Mon, 02 Jan 2023 08:38:14 +0100 [WARNING] request=“31bc2c162961e” component=“TYPO3.CMS.Core.Error.ErrorHandler”: Core: Error handler (FE): PHP Warning: Undefined array key “uid” in typo3/sysext/core/Classes/Domain/Repository/PageRepository.php line 1112
Mon, 02 Jan 2023 08:38:14 +0100 [CRITICAL] request=“31bc2c162961e” component=“TYPO3.CMS.Core.Error.ProductionExceptionHandler”: Core: Exception handler (WEB: FE): Error, code #0, file typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php, line 2099: Attempt to assign property “rootLine” on null – {mode“WEB”,application_mode“FE”,exception_class“Error”,“exception_code”:0,“file”:“typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php”,“line”:2099,“message”:“Attempt to assign property \“rootLine\” on null”,request_url“https://domain.ext/es/soporte/”,exception
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
History 5
-
Gerhard Pazout commented 02/06/23, 11:08
-
Bernhard Eckl commented 08/14/23, 11:16
Same here. Your fix works also for me. Thank you!
TYPO3 11.5.30
PHP 8.2 -
Garvin Hicking changed category 08/08/24, 09:42
-
Benni Mack commented and changed status
NewNeeds Feedback 03/25/25, 13:43Hey,
does this problem still happen on v13?
-
Benni Mack commented and changed status
Needs FeedbackClosed 10/24/26, 07:03The code path that caused this (TypoScriptFrontendController::checkTranslatedShortcut()) was removed in TYPO3 v12.0 with #96540. Since then, the page translation is applied before the shortcut target is resolved, so a translated shortcut with a custom target
is followed directly. This exact case is covered by SlugSiteRequestTest::crossSiteShortcutsAreRedirected (“shortcut of translated page is
redirected to a different page than the original page”), which passes on main.v11.5 is out of community support, so I’m closing this issue. Feel free to reopen if you can reproduce it on v13.4 or v14.
I have the same error!
Steps to reproduce:*Expected result:*
Exception in Frontend that says:
The error occurs because in \TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController $this->tmpl is not set before the function checkTranslatedShortcut gets called!
*How I fixed it:*
In the class \TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController inside the function checkTranslatedShortcut add the following line so that $this->tmpl is not null anymore:
So the function checkTranslatedShortcut looks like this: