Issue Bug Closed

#99012PHP 8 undefined array access when fetching Page Tree Configuration

Achim Fritz 11/07/22, 11:11 updated 12/06/22, 21:52

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)

Reviews 2