Project

General

Profile

Actions

Bug #99012

closed

PHP 8 undefined array access when fetching Page Tree Configuration

Added by Achim Fritz over 1 year ago. Updated over 1 year 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 #1

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/+/76452

Actions #2

Updated by Gerrit Code Review over 1 year ago

Patch set 2 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/+/76452

Actions #3

Updated by Gerrit Code Review over 1 year ago

Patch set 3 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/+/76452

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/+/76417

Actions #5

Updated by Anonymous 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

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF