1

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 ?

1
  • How did you solve the issue? – zus Dec 1 '20 at 7:24
1

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/
0

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

0

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

1
  • My PHP version 7.3.2 getting the same error – zus Dec 1 '20 at 7:23

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.