Bug #74125
closedException throwing in sysext\core\Classes\DataHandling\DataHandler.php on copySpecificPage
100%
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.
Updated by Gerrit Code Review about 8 years ago
- Status changed from New to Under Review
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/48311
Updated by Gerrit Code Review about 8 years ago
Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48315
Updated by Andreas Fernandez about 8 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 485bbc5307c195ca93ea8d7621db08c72f6739a2.
Updated by Gerrit Code Review about 8 years ago
- Status changed from Resolved 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/48318
Updated by Andreas Fernandez about 8 years ago
- Status changed from Under Review to Resolved
Applied in changeset 37a2a0563f1abf28cdd82320fc649b7c0ed89d6f.
Updated by Gerrit Code Review about 8 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48319
Updated by Andreas Fernandez about 8 years ago
- Status changed from Under Review to Resolved
Applied in changeset a652d34b1e4f1dc9b5e0371989d16431aa00b30e.