Magento – Source model not found error message when exporting customer info

exportsource-model

Hello good people of Stack Exchange.

Our small business has recently transferred our website to a new Magento hosting agency and we are experiencing an issue with the functionality for exporting customer information.

The process should be straight-forward:

http://www.magentocommerce.com/knowledge-base/entry/exporting-product-or-customer-information

However, when we select the entity type from the drop-down menu the page hangs on the 'Please wait…' message and the following error message appears:

Source model "donation/eav_attribute_source_giftaid" not found for attribute "giftaid"

We are a retail business so a giftaid message (which I assume relates to a charity setup) makes little sense to us.

We have flagged this issue with our agency but they haven't provided us with an answer and we need to get this functionality working.

If anyone with Magento experience could shed some light on the situation and offer any potential fixes it would be greatly appreciated.

Many thanks all!

Best Answer

The message would suggest that at some point your store had a donation module installed, but the code no longer exists. You have an attribute with the name giftaid and when Magento attempts to find the value to export it can't because the source class doesn't exist. I guess there are three ways to get around this issue:

  1. Re-install the original module so that the source model exists (will be tricky if you don't know which module it was).
  2. Attempt to create your own module that uses the same shortname and provide the class Magento is looking for.
  3. If you're sure you don't need it, you could delete the attribute (Catalog > Attributes > Manage Attributes, search for giftaid in the attribute code field, click into it and click delete).

NB: I would highly recommend not attempting any of these steps in a live environment unless you really know what you're doing, especially Step 3 which you probably won't be able to recover from.

Unless this is a feature of EE I don't think donation has ever been a core module, so if it doesn't seem required for your field it's rather curious that at exists in your system.