0

On the Admin Login css/js is not loading, I don't have this problem anywhere else on my site. How can i solve this? I did

bin/magento setup:static-content:deploy

bin/magento, bin/magento setup:upgrade

cleared my cache multiple times but it's not working.

enter image description here

1
  • Try sudo a2enmod rewrite then systemctl reload apache2
    – PЯINCƎ
    Jan 14, 2020 at 13:48

2 Answers 2

0

You just need to update the apache2.conf file.

/etc/apache2/apache2.conf

Navigate to the place in the apache2.conf file.Change "AllowOverride None" to "AllowOverride All" Save the file.

Enabled mod_rewrite:

sudo a2enmod rewrite

sudo service apache2 restart

3
  • Doesn't seem to work, "AllowOverride All" has already been set, any other ideas? Jan 21, 2020 at 13:09
  • check permission for /pub/static/adminhtml , /pub/static/frontend also check /var/cache , /var/view_preprocessed Jan 22, 2020 at 10:44
  • Found the issue, for some reason the css/js was linked to the en_GB store instead of en_US Jan 26, 2020 at 0:59
0

I found the issue, for some reason the js/css was linked to the 'en_GB' store instead of en_US.

Because of this the css didn't load, you can change it in the database core_config data, set general/locale/code to the preferred store.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.