I completed upgrade to 2.3.3 but now CSS and JS are not loading. Googled and tried several solutions but nothing is working. Please help!
Solved! Go to Solution.
Hello @hecs_m
1. You should adjust the filesystem permissions and maybe the webserver rewrites: https://mage2.pro/t/259
2. Upload default .htaccess file in root
Hello @hecs_m
Check server error.log file if it enabled.
Else, enable the display error log and check it.
Hope it helps.
Nothing in the logs. Any other ideas on how I can troubleshoot?
@hecs_m try the below commands.
If you are working on default mode then please switch to developer mode using
php bin/magento deploy:mode:set developer
After this run the below commands.
sudo rm -rf pub/static/* php bin/magento setup:static-content:deploy
Thanks
Hello @hecs_m
1. You should adjust the filesystem permissions and maybe the webserver rewrites: https://mage2.pro/t/259
2. Upload default .htaccess file in root
Hello,
I switched to developer mode, removed static content, deployed. When trying to switch back to production mode it was giving me a compilation error:
Command returned non-zero exit code: `/usr/local/php71/bin/php-cli -f /home/customer/www/goodsash.com/public_html/bin/magento setup:di:com pile`
So then I switched back and skipped compilation ( from a suggestion to another question )
php bin/magento deploy:mode:set production --skip-compilation
Tried running permissions (from @theMageComp suggestion):
chmod 777 pub
chmod 777 var
Cleaned cache.
Deploy.
It's working finally!! I'm guessing the permissions got changed when updating Magento? I'm new to Magento so I'm learning as I go.
Thanks!
Hello @hecs_m
Please accept the solution so if someone else is searching then they get benefit.
Thanks!