Front-end stopped working after a 2.2.6 upgrade. As you can see on screenshots, there is something wrong with the styles-m.css file.

enter image description here enter image description here

1 Answer 1


You can try to regenerate the static content by doing the below steps -

  1. Delete all folders under pub/static
  2. Delete var/cache
  3. Delete var/composer_home
  4. Delete var/generation
  5. Delete var/page_cache
  6. Delete var/view_preprocessed

Now open your command prompt and go to your root installation of magento 2 and run the following command

php bin/magento setup:static-content:deploy

  • Your answer gave me a light. I had to add " -f pt_BR "at the end of this command php bin/magento setup:static-content:deploy and it worked. Thank you!
    – Leto
    Commented Dec 11, 2018 at 19:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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