Issue Bug Closed

#90979TYPO3 10.3 with typo3/cms-impexp leeds on export to "Invalid argument supplied for foreach()"

Alex Kellner 04/08/20, 11:19 updated 04/21/20, 10:42

Description

PHP Warning: Invalid argument supplied for foreach() in /var/www/html/in2code10.localhost.de/private/typo3/sysext/impexp/Classes/Export.php line 485
Steps:
  • Selecting a page tree with subpages for export
  • Choosing “invinite” for levels
  • Selecting “All” for “Include relations to tables”
  • Click on update
  • Exception comes up

Quick fix for my case in typo3/sysext/impexp/Classes/Export.php:485 typecast $row to array:

foreach ((array)$row as $fieldName => $value) {

Reviews 1