7

While migrating the Magento version from 2.3.4 to 2.3.2.

I am facing below issues while navigating to Product page.

Error: Class Magento\Catalog\Model\Product\Attribute\Backend\LayoutUpdate does not exist

In admin panel, when editing the products getting the below error

Error: Product does not exists"

4 Answers 4

28

The issue is in your database

I noticed in Magento 2.3.4, they created the LayoutUpdate file with the attributes custom_layout_update_file.

When we revert back, the attribute calling the file and cause the issue.

solution: Go to your Database and search the table eav_attribute

Run below query

SELECT * FROM `eav_attribute` WHERE `attribute_code` LIKE 'custom_layout_update_file'

You will find two records and just remove them (if you using Magento 2.3.2).

If you have redis, you will need to flush the cache from it.

redis-cli flushall;
1
  • 1
    After run the command above, I run this: DELETE FROM `eav_attribute` WHERE `attribute_code` LIKE 'custom_layout_update_file'; Dec 9, 2020 at 18:19
0

Please Check Your __constructor Method Objects When You Call That Class.

Run composer update bin/magento setup:upgrade bin/magento c:f Try again.

0

I have the same issue, after clear cache of redis and restart redis, the problem solved, if someone use redis too, you can try this:
redis-cli FLUSHDB – Delete all the keys of the currently selected DB.
redis-cli FLUSHALL – Delete all the keys of all the existing databases, not just the currently selected one.

0

I had the same issue but i do not downgraded my magento installation. I made an upgrade vom 2.2.11 to 2.3. However, deleting the two entries helped. Thanks a lot!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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