Project

General

Profile

Actions

Bug #94972

closed

PHP 8 warnings: Undefined array key in EXT:impexp

Added by Alexander Nitsche about 3 years ago. Updated about 3 years 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 2 (1 open1 closed)

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
Actions #1

Updated by Alexander Nitsche about 3 years ago

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

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)
Actions #3

Updated by Alexander Nitsche about 3 years ago

  • Description updated (diff)
Actions #4

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

Actions #5

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

Actions #6

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

Actions #7

Updated by Alexander Nitsche about 3 years ago

  • Description updated (diff)
Actions #8

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

Actions #9

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

Actions #10

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

Actions #11

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

Actions #12

Updated by Jochen Roth about 3 years ago

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

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

Actions #14

Updated by Alexander Nitsche about 3 years ago

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

Updated by Benni Mack about 3 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF