Magento Fatal Error Unsupported Operand Types

If you are getting an error while product export in Magento 1.7.X (Fatal error: Unsupported operand types in ../app/code/core/Mage/ImportExport/Model/Export/Entity/Product.php on line 873)

Simply open this file /app/code/core/Mage/ImportExport/Model/Export/Entity/Product.php and go to line number 873.

/* Find */
$dataRow += $stockItemRows[$productId];
/*Replace with*/
$dataRow = array_merge($dataRow,$stockItemRows[$productId]);

This will fix your problem of product export. Please do not write in core file and user proper rewrite procedure.

12 Responses to Magento Fatal Error Unsupported Operand Types

  1. Bryce says:

    Thanks for posting this

  2. almai says:

    Thanks for the solution but why is it that I have to constantly edit core files in order to make basic functions in Magento work?? After the next update they get overridden anyway and all the little “workarounds” in the core files are gone 🙁

  3. Mojalefa Tsotetsi says:

    Thank you for this solution, it just helped me out 🙂

  4. Deep says:

    Thanks a lot man!!
    it works !!

  5. sachin says:

    thanks bro

  6. Joe Cole says:

    It is working now, Thanks a lot from bottom of my heart. 🙂

  7. Janna says:

    I know this is an old post…but i had the error and tried the edit. But my CSV that is exported is missing nearly all data (I think only the categories exist)

Leave a Reply

Your email address will not be published. Required fields are marked *