Actions
Bug #99996
closedPHP Warning: Undefined array key "uid" in typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php line 1269
Start date:
2023-02-20
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
11
PHP Version:
8.1
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
We have a custom configuration where we have disabled the speakings url's since we reference all our pages
via ?id=XXXCX.
We have seems this issue when we create a page A (id 10) and created a translation of it (id 11).
Now hide id 10 and go into the list module and find the translated page id 11 - press edit and
preview it. The warning will be thrown since the call to <
$this->page = $this->sys_page->getPage($this->page[$GLOBALS['TCA']['pages']['ctrl']['transOrigPointerField']]);
will return the empty array since id 10 is hidden.
Instead a null coalescing operator should be added here:
$this->id = $this->page['uid'] ?? null;
It will the be handled properly in the method getPageAndRootline once https://forge.typo3.org/issues/99648 has been merged.
Actions