Fatal error : Call to a member function getBackendModel() on null in app/code/core/Mage/ImportExport/Model/Import/Entity/Customer.php on line 425 M-1

magento.stackexchange https://magento.stackexchange.com/questions/208181

Question

I got error while importing the customer using CSV in the admin.

Était-ce utile?

La solution

Magento checks all attributes in the CSV file before importing. And if there are some attributes that are either not assigned to attribute set or have no backend model defined, then Magento throws an error like the error which you are getting.

You need to make sure that your custom customer attributes are assigned to a set. Otherwise, the following code will remove your attributes from the array which will trigger the above error during the import:

app/code/core/Mage/Eav/Model/Entity/Abstract.php

if (!$attribute->isInSet($setId)) {
    unset($attributes[$code]);
}

Please let me know if it helped.

Licencié sous: CC-BY-SA avec attribution
Non affilié à magento.stackexchange
scroll top