Bug #101194
closedPHP warnings: undefined array in PageRepository.php
100%
Description
PHP Warning: Undefined array key "shortcut_mode" in typo3/sysext/core/Classes/Domain/Repository/PageRepository.php line 958
PHP Warning: Undefined array key "doktype" in typo3/sysext/core/Classes/Domain/Repository/PageRepository.php line 957
TYPO3 11.5.28
PHP 8.1.20
Updated by Torben Hansen over 1 year ago
- Assignee set to Torben Hansen
I tried to reproduce the problem but with no success. However, from a code perspective the bug is valid, since it will occur, when getSubpagesForPages()
is called with the $fields
variable not equal to *
and when $fields
does not include the doktype
and shortcut_mode
The same code is also present in TYPO3 v12 and main. Do you have any additional information on how to reproduce the problem? As far as I can see it must have something to do with menus in frontend.
Updated by Gerrit Code Review over 1 year ago
- Status changed from New to Under Review
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/+/79620
Updated by Gerrit Code Review over 1 year ago
Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79634
Updated by Gerrit Code Review over 1 year ago
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/+/79635
Updated by Oliver Bartsch over 1 year ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset abe424a51abbcbf5c79cac410cbc4a49aac15f89.
Updated by Benni Mack over 1 year ago
- Related to Bug #99163: PageRepository - Undefined array key "doktype" & "shortcut_mode" added