Project

General

Profile

Actions

Bug #101194

closed

PHP warnings: undefined array in PageRepository.php

Added by Stefan Terborg 10 months ago. Updated 10 months ago.

Status:
Resolved
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2023-06-29
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.1
Tags:
Complexity:
Is Regression:
Sprint Focus:

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


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #99163: PageRepository - Undefined array key "doktype" & "shortcut_mode"Closed2022-11-22

Actions
Actions #1

Updated by Torben Hansen 10 months 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.

Actions #2

Updated by Gerrit Code Review 10 months 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

Actions #3

Updated by Gerrit Code Review 10 months 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

Actions #4

Updated by Gerrit Code Review 10 months 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

Actions #5

Updated by Oliver Bartsch 10 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #6

Updated by Benni Mack 10 months ago

  • Related to Bug #99163: PageRepository - Undefined array key "doktype" & "shortcut_mode" added
Actions

Also available in: Atom PDF