- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
200+ Premium Magento 2 Extensions Need help? Hire Magento Developer
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: After upgrade to 2.3.3 css and js not loading
Hello @hecs_m
Check server error.log file if it enabled.
Else, enable the display error log and check it.
Hope it helps.
If you've found my answer useful, please give"Kudos" and "Accept as Solution"
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: After upgrade to 2.3.3 css and js not loading
Nothing in the logs. Any other ideas on how I can troubleshoot?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: After upgrade to 2.3.3 css and js not loading
@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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
200+ Premium Magento 2 Extensions Need help? Hire Magento Developer
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: After upgrade to 2.3.3 css and js not loading
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!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: After upgrade to 2.3.3 css and js not loading
Hello @hecs_m
Please accept the solution so if someone else is searching then they get benefit.
200+ Premium Magento 2 Extensions Need help? Hire Magento Developer
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: After upgrade to 2.3.3 css and js not loading
Thanks!