TransWikia.com

Installation issue : Uncaught ReflectionException: Class MagentoFrameworkAppResourceConnectionProxy does not exist

Magento Asked on October 2, 2021

I’m getting this error when I try to access the base website url

Fatal error: Uncaught ReflectionException: Class MagentoFrameworkAppResourceConnectionProxy 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 ?

3 Answers

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 by iphigenie on October 2, 2021

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 by Shashank Gupta on October 2, 2021

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 by Claims on October 2, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP