AvS_FastSimpleImport icon indicating copy to clipboard operation
AvS_FastSimpleImport copied to clipboard

Only the first product is saved in a loop

Open michahgw opened this issue 8 years ago • 2 comments

I have updated Magento from 1.7.0.2 to 1.9.3.3 and now, only the first product is saved in a foreach loop.

foreach($products as $data) { $import = Mage::getModel('fastsimpleimport/import'); try { $import->processProductImport($data); } catch (Exception $e) { print_r($import->getErrorMessages()); } }

I got no Error Messages.

michahgw avatar Jul 17 '17 19:07 michahgw

Two general notes:

  1. You should really update to 1.9.3.4 since 1.9.3.3 has many known issues.
  2. Instead of doing the processProductImport in a foreach loop, you should really simply give your $products array to the import model. This should be faster as well.

Besides of that, we cannot really help you without seeing your data...

sprankhub avatar Jul 18 '17 05:07 sprankhub

Depending on how many images you have - importer might be running out of memory, see https://github.com/sitewards/import_image_memory_leak_fix

aboritskiy avatar Oct 18 '17 15:10 aboritskiy