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

Call to undefined method Magento\Eav\Model\Entity\Attribute\Backend\ArrayBackend::getAllOptions() #446

Closed
Ralfi18 opened this issue Jan 11, 2018 · 2 comments
Labels

Comments

@Ralfi18
Copy link

Ralfi18 commented Jan 11, 2018

Hello!

When migrating to Magento 2 (from magento 1.9.3) using Data Migration Tool, in the Admin/Customers i get this Error:

screenshot-2018-1-10 http denta loc

Call to undefined method Magento\Eav\Model\Entity\Attribute\Backend\ArrayBackend::getAllOptions()

Fatal error: Uncaught Error: Call to undefined method Magento\Eav\Model\Entity\Attribute\Backend\ArrayBackend::getAllOptions() in /var/www/denta.loc/generated/code/Magento/Eav/Model/Entity/Attribute/Backend/ArrayBackend/Interceptor.php:36 Stack trace: #0 /var/www/denta.loc/vendor/magento/module-customer/Model/AttributeMetadataConverter.php(68): Magento\Eav\Model\Entity\Attribute\Backend\ArrayBackend\Interceptor->getAllOptions() #1 /var/www/denta.loc/vendor/magento/module-customer/Model/Metadata/CustomerMetadata.php(77): Magento\Customer\Model\AttributeMetadataConverter->createMetadataAttribute(Object(Magento\Customer\Model\Attribute)) #2 /var/www/denta.loc/vendor/magento/module-customer/Model/Metadata/CustomerMetadata.php(109): Magento\Customer\Model\Metadata\CustomerMetadata->getAttributeMetadata('default_blog_ca...') #3 /var/www/denta.loc/vendor/magento/module-customer/Model/Metadata/CachedMetadata.php(85): Magento\Customer\Model\Metadata\CustomerMetadata->getAllAttributesMetadata() #4 /var/www/denta.loc/vendor/magento/ in /var/www/denta.loc/generated/code/Magento/Eav/Model/Entity/Attribute/Backend/ArrayBackend/Interceptor.php on line 36

I found a fix adding the method getAllOptions which returns an empty array. Have any one encounter the same issue ( the db tables are populated ) and if so how did you fix it. Tank you!

@victor-v-rad
Copy link
Collaborator

According to the above exception the attribute "default_blog_ca..." cause the error. Try to remove it

@hafizjee
Copy link

@Ralfi18 how can u resolve this ?? m also facing the same issue

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

No branches or pull requests

3 participants