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 ?

asked Jul 20, 2020 at 12:48
1
  • How did you solve the issue? Commented Dec 1, 2020 at 7:24

3 Answers 3

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/
answered Jul 20, 2020 at 14:50
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

answered Jul 20, 2020 at 15:37
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

answered Sep 2, 2020 at 12:02
1
  • My PHP version 7.3.2 getting the same error Commented Dec 1, 2020 at 7:23

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.