Open Andreabont opened 1 year ago
Hi @Andreabont. Thank you for your report. To speed up processing of this issue, make sure that you provided sufficient information.
Add a comment to assign the issue: @magento I am working on this
Unbelievable that this is still an issue. You can apply this patch to fix it:
--- src/Migration/Handler/TruncateSuffix.php 2022-04-11 15:42:50.000000000 +0000
+++ src/Migration/Handler/TruncateSuffix.php 2022-11-21 16:30:02.926243596 +0000
@@ -90,7 +90,8 @@
if (in_array($recordToHandle->getValue('attribute_id'), $attributeIds)) {
$suffix = '~' . preg_quote($this->getSuffix()) . '$~';
$value = $recordToHandle->getValue($this->field);
- $value = preg_replace($suffix, '', $value);
+ if ($value !== null)
+ $value = preg_replace($suffix, '', $value);
$recordToHandle->setValue($this->field, $value);
}
}
mlaurense, Already tried to apply your patch, but its the same issue for 2.4.5 version. Any thoughts? This is not yet fixed...
Thank you
@VrumVrum You mean it is STILL not fixed...
it appears the file is the same in 2.4.5 tag, so you should be able to apply the patch successfully. Check if your vendor/magento/data-migration-tool/src/Migration/Handler/TruncateSuffix.php is changed; line 93 should contain the if ($value !== null)
Preconditions
Steps to reproduce
Expected result
Actual result
Additional notes