Project

General

Profile

Actions

Bug #99163

closed

PageRepository - Undefined array key "doktype" & "shortcut_mode"

Added by Moritz Noll almost 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Start date:
2022-11-22
Due date:
% Done:

0%

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

Description

I use the function getMenu() of TYPO3\CMS\Core\Domain\Repository\PageRepository and get the following two errors with PHP 8.1

Exception: PHP Warning: Undefined array key "doktype" in /var/www/typo3_src-11.5.19/typo3/sysext/core/Classes/Domain/Repository/PageRepository.php line 943
Exception: PHP Warning: Undefined array key "shortcut_mode" in /var/www/typo3_src-11.5.19/typo3/sysext/core/Classes/Domain/Repository/PageRepository.php line 944

You have already fixed it on other places.

(int)($pageRec['doktype'] ?? 0)
(int)($page['shortcut_mode'] ?? self::SHORTCUT_MODE_NONE)


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #101194: PHP warnings: undefined array in PageRepository.phpClosedTorben Hansen2023-06-29

Actions
Actions

Also available in: Atom PDF