#88019Page copying is not working as desired using clipboard
Description
When in page module, while trying to copy a page and trying to ‘Paste after’ any random page an error is struck. Both of the pages have more than 2 alternative languages. The environment contains pages which are migrated with upgrade wizard tasks regarding pages_language_overlay changes.
The error is as follows #1486233164 RuntimeException, Child record was not processed
As an outcome, a page will be copied with incomplete data and translations.
Please see the screenshot attached.
The issue is within typo3/sysext/core/Classes/DataHandling/Localization/DataMapProcessor.php, where a synchronizeFieldValues() function receives an empty array as a parameter along with other values. In line no. 319
//$forRecord is declared as an array. So it will always be.
$forRecord = [];
if (!$item->isNew()) {
$forRecord = BackendUtility::getRecordWSOL(
$item->getTableName(),
$item->getId(),
$fieldNameList
);
}
//Even if $forRecord is not populated, control will bypass following condition as it is an is_array() check
if (is_array($fromRecord) && is_array($forRecord)) {
foreach ($fieldNames as $fieldName) {
$this->synchronizeFieldValues(
$item,
$fieldName,
$fromRecord,
$forRecord
);
}
}
}
This can be solved by adjusting the condition as,
if (is_array($fromRecord) && !empty($forRecord)) {
foreach ($fieldNames as $fieldName) {
$this->synchronizeFieldValues(
$item,
$fieldName,
$fromRecord,
$forRecord
);
}
}Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Files 1
History 6
-
Benni Mack changed target version <span data-processor="relativetime" data-value="2019-05-07T12:28:10+00:00" > 05/07/19, 12:28 </span>
-
Christian Eßl changed Related to #90676 <span data-processor="relativetime" data-value="2020-03-07T19:54:37+00:00" > 03/07/20, 19:54 </span>
-
Riccardo De Contardi changed parent task #90676 <span data-processor="relativetime" data-value="2024-06-21T09:43:14+00:00" > 06/21/24, 09:43 </span>
-
Benni Mack commented and changed status
NewNeeds Feedback <span data-processor="relativetime" data-value="2025-03-23T18:44:38+00:00" > 03/23/25, 18:44 </span> -
Anu Bhuvanendran Nair commented <span data-processor="relativetime" data-value="2026-01-20T12:39:30+00:00" > 01/20/26, 12:39 </span>
It is fixed in a later version. Can be closed.
-
Benni Mack commented and changed status
Needs FeedbackClosed <span data-processor="relativetime" data-value="2026-01-20T12:49:45+00:00" > 01/20/26, 12:49 </span>thx!
Hey, I cannot reproduce this issue anymore – does this still occur to you?