2

admin pannel of M2 v2.1.9 not loaded in css and js file means show only html content format.

I'm also run these commond many times but not fix.

  • sudo php -f bin/magento setup:static-content:deploy
  • php bin/magento setup:di:compile
  • php bin/magento indexer:reindex
  • sudo chmod -R 777 var/

Delete Some Folder too:

  • MAGENTO_ROOT/pub/static/_requirejs
  • MAGENTO_ROOT/pub/static/adminhtml
  • MAGENTO_ROOT/pub/static/frontend

Can anyone guide how to fix it?

4

Please check it out if static contain .htaccess file or not if not then paste it from this link https://github.com/magento/magento2/blob/2.2-develop/pub/static/.htaccess and do this command

sudo php bin/magento setup:static-content:deploy
sudo php bin/magento cache:flush

Thanks

  • Please guide to exactally what do in this file. – Anikesh Shahi Nov 4 '17 at 5:27
  • Hello Please goto Magento2Root/pub/static – Moin Malek Nov 4 '17 at 6:09
  • thnks.it worked – Anikesh Shahi Nov 4 '17 at 11:29
  • Cool @AnikeshShahi – Moin Malek Nov 4 '17 at 13:21
  • Its again problem in frontend.backend working cool but frontend not loaded css file after replacing .htaccess file now – Anikesh Shahi Nov 6 '17 at 5:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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