If you’re into Magento migration then you might face with many errors & solution.
Dropping other errors aside, today, we’re going to talk about a Fatal error that can be faced while product/data migration.
The error is known as Fatal error.
It’s as show below:
“Uncaught Error: Unsupported operand types in /var/www/html/magento1.9/app/code/core/Mage/ImportExport/Model/Export/Entity/Product.php:948”
It can occur when you are trying to export products from admin.
But, where there is an error, there is a solution.
The solution for above problem is replacement of code.
Replace code $dataRow += $stockItemRows[$productId]; on line no. 948 with below code in app/code/core/Mage/ImportExport/Model/Export/Entity/Product.php file.
- $dataRow += $stockItemRows[$productId];
+ if (isset($stockItemRows[$productId])) {
+ $dataRow = array_merge($dataRow, $stockItemRows[$productId]);
+ }
With this simple replacement, your will get rid of that fatal error.
Don’t forget to tell us how it worked for you by making a comment.

