cancel
Showing results for 
Search instead for 
Did you mean: 

After upgrade to 2.3.3 css and js not loading

SOLVED

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.
175+ Professional Extensions for M1 & M2
Need a developer?Just visit Contact Us Now

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.
175+ Professional Extensions for M1 & M2
Need a developer?Just visit Contact Us Now

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.
175+ Professional Extensions for M1 & M2
Need a developer?Just visit Contact Us Now

Re: After upgrade to 2.3.3 css and js not loading

Thanks!