Hello,
I am fairly new to Magento, **learning phase.
Version - 2.3.5
Mac
Recently, I was working on rearranging the admin panel menu and ended up running below commands. I dont know why i did this. Some forum took me to this.
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento cache:clean
php bin/magento cache:flush
Ever since, I guess reindex not working - on the admin panel I get "One or more indexers are invalid. Make sure your Magento cron job is running." always. I havent setup a cron job yet. However, reindex command used to work in Terminal. Now when i run reindex in Terminal, i get the following error.
Appreciate your help. Thanks
PHP Fatal error: Uncaught Error: Class 'Magento\Theme\Model\Design\Backend\Theme\Interceptor' not found in /var/www/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:121
Stack trace:
#0 /var/www/html/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\\Theme\\M...', Array)
#1 /var/www/html/vendor/magento/framework/ObjectManager/ObjectManager.php(56): Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\\Theme\\M...', Array)
#2 /var/www/html/vendor/magento/module-theme/Model/Design/BackendModelFactory.php(106): Magento\Framework\ObjectManager\ObjectManager->create('Magento\\Theme\\M...', Array)
#3 /var/www/html/vendor/magento/module-theme/Model/Design/BackendModelFactory.php(118): Magento\Theme\Model\Design\BackendModelFactory->getNewBackendModel('Magento\\Theme\\M...', Array)
#4 /var/www/html/vendor/magento/module-theme/Model/Design/Config/ValueProcessor.php(43): Magento\Theme\Model\Design\BackendMod in /var/www/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php on line 121
Hello @billymohli9115
It seems to be a permission-related issue.
Please refer https://magento.stackexchange.com/questions/300048/magento2-3-2website-is-not-opening-class-magento-... for the solution.
I hope it helps.
Hi,
Thanks for your response. I didnt have to try this out. Actually, things were normal automatically overnight.
Thanks anyways.