Skip to content

PHP Fatal error in prepareAttributesForSave #416

Description

@daaru00

Using AvS_FastSimpleImport_Model_Import->processProductImport([..]) I receiving this error:

PHP Fatal error: Uncaught Error: Call to a member function prepareAttributesForSave() on null in /var/www/html/app/code/community/AvS/FastSimpleImport/Model/Import/Entity/Product.php:1417
Stack trace:
#0 /var/www/html/app/code/core/Mage/ImportExport/Model/Import/Entity/Product.php(481): AvS_FastSimpleImport_Model_Import_Entity_Product->_saveProducts()
#1 /var/www/html/app/code/core/Mage/ImportExport/Model/Import/Entity/Abstract.php(522): Mage_ImportExport_Model_Import_Entity_Product->_importData()
#2 /var/www/html/app/code/core/Mage/ImportExport/Model/Import.php(325): Mage_ImportExport_Model_Import_Entity_Abstract->importData()
#3 /var/www/html/app/code/community/AvS/FastSimpleImport/Model/Import.php(123): Mage_ImportExport_Model_Import->importSource()

I think the input data in not correctly validated, it would be better to handle this kind of error instead of let it throwing a Fatal error.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions