Open dvershinin opened 6 years ago
Give this a try and let me know if it works.
Change needs to be made in this core file:
/vendor/magento/framework/DataObject/Copy/Config/Converter.php on line 41
Find line 41 in above file, should look like following code:
$fieldsetName = $fieldset->attributes->getNamedItem('id')->nodeValue;
$result[$fieldsetName] = $this->_convertFieldset($fieldset);
Replace those lines with the following:
if($fieldset->attributes->getNamedItem('id')){
$fieldsetName = $fieldset->attributes->getNamedItem('id')->nodeValue;
$result[$fieldsetName] = $this->_convertFieldset($fieldset);
}
Let me know if this works for you, once confirmed we can close this ticket and I'll add this to the instructions in the readme.
Thanks!
It works for us now. Have you filed the bug with M2? If so, can you give us a link to the bug entry so we watch it for updates as it's best to avoid core file hacks.
I am yet to file the bug, will do so ASAP and link it here. Going to leave this open until we get a resolution from M2 staff.
This is a bug with the Reverb extension, not Magento. The cause of it is in the /Reverb/ReverbSync/etc/fieldset.xml file. This file is using Magento 1 code not Magento 2. It looks like this:
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:DataObject/etc/fieldset.xsd">
<scope id="global">
<fieldsets>
<sales_convert_quote_item>
<reverb_item_link>
<to_order_item>*</to_order_item>
</reverb_item_link>
</sales_convert_quote_item>
</fieldsets>
</scope>
</config>
After updating to Magento 2 code it should look like this:
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:DataObject/etc/fieldset.xsd">
<scope id="global">
<fieldset id="quote_convert_item">
<field name="reverb_item_link">
<aspect name="to_order_item" />
</field>
</fieldset>
</scope>
</config>
After installing the plugin at live site, going to Sales -> Orders -> finding an invoice -> View -> click on Invoice at the top produces the error: