magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

ImportExport module produces PHP strict notices

Open FiveDigital opened this issue 14 years ago • 3 comments

The ImportExport module especially the model Mage_ImportExport_Model_Import_Entity_Product is accessing non existing array keys without checking them first. This leads to a system.log full of Notice: Undefined index:

Notice: Undefined index: sku  in /app/code/core/Mage/ImportExport/Model/Import/Entity/Product.php on line 1717
Notice: Undefined index: _type  in /app/code/core/Mage/ImportExport/Model/Import/Entity/Product.php on line 1240
Notice: Undefined index: _type  in /app/code/core/Mage/ImportExport/Model/Import/Entity/Product.php on line 1241

FiveDigital avatar Sep 14 '12 07:09 FiveDigital

Also, there is a typo in the name of one of the media* attributes: _media_lable instead of _media_label in Mage_ImportExport_Model_Import_Entity_Product which has led me to a lot of confusion in the past.

barbazul avatar Sep 14 '12 14:09 barbazul

Thanks for mentioning these code issues. We have quick-fixed them and covered with tests.

magento-team avatar Oct 12 '12 16:10 magento-team

Hello, I want to remove sku during product import using csv in magento, Can you please check it??

art6495 avatar Nov 08 '17 06:11 art6495