Bug #94972
closedPHP 8 warnings: Undefined array key in EXT:impexp
100%
Description
Since PHP 8 gives warnings where PHP 7 gave hints, these additional areas of the EXT:impexp functional tests need to be corrected.
Exporting the page tree and selecting "Expanded page tree" without having changed the page tree throws a warning:
Core: Error handler (BE): PHP Warning: Undefined array key "stateHash" in /var/www/html/typo3/sysext/impexp/Classes/View/ExportPageTreeView.php line 182
Adapt handling to \TYPO3\CMS\Backend\Controller\Page\TreeController::initializeConfiguration to catch this warning.
Further warnings:
- PHP Warning: Undefined array key "2487ce518ed56d22f20f259928ff43f1" in /typo3/sysext/impexp/Classes/ImportExport.php line 1320
- PHP Warning: Trying to access array offset on value of type null in /typo3/sysext/impexp/Classes/ImportExport.php line 1320
- PHP Warning: Undefined array key "relFileName" in /typo3/sysext/impexp/Classes/Export.php line 718
- PHP Warning: Undefined array key "2487ce518ed56d22f20f259928ff43f1" in /typo3/sysext/impexp/Classes/ImportExport.php line 986
- PHP Warning: Trying to access array offset on value of type null in /typo3/sysext/impexp/Classes/ImportExport.php line 987
- PHP Warning: Undefined array key "msg" in /typo3/sysext/impexp/Classes/ImportExport.php line 571
- PHP Warning: Undefined array key "pages:1" in /typo3/sysext/impexp/Classes/ImportExport.php line 1095
- PHP Warning: Undefined array key 0 in /typo3/sysext/impexp/Classes/ImportExport.php line 542
- PHP Warning: Undefined array key "title" in /typo3/sysext/impexp/Classes/ImportExport.php line 989
- PHP Warning: Undefined array key 123456789 in /typo3/sysext/impexp/Classes/ImportExport.php line 737
- PHP Warning: Undefined array key "RTE_ORIG_ID" in /typo3/sysext/impexp/Classes/ImportExport.php line 739
- PHP Warning: Uninitialized string offset 0 in /typo3/sysext/core/Classes/Resource/StorageRepository.php line 400
- PHP Warning: Undefined array key "RTE_ORIG_ID" in /typo3/sysext/impexp/Classes/ImportExport.php line 775
- PHP Warning: Array to string conversion in /typo3/sysext/impexp/Classes/Import.php line 273
- PHP Warning: Undefined array key "sys_file" in /typo3/sysext/impexp/Classes/Import.php line 691
- PHP Warning: Undefined array key "files" in /typo3/sysext/impexp/Classes/Export.php line 1175
- PHP Warning: Undefined array key "files_fal" in /typo3/sysext/impexp/Classes/Export.php line 1177
- PHP Warning: Undefined array key "pages:1" in /typo3/sysext/impexp/Classes/Import.php line 967
- PHP Warning: Undefined array key "pages:2" in /typo3/sysext/impexp/Classes/Import.php line 815
- PHP Warning: Undefined array key 0 in /typo3/sysext/impexp/Classes/Import.php line 725
- PHP Warning: Trying to access array offset on value of type null in /typo3/sysext/impexp/Classes/Import.php line 725
- PHP Warning: Undefined array key "files_fal" in /typo3/sysext/impexp/Classes/Export.php line 1177
- PHP Warning: Undefined array key 0 in /typo3/sysext/impexp/Classes/Import.php line 727
- PHP Warning: Trying to access array offset on value of type null in /typo3/sysext/impexp/Classes/Import.php line 728
Updated by Alexander Nitsche about 3 years ago
- Related to Story #92526: Concept for improved EXT:impexp added
Updated by Alexander Nitsche about 3 years ago
- Subject changed from Undefined array key "stateHash" in ExportPageTreeView to PHP 8 warnings: Undefined array key in EXT:impexp
- Description updated (diff)
Updated by Gerrit Code Review about 3 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/70741
Updated by Gerrit Code Review about 3 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/70741
Updated by Gerrit Code Review about 3 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/70741
Updated by Gerrit Code Review about 3 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/70741
Updated by Gerrit Code Review about 3 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/70741
Updated by Gerrit Code Review about 3 years ago
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/70741
Updated by Gerrit Code Review about 3 years ago
Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/70741
Updated by Jochen Roth about 3 years ago
- Related to Bug #95090: Add fallback for undefined array key in Export Module added
Updated by Gerrit Code Review about 3 years ago
Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/70741
Updated by Alexander Nitsche about 3 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset c21d5b8adb290800d7c8f0cff6cf91e6cfec11ed.