Project

General

Profile

Actions

Bug #101194

closed

PHP warnings: undefined array in PageRepository.php

Added by Stefan Terborg over 1 year ago. Updated 5 months ago.

Status:
Closed
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 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.

Actions #2

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

Actions #3

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

Actions #4

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

Actions #5

Updated by Oliver Bartsch over 1 year ago

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

Updated by Benni Mack over 1 year ago

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

Updated by Benni Mack 5 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF