Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

BUG: CSS MIME type for cPaneld

Discussion in 'User Experience' started by g3b, Apr 16, 2003.

  1. g3b

    g3b Member

    Sep 7, 2002
    Likes Received:
    Trophy Points:
    When developing a new skin for cPanel, discovered a problem with the MIME type settings on the server-side.

    Here is a description and solution for the problem I found:

    My cPanel skin files all had an HTML 4.01 transitional doctype, which causes browsers like Mozilla 3 to ignore the CSS completely, and give this error message:

    Warning: The stylesheet was not loaded as CSS because its MIME type, "text/plain", is not "text/css".

    So I loaded the default, iconic, and xskin themes, and found that they gave a similar, but less fatal error:

    Warning: The stylesheet was loaded as CSS even though its MIME type, "text/plain", is not "text/css".

    The difference being that my HTML files had an HTML 4.01 transitional doctype at the top. Once I removed the doctype, the error reported by Mozilla was reduced to the same warning received by all the default cPanel skins.

    I know that the cPanel webserver is not a full one like apache, but can someone tell me if the cPanel equivalent to httpd.conf has incorrectly set the MIME type for CSS to text/plain, or has not set it at all?

    Is it even possible to set the MIME type on cPaneld for CSS documents that are part of cPanel skins?

    If someone can shed some light on this, it will be much appreciated.

    Attached is a screenshot of the MIME warning for the default cPanel skin


    Attached Files:

  2. rvskin

    rvskin Well-Known Member PartnerNOC

    Feb 19, 2003
    Likes Received:
    Trophy Points:
    MIME response for css file from cpaneld is
    Content-type: text/plain

    I don't think you are able to make any change to daemon. Go to submit the bug ticket is the best way, someday might fix it.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice