cancel
Showing results for 
Search instead for 
Did you mean: 

After upgrade to 2.3.3 css and js not loading

SOLVED
   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

After upgrade to 2.3.3 css and js not loading

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! 

 

 

error.png

1 ACCEPTED SOLUTION

Accepted Solutions

Re: After upgrade to 2.3.3 css and js not loading

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

 

Was my answer helpful? You can accept it as a solution.
200+ Premium Magento 2 Extensions Need help? Hire Magento Developer

View solution in original post

7 REPLIES 7

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"

Re: After upgrade to 2.3.3 css and js not loading

Nothing in the logs. Any other ideas on how I can troubleshoot?

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

Re: After upgrade to 2.3.3 css and js not loading

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

 

Was my answer helpful? You can accept it as a solution.
200+ Premium Magento 2 Extensions Need help? Hire Magento Developer

Re: After upgrade to 2.3.3 css and js not loading

Hello, 

 

@Rahul Gupta 

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! 

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.

Was my answer helpful? You can accept it as a solution.
200+ Premium Magento 2 Extensions Need help? Hire Magento Developer

Re: After upgrade to 2.3.3 css and js not loading

Thanks!