Chi
Chi

Reputation: 1410

magento2 setup: no CSS

I have a weird error when trying to develop a magento2 project locally: the backend and frontend work fine, but when I navigate to System -> Web Setup Wizard the page is suddenly missing all styles. I tried the

php bin/magento setup:static-content:deploy 

that didn't change anything. It still looks like this (without any console errors):

enter image description here

Did anyone encounter this problem?

Upvotes: 2

Views: 99

Answers (2)

Jaimin Patel
Jaimin Patel

Reputation: 165

Run Following Commands :-

php -dmemory_limit=6G bin/magento setup:upgrade

php -dmemory_limit=6G bin/magento setup:static-content:deploy

php -dmemory_limit=6G bin/magento indexer:reindex

php -dmemory_limit=6G bin/magento cache:flush

After run above commands.your issue will fix.

Upvotes: 2

Pavan Kumar
Pavan Kumar

Reputation: 1735

Remove the total var folder and also delete files from the folder pub/static. Once this is done, run php bin/magento setup:upgrade and then run php bin/magento setup:static-content:deploy

Upvotes: 0

Related Questions