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

Virtual type does not exist but mentioned in #461

Closed
bobdavison opened this issue Feb 15, 2018 · 6 comments
Closed

Virtual type does not exist but mentioned in #461

bobdavison opened this issue Feb 15, 2018 · 6 comments

Comments

@bobdavison
Copy link

bobdavison commented Feb 15, 2018

Magento 2.2.1, Migration Tool 2.2.1

I am getting the following error:
ERROR: Class Simplyhops\ProductAdmin\Model\Config\Source\Variety does not exist but mentioned in: eav_attribute.source_model for attribute_id=257

I have looked at the Migration Troubleshooting page and suggestions in issue #144.

This error is related to a new attribute in my Magento 2 code, it is not migrated but the migration tool seems to move it to a new attribute id and the volume check attempts to validate it. The class does not exists as it is a virtual type configured in my di.xml.

I have tried adding the effected attribute into the ignore section of eav-attribute-groups.xml and adding an empty class map to class-map.xml but to no avail.

@bobdavison
Copy link
Author

I have got round this by providing a custom Migration\Step\Eav\Volume sub-class via config.xml that changes line 153 to also check if the ObjectManager can create an instance of the type.

It is not a great solution as it instantiates the objects rather than just checking that they are valid but it works for now.

@kp-drc
Copy link

kp-drc commented Feb 16, 2018

@bobdavison I am also getting similar error below. Can you please help to fix it ?

Class Magento\Catalog\Block\Adminhtml\Product\Helper\Form\BaseImage does not exist but mentioned in: catalog_eav_attribute.frontend_input_renderer for attribute_id=74

I already tried after adding below in class-map.xml.dist but it didn't work.

<rename>
    <from>Magento\Catalog\Block\Adminhtml\Product\Helper\Form\BaseImage</from>
    <to />
</rename>

@bobdavison
Copy link
Author

@kp-drc your problem is unrelated, the BaseImage class does not exist as it was removed from Magento between versions 2.0 and 2.1

You could set the offending frontend_input_renderer to null in the catalog_eav_attribute table but you should consider upgrading to a newer release of Magento 2.

@kp-drc
Copy link

kp-drc commented Feb 16, 2018

@bobdavison I am using Magento 2.2.2. It is already latest.

@bobdavison
Copy link
Author

@kp-drc your problem is unrelated to this issue and you already have your own issue open. If I can help I will comment on your issue.

@victor-v-rad
Copy link
Collaborator

Hi @bobdavison

Thank you for posting this issue. Internal ticket MAGETWO-87959 to fix it

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

No branches or pull requests

3 participants