#74125Exception throwing in sysext\core\Classes\DataHandling\DataHandler.php on copySpecificPage
Description
When i tried to copy files from one domain with some what a complex pagetree having 6 to 7 levels of pages and having 2 translations for each page, there throwed an error like this
Uncaught TYPO3 Exception
#1: PHP Warning: Invalid argument supplied for foreach() in /typo3_src-7.6.4/typo3/sysext/core/Classes/DataHandling/DataHandler.php line 3635 (More information)
TYPO3\CMS\Core\Error\Exception thrown in file
/var/data/www/pits/shyam7/typo3_src-7.6.4/typo3/sysext/core/Classes/Error/ErrorHandler.php in line 111.
14 TYPO3\CMS\Core\Error\ErrorHandler::handleError(2, "Invalid argument supplied for foreach()", "/typo3_src-7.6.4/typo3/sysext/core/Classes/DataHandling/DataHandler.php", 3635, array)
/typo3_src-7.6.4/typo3/sysext/core/Classes/DataHandling/DataHandler.php:
03633: }
03634:
03635: foreach ($rows as $row) {
03636: // Skip localized records that will be processed in
03637: // copyL10nOverlayRecords() on copying the default language record
13 TYPO3\CMS\Core\DataHandling\DataHandler::copySpecificPage(95715, 95688, array, 1)
if i put
foreach ($rows as $row) {
// Skip localized records that will be processed in
// copyL10nOverlayRecords() on copying the default language record
$transOrigPointer = $row[$transOrigPointerField];
if ($row[$languageField] > 0 && $transOrigPointer > 0 && isset($rows[$transOrigPointer])) {
continue;
}
// Copying each of the underlying records...
$this->copyRecord($table, $row['uid'], $theNewRootID);
}
inside if(!empty($rows)) it works as expected.