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

Also available in: Atom PDF