Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    g3b
    g3b is offline
    Member
    Join Date
    Sep 2002
    Posts
    11

    Default BUG: CSS MIME type for cPaneld

    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:

    http://devedge.netscape.com/viewsour...ct-mime-types/

    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 http://www.domain.net.nz:2082/fronte...trol/style.css 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 http://www.rise.net.nz:2082/frontend/default/style.css 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

    G
    Attached Images

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge rvskin's Avatar
    Join Date
    Feb 2003
    Posts
    397

    Default

    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 Cpanel.net might fix it.
    RVSkin, a great experience for you, resellers and clients!
    http://www.RVSkin.com - The Most Intelligent Cpanel Skin, 23 Languages included.
    http://www.RVSiteBuilder.com - Website Builder for Hosting Provider.
    http://www.cPanelLicense.com - External cPanel License.

Similar Threads & Tags
Similar threads

  1. Filed with Developers Strip . from .ext on cPanel MIME Type Editor screen [Case 52162]
    By jpratt in forum Feature Requests for cPanel/WHM
    Replies: 5
    Last Post: 08-15-2011, 09:19 AM
  2. Pls help with account type and system type domain zone config
    By stardotstar in forum E-mail Discussions
    Replies: 2
    Last Post: 09-21-2009, 03:27 PM
  3. Cannot remove bad name user-defined MIME type from cpanel
    By wessam in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-09-2009, 10:47 AM
  4. missing MIME type...repetitive
    By Secret Agent in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-24-2005, 07:59 PM
  5. WHM --> cPanel CSS BUG
    By Sheldon in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-22-2004, 11:41 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube