Bug #96325
closedPHP Warning: Undefined array keys when using history for pages and records
100%
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]]
Updated by Gerrit Code Review almost 3 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
Updated by Gerrit Code Review almost 3 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
Updated by Gerrit Code Review almost 3 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
Updated by Florian Rival almost 3 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 1b95bb2a85d02ffddb2b1527c4f47926e8c756af.
Updated by Benni Mack almost 3 years ago
- Related to Bug #96217: PHP Warning: Undefined array key "ATagBeforeWrap" in typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php added