Get the most out of your Centmin Mod LEMP stack
Become a Member

Wordpress MIME type Not Support

Discussion in 'Blogs & CMS usage' started by ivanc82, Mar 24, 2020.

  1. ivanc82

    ivanc82 New Member

    27
    2
    3
    Dec 1, 2015
    Ratings:
    +4
    Local Time:
    10:16 AM
    1.11.4
    MariaDB 10
    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS 7 64bit
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: 1.17.9
    • PHP Version Installed: 7.4.3
    • MariaDB MySQL Version Installed: 10.3.22
    • When was last time updated Centmin Mod code base ? : today
    • Persistent Config: None
    My WordPress is showing me errors when I inspect using the browser


    Code:
    Refused to apply style from '/templates/script-custom-css.php' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
    Something is blocking the CSS PHP file. Can anyone help me?
     
  2. eva2000

    eva2000 Administrator Staff Member

    55,209
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    12:16 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    That is browser issue and correct as php is text/html MIME type unless your php code sends a different MIME type itself other than text/html like text/css. So it's a PHP coding issue you should ask your script author about.
     
  3. ivanc82

    ivanc82 New Member

    27
    2
    3
    Dec 1, 2015
    Ratings:
    +4
    Local Time:
    10:16 AM
    1.11.4
    MariaDB 10
    The file actually is returning a 403 Forbidden page. I also tested using other hosting with the same theme and it seems no error.

    Not sure what's wrong.
     
    Last edited: Mar 26, 2020