Actions
Bug #96325
closedPHP Warning: Undefined array keys when using history for pages and records
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]]
Actions