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