Frontend CSS not working after I ran some commands.
Backend working fine all css and js files are working in backend
Here's
Here's the link of the site: http://testing2.dukaania.com
Frontend CSS not working after I ran some commands.
Backend working fine all css and js files are working in backend
Here's
Here's the link of the site: http://testing2.dukaania.com
Please check the page source of your website in the browser. Then click on any included CSS or JS link.
You will find the error like the following:
ReflectionException: Class Magento\Framework\App\View\Asset\MaterializationStrategy\copy does not exist
If it is true, then the following solutions can help:
mod_rewrite
module is enabled in the server.var
, pub
, generated
, and app/etc
folders.php bin/magento setup:static-content:deploy -f
from the terminal under document root folder.Please let me know if the solution helps.
php bin/magento setup:static-content:deploy
– Shashank Kumrawat Oct 12 '18 at 5:45rm -rf generated/* pub/static/*
and then runphp bin/magento setup:static-content:deploy
– Shashank Kumrawat Oct 12 '18 at 5:50