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

4 REPLIES 4

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

 

 

Found something useful, "Kudos" and "Accept as Solution" for Token of Appreciation.

Magento Tutorials

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

Most of the people all across the world are using either a laptop or mobile phones and it will get dirty and flooded with dust that you may see rarely. Therefore, we have something for you that will help you out to clean the monitor of your laptop in no time. The White Screen is the site that provides you with some full-screen colors, as you can see on this page, to spot the tiny dust particles and dirt that you can’t see with your eyes directly.