cancel
Showing results for 
Search instead for 
Did you mean: 

blank screen after composer install

blank screen after composer install

I've been able to force Magento Installer (setup.php) to print the error to the screen.  Before I was just getting a blank screen.  Here is the error ....


Fatal error: Uncaught ReflectionException: Class Magento\Framework\App\ResourceConnection\Proxy does not exist in /var/www/html/Magento/vendor/magento/framework/Code/Reader/ClassReader.php:19 Stack trace: #0 /var/www/html/Magento/vendor/magento/framework/Code/Reader/ClassReader.php(19): ReflectionClass->__construct('Magento\\Framewo...') #1 /var/www/html/Magento/vendor/magento/framework/ObjectManager/Definition/Runtime.php(49): Magento\Framework\Code\Reader\ClassReader->getConstructor('Magento\\Framewo...') #2 /var/www/html/Magento/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(48): Magento\Framework\ObjectManager\Definition\Runtime->getParameters('Magento\\Framewo...') #3 /var/www/html/Magento/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\\Framewo...') #4 /var/www/html/Magento/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(160): Magento\Framework\ObjectManager\ObjectManager->get('Magento\\F in /var/www/html/Magento/vendor/magento/framework/Code/Reader/ClassReader.php on line 19

5 REPLIES 5

Re: blank screen after composer install

Hi @GrocExp,

There may be some issue with permissions on the server in generations of static files. And make sure that you have ". htaccass" file in pub/static folder.

 

Try the following command to setup proper permission to magento directory.

find . -type d -exec chmod 755 {} \; && find . -type f -exec chmod 644 {} \; && chmod u+x bin/magento

After it run the following magento commands in the sequence.

 

chmod -R 0777 var/ pub/ generated/
rm -rf var/cache/* var/view_preprocessed/* generated/* pub/static/*
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush
php bin/magento indexer:reindex
chmod -R 0777 var/ pub/ generated/

I hope it will help you!

Re: blank screen after composer install

Hello @GrocExp 

DevDocs has this thing mentioned, I think this should help you.

https://devdocs.magento.com/guides/v2.3/install-gde/trouble/tshoot_wrong-mysql.html

 

 

Was my answer helpful? You can accept it as a solution.
175+ Professional Extensions for M1 & M2
Need a developer?Just visit Contact Us Now

Re: blank screen after composer install

Thank you for taking the time to provide a possible solution.  I too guessed permissions are the issue.  I followed your suggestion and recorded that implementation in this video link ...
https://youtu.be/W4GAbVgUtjk

The solution failed for the 1st time when attempting php magento setup:upgrade  I got 

Can't run this operation: deployment configuration is absent. Run 'magento setup:config:set --help' for options.

 

Re: blank screen after composer install

Hi @GrocExp,

 

Please try the following command and check it again:

chmod -R 0777 var/ pub/ generated/
rm -rf var/cache/* var/view_preprocessed/* generated/* pub/static/*
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush
php bin/magento indexer:reindex
chmod -R 0777 var/ pub/ generated/

 

Hope this can help you! Let me know if you need further assistance. 

__________

If issue solved, Click Kudos & Accept as Solution.

LitExtension - #1 Shopping Cart Migration Expert

LitExtension helps store owners and agencies migrate all important data from one eCommerce platform to another accurately, securely and at the highest speed.

Visit website: http://litextension.com/

Re: blank screen after composer install

Usually related to permissions; however, we don't ever use 777, except at the casinos. 

 

Try re-setting your user/group first. 

 

e.g. 

 

sudo chown -R www-data:www-data /var/www/magento