0

The entire product view page does not load and the spinner keeps on loading infinity.

Error on the console:

The resource from “/pub/media/mgs/fbuilder/css/blocks.min.css” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). The resource from “/pub/media/mgs/fbuilder/css/blocks.min.css” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). nhd-0108bz-fsy-ybw-33v3.html

How can we solve this problem? I am not able to move forward(Add to cart) because of this.

4
  • is there any console errors?
    – Manjunath
    Jan 8, 2020 at 5:49
  • @Manjunath. Yes.....The resource from “/pub/media/mgs/fbuilder/css/blocks.min.css” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). The resource from “/pub/media/mgs/fbuilder/css/blocks.min.css” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). nhd-0108bz-fsy-ybw-33v3.html
    – Nafsss
    Jan 8, 2020 at 5:56
  • Then check where the css file is called and remove its type attribute. And give a try.
    – Manjunath
    Jan 8, 2020 at 6:03
  • @Manjunath Sorry did not get you. Can u please ellabortae
    – Nafsss
    Jan 8, 2020 at 6:15

1 Answer 1

1

The problem is caused due to the permission issue on the static files.

To fix this issue,

1) Go to file path pub/static/

2) Check whether .htaccess file is available (hidden file - Press cntrl+H to view it).

3) If not available, based on the Magento version get .htaccess file in the file path pub/static/ and move into your server.

4) Finally, clear your browser and Magento cache and check it.

Let me know if this helpfull. Thanks

3
  • I tried this, but not useful
    – Nafsss
    Jan 8, 2020 at 6:41
  • Check css file is included properly or not and also remove blocks.min.css from code and redeploy static content and check. Jan 8, 2020 at 6:43
  • now i am getting only this error ReferenceError: wishlist is not defined knockout.js line 2992 > Function:3:57
    – Nafsss
    Jan 8, 2020 at 6:54

Your Answer

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

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