I'm getting this error when I try to access the base website url
Fatal error: Uncaught ReflectionException: Class Magento\Framework\App\ResourceConnection\Proxy does not exist in /var/www/html/vendor/magento/framework/Code/Reader/ClassReader.php on line 19
I have deleted all the cache files with :
sudo rm generated/* var/cache/* di/* page_cache/*
The setup:upgrade run without issues. Any ideas where the error comes from ?
- 
 How did you solve the issue?zus– zus2020年12月01日 07:24:18 +00:00Commented Dec 1, 2020 at 7:24
3 Answers 3
Eventually I ended up by fixing it doing this set of commands
sudo rm -rf var/cache/* generated/*
sudo chmod -R 777 var/ pub/static/ generated
sudo docker-compose -p ctn run --rm tools php bin/magento setup:upgrade
sudo docker-compose -p ctn run --rm tools php bin/magento setup:di:compile
sudo docker-compose -p ctn run --rm tools php bin/magento setup:static-content:deploy -f
sudo docker-compose -p ctn run --rm tools php bin/magento cache:flush
sudo chmod -R 777 var/ pub/static/ generated/
Try to check custom module dependencies, make sure that module loaded in proper sequence app/etc/config.php also take the reference from this blog
Thanks
I found this question looking for my own problem
The answer by OP did lead me to try with specifying the full php path instead of just calling bin/magento which, when that just worked, made me run php -v and aha!
In my case the default CLI php version used when I ran "bin/magento" had reverted to 7.2 when it needs to be 7.3 or up
Putting this here for the next person it happens to
- 
 My PHP version 7.3.2 getting the same errorzus– zus2020年12月01日 07:23:54 +00:00Commented Dec 1, 2020 at 7:23