Bug #94972

PHP 8 warnings: Undefined array key in EXT:impexp

Added by Alexander Nitsche 5 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Import/Export (T3D)
Target version:
Start date:
2021-08-23
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

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:

  1. PHP Warning: Undefined array key "2487ce518ed56d22f20f259928ff43f1" in /typo3/sysext/impexp/Classes/ImportExport.php line 1320
  2. PHP Warning: Trying to access array offset on value of type null in /typo3/sysext/impexp/Classes/ImportExport.php line 1320
  3. PHP Warning: Undefined array key "relFileName" in /typo3/sysext/impexp/Classes/Export.php line 718
  4. PHP Warning: Undefined array key "2487ce518ed56d22f20f259928ff43f1" in /typo3/sysext/impexp/Classes/ImportExport.php line 986
  5. PHP Warning: Trying to access array offset on value of type null in /typo3/sysext/impexp/Classes/ImportExport.php line 987
  6. PHP Warning: Undefined array key "msg" in /typo3/sysext/impexp/Classes/ImportExport.php line 571
  7. PHP Warning: Undefined array key "pages:1" in /typo3/sysext/impexp/Classes/ImportExport.php line 1095
  8. PHP Warning: Undefined array key 0 in /typo3/sysext/impexp/Classes/ImportExport.php line 542
  9. PHP Warning: Undefined array key "title" in /typo3/sysext/impexp/Classes/ImportExport.php line 989
  10. PHP Warning: Undefined array key 123456789 in /typo3/sysext/impexp/Classes/ImportExport.php line 737
  11. PHP Warning: Undefined array key "RTE_ORIG_ID" in /typo3/sysext/impexp/Classes/ImportExport.php line 739
  12. PHP Warning: Uninitialized string offset 0 in /typo3/sysext/core/Classes/Resource/StorageRepository.php line 400
  13. PHP Warning: Undefined array key "RTE_ORIG_ID" in /typo3/sysext/impexp/Classes/ImportExport.php line 775
  14. PHP Warning: Array to string conversion in /typo3/sysext/impexp/Classes/Import.php line 273
  15. PHP Warning: Undefined array key "sys_file" in /typo3/sysext/impexp/Classes/Import.php line 691
  16. PHP Warning: Undefined array key "files" in /typo3/sysext/impexp/Classes/Export.php line 1175
  17. PHP Warning: Undefined array key "files_fal" in /typo3/sysext/impexp/Classes/Export.php line 1177
  18. PHP Warning: Undefined array key "pages:1" in /typo3/sysext/impexp/Classes/Import.php line 967
  19. PHP Warning: Undefined array key "pages:2" in /typo3/sysext/impexp/Classes/Import.php line 815
  20. PHP Warning: Undefined array key 0 in /typo3/sysext/impexp/Classes/Import.php line 725
  21. PHP Warning: Trying to access array offset on value of type null in /typo3/sysext/impexp/Classes/Import.php line 725
  22. PHP Warning: Undefined array key "files_fal" in /typo3/sysext/impexp/Classes/Export.php line 1177
  23. PHP Warning: Undefined array key 0 in /typo3/sysext/impexp/Classes/Import.php line 727
  24. PHP Warning: Trying to access array offset on value of type null in /typo3/sysext/impexp/Classes/Import.php line 728

Related issues

Related to TYPO3 Core - Story #92526: Concept for improved EXT:impexpAccepted2020-10-09

Actions
Related to TYPO3 Core - Bug #95090: Add fallback for undefined array key in Export ModuleClosed2021-09-02

Actions
#1

Updated by Alexander Nitsche 5 months ago

  • Related to Story #92526: Concept for improved EXT:impexp added
#2

Updated by Alexander Nitsche 5 months ago

  • Subject changed from Undefined array key "stateHash" in ExportPageTreeView to PHP 8 warnings: Undefined array key in EXT:impexp
  • Description updated (diff)
#3

Updated by Alexander Nitsche 5 months ago

  • Description updated (diff)
#4

Updated by Gerrit Code Review 5 months 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

#5

Updated by Gerrit Code Review 5 months 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

#6

Updated by Gerrit Code Review 5 months 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

#7

Updated by Alexander Nitsche 5 months ago

  • Description updated (diff)
#8

Updated by Gerrit Code Review 5 months 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

#9

Updated by Gerrit Code Review 5 months 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

#10

Updated by Gerrit Code Review 5 months 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

#11

Updated by Gerrit Code Review 5 months 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

#12

Updated by Jochen Roth 5 months ago

  • Related to Bug #95090: Add fallback for undefined array key in Export Module added
#13

Updated by Gerrit Code Review 4 months 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

#14

Updated by Alexander Nitsche 4 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
#15

Updated by Benni Mack 4 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF