简体   繁体   中英

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):

在此处输入图片说明

Did anyone encounter this problem?

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM