Want more timely Centmin Mod News Updates?
Become a Member

Wordpress MIME type Not Support

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

  1. ivanc82

    ivanc82 New Member

    26
    2
    3
    Dec 1, 2015
    Ratings:
    +4
    Local Time:
    4:58 PM
    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

    43,579
    9,884
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,264
    Local Time:
    6:58 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    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

    26
    2
    3
    Dec 1, 2015
    Ratings:
    +4
    Local Time:
    4:58 PM
    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