cancel
Showing results for 
Search instead for 
Did you mean: 

No CSS & Java in Admin Backend

No CSS & Java in Admin Backend

Hi there,

 

The site is working well, however, the admin backend has no css or javascript and I have no clue how to fix. Tried a few things but nothing seems to fit it. It did work before so it's not a new installation issue. The SSL works fine and the domain names in Base URL are fine on the main website. magentonocssjava.PNG

6 REPLIES 6

Re: No CSS & Java in Admin Backend

Have you multi-store setup with multi language? if Yes then you need to run deploy command with your store language If you have dutch language run command like,

php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f en_US nl_NL

If you have only English language in store admin, You need to run below command from Magento root via Command line,

php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f

Also, check in your pub/static folder has a .htaccess file available.

If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial

Re: No CSS & Java in Admin Backend

Which command do I type for PHP in Ubuntu? Also htaccess exists in the folder.

Re: No CSS & Java in Admin Backend

You need to run below command from Magento root folder where your composer.json file resides,

php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f

 

If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial

Re: No CSS & Java in Admin Backend

Didn't really help now the admin page won't load. Too many redirects it says.

Re: No CSS & Java in Admin Backend

Hi @modestas_mankus

 

Go to var/log directory - check the exception.log file and the post that error log over here - so its help us to troubleshoot the issue !

 

Hope it helps !

if issue solved,Click Kudos & Accept as Solution

Re: No CSS & Java in Admin Backend

Do you running it with Apache or under Nginx?