cancel
Showing results for 
Search instead for 
Did you mean: 

Product Export Error Export/Entity/Product.php

Highlighted

Product Export Error Export/Entity/Product.php

I'm getting an error trying to export products:

 

Fatal error: Unsupported operand types in /home/bikeon/public_html/SNS_demo/app/code/core/Mage/ImportExport/Model/Export/Entity/Product.php on line 875

 

I had seen online someplace to change a line in this file. The solution allows the export to occur but there is no data.

 

I'm not sure how to fix or if its related to number of export rows or memory or something else.

 

 

UPDATE: after updating products via csv import, i was suddently able to export. Possibly a product had invalid data.

1 REPLY 1
Highlighted

Re: Product Export Error Export/Entity/Product.php

This issue was fixed in Magento Patch # SUPEE-6511

 

You can apply the patch or you can manually update the file because the change is pretty straightforward. 

 

Open app/code/core/Mage/ImportExport/Model/Export/Entity/Product.php

 

Just replace the line#875

$dataRow += $stockItemRows[$productId];

with 

 

if (isset($stockItemRows[$productId])) {
$dataRow = array_merge($dataRow, $stockItemRows[$productId]);
}