Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only the first product is saved in a loop #391

Open
michahgw opened this issue Jul 17, 2017 · 2 comments
Open

Only the first product is saved in a loop #391

michahgw opened this issue Jul 17, 2017 · 2 comments

Comments

@michahgw
Copy link

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.

@sprankhub
Copy link
Collaborator

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...

@aboritskiy
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants