0

When trying to edit or add a new product on the backend I receive the following error

Class Magento\Catalog\Model\Product\Attribute\Backend\Media does not exist.

It stops me from editing or adding a product! This has happened after importing a few products.

  • Which is your Magento version? – Khoa TruongDinh Feb 8 '17 at 16:29
  • @KhoaTruongDinh 2.1.3 – Quagerty Feb 8 '17 at 16:31
  • Can you share the stack Trace from exception.log . Only share Trace for this error. Also , have you made sure that the class physically exists at the location – Abhishek Jakhotiya May 14 '17 at 5:53
-1

Use these commands on the root of your installation.

alias mage="php -d memory_limit=-1 -f bin/magento"

chmod -R 775 pub/static/ var/ pub/media/ && 
rm -rf var/view_preprocessed/ var/cache/ var/page_cache/ var/tmp/ var/generation/ pub/static/frontend/ vendor/* ; 
composer install && composer update -vvv && 
php -r "opcache_reset();" 
mage module:disable Magento_Review ; 
mage cache:flush && 
mage indexer:reindex && 
mage setup:upgrade && 
mage setup:static-content:deploy && 
mage setup:db-data:upgrade && 
mage dev:source-theme:deploy && 
chmod -R 775 pub/static/ pub/media/ var/

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.