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. Commented Sep 2, 2022 at 11:33
  • Just remove references to Mageplaza in eav_attribute table and flush cache. Check all fields end with _model. Commented 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' Commented Sep 2, 2022 at 12:21
  • Do you mean to delete all this row ? Commented 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) Commented 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
  • Work Perfectly! Commented Jan 2, 2023 at 11:53
0

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.