WordPress.org

Ready to get started?Download WordPress

Forums

Google XML Sitemaps
How to fix Error loading stylesheet problem (6 posts)

  1. John Robertson
    Member
    Posted 3 years ago #

    It seems the author didn't give too much insight into why this problem occurred, saying only it was a server config problem.

    The root problem behind the situation is the fact that the server does not have the .xsl filetype listed in its mime.type file list, telling browsers how to interpret certain file types.

    If you have root access to your server:

    Apache

    http://httpd.apache.org/docs/1.3/mod/mod_mime.html#addtype

    nginx

    I did it the manual way by editing the mime.type file in the /etc/nginx folder.

    In the line with:
    text/xml xml rss;

    Just change it to

    text/xml xml xsl rss;

    Then restart the nginx service (e.g. service nginx restart)

    ==

    For other HTTP handlers, just look up how to add mime types.

    ==

    After you make the change, make sure to clear your browser cache or else the error will still show up. This seems to affect firefox users only since other browsers have methods of interpreting the xsl file to compensate for not so proper standards.

    ==

    with regards to shared hosts (e.g. bluehost), your admin panel normally should have an option to add mime-types... e.g. cPanel has it listed under the Advanced tab. However I believe most shared hosts have a much wider range of mime types than base packages offered in unmanaged default packages (e.g. fresh install of apache, nginx, etc).

  2. John Robertson
    Member
    Posted 3 years ago #

    Also to note, if you have a cPanel manager with root access on apache, it can be done via cpanel > advanced > mime types as well.

  3. Gaperville
    Member
    Posted 3 years ago #

    Cool!

    I hope this works and why are you the only one that has responded properly?

    Why all of a sudden is this not working as its just now breaking after I updated to the new version of this plugin?

    Peace and thanks again.

  4. Gaperville
    Member
    Posted 3 years ago #

    oh yeah, my sitemap is working properly for another site using the same plugin.

    This plug is also showing a link to upgrade when I'm using the latest version. Both versions match...

  5. Gaperville
    Member
    Posted 3 years ago #

    well my mime already has

    application/xml xml xsl

  6. Gaperville
    Member
    Posted 3 years ago #

    PROBLEM SOLVED:

    I deleted this sitemap plugin and now I am using a different sitemap plugin located @

    http://wordpress.org/extend/plugins/karailievs-sitemap/

    It does work with the current versions of WP 3.01. Everything is working perfectly and its simple. no extra bells and whistles here, it just works.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic