0

I have the following error when trying to access Magento 2.

Class Mageplaza\LayeredNavigation\Model\Category\Attribute\Backend\Attributes does not exist

This happen after removed Porto Theme. SmartWave. Mageplaza. can you help me fix it ? I have run the below commands but no success :

php bin/magento setup:upgrade
// -f to use in default and developer mode
php bin/magento setup:static-content:deploy -f
php bin/magento setup:di:compile
php bin/magento cache:flush
php bin/magento cache:clean

Noted that frontend is not accessible while backend its ok.

Thank you !!

11
  • I have same error when accesing Category on admin panel. Sep 2, 2022 at 11:33
  • Just remove references to Mageplaza in eav_attribute table and flush cache. Check all fields end with _model. Sep 2, 2022 at 12:11
  • @Victor thaanks for your reply. I found this on easv_attribute : backend_model` = 'Mageplaza\LayeredNavigation\Model\Category\Attribute\Backend\Attributes' and source_model = 'Mageplaza\LayeredNavigation\Model\Category\Attribute\Source\Attributes' Sep 2, 2022 at 12:21
  • Do you mean to delete all this row ? Sep 2, 2022 at 12:23
  • No. Ideally need to restore default value, but you can just set to empty. Please specify found attributes and i will advise default values (if they are exists) Sep 2, 2022 at 12:43

2 Answers 2

1

This issue can be fixed by simply removing reference to Mageplaza\LayeredNavigation\Model\Category\Attribute\Backend\Attributes from the backend model in your DB eav_attribute table.

enter image description here

Query to run:

SELECT * FROM eav_attribute WHERE backend_model LIKE 'Mageplaza%LayeredNavigation%Model%';
1
0

Work perfectly, i remove one db line and all is running again

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.