WordPress.org

Support

Support » Plugins and Hacks » Google XML Sitemaps » [Plugin: Google XML Sitemaps] How to fix Error loading stylesheet problem

[Plugin: Google XML Sitemaps] How to fix Error loading stylesheet problem

  • 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).

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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.

    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.

    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…

    well my mime already has

    application/xml xml xsl

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Google XML Sitemaps] How to fix Error loading stylesheet problem’ is closed to new replies.
Skip to toolbar