Project

General

Profile

Actions

Bug #96325

closed

PHP Warning: Undefined array keys when using history for pages and records

Added by Florian Rival over 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
Start date:
2021-12-10
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.0
Tags:
Complexity:
easy
Is Regression:
Yes
Sprint Focus:

Description

Multiple PHP warnings with PHP V8 appears when you look at the history and click on a "Rollback (preview)" button.

PHP Warning: Undefined array key "action" in typo3/sysext/backend/Classes/History/RecordHistory.php line 176
PHP Warning: Undefined array key "sys_file_reference:107" in typo3/sysext/backend/Classes/Controller/ContentElement/ElementHistoryController.php line 269
PHP Warning: Undefined array key "pages:41" in typo3/sysext/backend/Classes/Controller/ContentElement/ElementHistoryController.php line 269

Those warnings appears in history for pages as well as records in list view and page view.

This is because in PHP V8, a number of warnings have been converted into Error exceptions and especially : Attempting to read an undefined array key.

Have a look here : [[https://www.php.net/manual/fr/migration80.incompatible.php]]


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #96217: PHP Warning: Undefined array key "ATagBeforeWrap" in typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.phpClosed2021-12-03

Actions
Actions #1

Updated by Florian Rival over 2 years ago

  • TYPO3 Version changed from 10 to 11
Actions #2

Updated by Gerrit Code Review over 2 years 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/+/72615

Actions #3

Updated by Gerrit Code Review over 2 years 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/+/72615

Actions #4

Updated by Gerrit Code Review over 2 years 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/+/72584

Actions #5

Updated by Florian Rival over 2 years ago

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

Updated by Benni Mack over 2 years ago

  • Related to Bug #96217: PHP Warning: Undefined array key "ATagBeforeWrap" in typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php added
Actions #7

Updated by Benni Mack over 1 year ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF