after installing magento 2.2.2 theme my front-end and admin panel is not loading properly! how can i solve this
?
enter image description here
Asked
Active
Viewed 216 times
0
-
2because your css is not properly loaded, to verify you can check the css paths in source code – inrsaurabh Apr 02 '18 at 08:12
-
https://magento.stackexchange.com/questions/154728/magento-2-not-loading-css-and-js-after-successful-installation-in-windows?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa – inrsaurabh Apr 02 '18 at 08:17
-
have you installed magento on your local system or on some server ? could you also mention what OS are you using ? – Naveed Asim Apr 02 '18 at 08:38
-
its installed in my server. am using windows 10 – mehedi hasan Apr 02 '18 at 10:31
1 Answers
0
Please run below commands from Magento 2 root directory.
php bin/magento setup:static-content:deploy
php bin/magento cache:clean
chmod -R 777 var/ pub/static/
If it is still not running then...
Run following query in database
INSERT INTO `core_config_data` (`scope`, `scope_id`, `path`, `value`) VALUES ('default', 0, 'dev/static/sign', '0');
or if you have already value for that path, then change it from 1 to 0.
Then flush cache and deploy static content as follows.
php bin/magento cache:flush
php bin/magento setup:static-content:deploy
chmod -R 777 var/ pub/static/
Kishan Patadia
- 5,609
- 3
- 24
- 36
-
1sir isn`t it a duplicate question and needs to mark it as a duplicate ? – inrsaurabh Apr 02 '18 at 08:15
-
It is not duplicate. I also mentioned another case in my answer. – Kishan Patadia Apr 02 '18 at 08:16
