Skip to content

Magento : Fix Fatal error Call to a member function getName() on a non-object in ImportExport/Model/Export/Entity/Product.php on line 172

this is a dirty way to fix this issue,

go to Fatal error: Call to a member function getName() on a non-object in app/code/core/Mage/ImportExport/Model/Export/Entity/Product.php on line 173

replace :

$path[] = $collection->getItemById($structure[$i])->getName();

with:

if($collection->getItemById($structure[$i]))
$path[] = $collection->getItemById($structure[$i])->getName();

voila!! the issue has been fixed 😀

 

 

Share

Be First to Comment

Leave a Reply

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