Magento – product export error : Unsupported operand type

error

How can I solve this :

Unsupported operand types in
C:\wamp\www\abc\app\code\core\Mage\ImportExport\Model\Export\Entity\Product.php
on line 875

It occurs when trying to export products via the admin panel system -> import/export menu.

Best Answer

Magento have a patch for this issue as SUPEE-6511.

Ask magento support for the official patch file, however the change provided is simple enough. Around line 875-ish in app/code/core/Mage/ImportExport/Model/Export/Entity/Product.php you should update as follows.

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