0

Using Magento 2.3 with Porto theme version 3.1.6, trying to upgrade to 3.1.7. After downloading the theme files and uploading them to my server, I run:

php bin/magento setup:static-content:deploy

But got this error:

enter image description here

When I reload my website, the CSS styling was all messed up so I opened Chrome's console and saw:

enter image description here

Refused to apply style from 'pub/static/version1549487745/frontend/Smartwave/porto_child/en_US/css/styles-m.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

Refused to apply style from 'pub/static/version1549487745/frontend/Smartwave/porto_child/en_US/css/styles-l.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

The .htaccess files are in the pub/static/ folder and the permissions are properly set, so it can't be that.

Please help. Now, the styling is all messed up on my shop (front-end only).
How can I fix this issue and update my theme?

  • have you tried force redeploying? setup:static-content:deploy -f – magefms Feb 8 at 23:34
  • Yes, it gives the same error. – GTS Joe Feb 8 at 23:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.