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

Class Mageprince\Productattach\Api\ProductattachInterface does not exist #68

Closed
mtjweb opened this issue Jul 6, 2020 · 10 comments
Closed

Comments

@mtjweb
Copy link

mtjweb commented Jul 6, 2020

I upgraded to version 2.0.3 and got the following error when running the command php bin/magento setup:upgrade.

Class Mageprince\Productattach\Api\ProductattachInterface does not exist

I'm using Magento 2.3.5-p1

@mageprince
Copy link
Owner

@mtjweb Please try after run php bin/magento s:d:c or please remove generated/code and var/cache, var/page_cache.

@mtjweb
Copy link
Author

mtjweb commented Jul 7, 2020

Tried it, but the error is still there.

@mageprince
Copy link
Owner

@mtjweb Which was the old version of the product attachment module?

@mtjweb
Copy link
Author

mtjweb commented Jul 7, 2020

I'm not sure which version exactly, but I know it was somewhere in the first version. So v1.?.?

@mageprince
Copy link
Owner

Are you using composer to update the module ?

@mtjweb
Copy link
Author

mtjweb commented Jul 7, 2020

No, downloaded it on marketplace.magento.com.

@mageprince
Copy link
Owner

What is the module path ? like app/code/ ?

@mtjweb
Copy link
Author

mtjweb commented Jul 7, 2020

I see it, the path changed. I corrected it. But when I open a product under Catalog => Products, I'm getting the following error:

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'dbname.prince_productattach_relation' doesn't exist, query was: SELECT main_table.* FROM prince_productattach_relation AS main_table WHERE (product_id = '46')

I checked the database and the table prince_productattach_relation is missing.

@mageprince
Copy link
Owner

Yes, module path must be app/code/Mageprince/Productattach
For missing table, just remove module entry Prince_Productattach and Mageprince_Productattach from table setup_module and run following commands.

php bin/magento set:up
php bin/magento s:d:c
php bin/magento s:s:d

@mtjweb
Copy link
Author

mtjweb commented Jul 7, 2020

Thank you, that solved the problem.

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

2 participants