Let’s initiate a discussion!!
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.
1 2 3 4 |
- $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.
[crayon-6421636b0098d457505108/] Using above fucntion Images can be imported directly from...
Override view block using di.xml and add the below code...
You can check a list of called layout XML for...
Follow the below steps to install and set up PWA...
If you want to remove all leading zero's from order,...
Let our Magento expert connect to discuss your requirement.
We offer Magento
certified developers.
Our Magento clientele
is 500+.
We sign NDA for the
security of your projects.
We’ve performed 100+
Magento migration projects.
Free quotation
on your project.
Three months warranty on
code developed by us.