Issue Bug Closed

#101194PHP warnings: undefined array in PageRepository.php

Stefan Terborg 06/29/23, 07:22 updated 07/09/24, 14:15

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

Reviews 3

History 47

  1. Torben Hansen commented and changed assigned to Torben Hansen 06/29/23, 17:54

    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.

  2. Gerrit Code Review pushed patch set 1 for main to change 79620 status New Under Review 07/03/23, 16:29

  3. Gerrit Code Review pushed patch set 1 for 12.4 to change 79634 07/03/23, 17:06

  4. Gerrit Code Review pushed patch set 1 for 11.5 to change 79635 07/03/23, 17:07

  5. Oliver Bartsch commented and changed status Under Review Resolved done 0 % 100 % 07/03/23, 17:10

    Applied in changeset commit:abe424a51abbcbf5c79cac410cbc4a49aac15f89.

  6. Benni Mack changed Related to #99163 07/05/23, 11:50

  7. Benni Mack changed status Resolved Closed 07/09/24, 14:15