Bug #99996
closedPHP Warning: Undefined array key "uid" in typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php line 1269
100%
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.
Updated by Thomas Hohn almost 2 years ago
Seems only to be an issue in TYPO3 11.x
Updated by Gerrit Code Review over 1 year ago
- Status changed from New to Under Review
Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77904
Updated by Gerrit Code Review over 1 year ago
Patch set 2 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77904
Updated by Gerrit Code Review over 1 year ago
Patch set 3 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77904
Updated by Gerrit Code Review over 1 year ago
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77951
Updated by Gerrit Code Review over 1 year ago
Patch set 4 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77904
Updated by Thomas Hohn over 1 year ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset accf2b2a0b9fe92c9a07e491c9b0d4321eebc62d.