Project

General

Profile

Actions

Bug #99012

closed

PHP 8 undefined array access when fetching Page Tree Configuration

Added by Achim Fritz about 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Pagetree
Target version:
-
Start date:
2022-11-07
Due date:
% Done:

100%

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

Description

unsetting a standard-doktype in `$GLOBALS['TCA']['pages']['columns']['doktype']['config']['items']` leads to "Undefined array key" PHP-Warning

e.g. unsetting mount-point doktype (7)

`unset ($GLOBALS['TCA']['pages']['columns']['doktype']['config']['items']5);`

leads to
`PHP Warning: Undefined array key 7 in /var/www/html/vendor/typo3/cms-backend/Classes/Controller/Page/TreeController.php line 241`

unsetted doktypes should also not appear in Page Tree Toolbar

(TYPO3 v11 and v12, PHP 8.1)

Actions

Also available in: Atom PDF