WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
Error loading stylesheet: An XSLT stylesheet does not have an XML mimetype (16 posts)

  1. JIMMYJACK33
    Member
    Posted 11 months ago #

    Just updated to the latest version of this plugin now getting:

    Error loading stylesheet: An XSLT stylesheet does not have an XML mimetype

    http://wordpress.org/plugins/wordpress-seo/

  2. Eric Rasch
    Member
    Posted 11 months ago #

    I have a number of sites I've recently upgraded and have this same issue. Rolling back to version 1.4.13 worked.

  3. thisiskris
    Member
    Posted 11 months ago #

    I was getting 404's on 1.4.13 and I now get this issue on 1.14.14. I've not found any fixes so far.

  4. Eric Rasch
    Member
    Posted 11 months ago #

    I was also getting sporadic 404's on some of the sub-sitemaps (like post-sitemap3.xml). I tried working with the .htaccess file using the 404 fix, but that didn't work. In the end, I had to fix the 404's by increasing the 'Entries per page' on the Sitemap settings to 9999.

  5. webcheck
    Member
    Posted 11 months ago #

    Same error on my site after upgrading.

    Dirty and quick fix: Download xml-sitemap.xsl (from the folder /wp-content/plugins/wordpress-seo/css/) and reupload this file as sitemap.xsl to your home folder.

  6. kale407
    Member
    Posted 11 months ago #

    @webcheck, I tried that, and it did not work for me

  7. jpinches
    Member
    Posted 11 months ago #

    One of my 3 sites was having the same error before updating to new version. Webmaster Tools reported error. Update didn't fix. Tried the following fixes suggested elsewhere by adding to root level htaccess;

    AddType application/xml xml

    AddType text/xsl xsl

    As well as added;

    </Files>
    <Files "xml-sitemap-xsl.php">
    Allow from all
    </Files>

    Went back to Webmaster Tools and submitted sitemap for test and now Google reports no errors. Why this had to be added to htaccess all the sudden indicates this was due to changes server side. FYI I use shared hosting with GoDaddy.

  8. Eric Rasch
    Member
    Posted 11 months ago #

    @jpinches: Thanks for posting that. I tried it, but it didn't work me... still a blank page.

    For those that do want to try @jpinches code, here's what you should add to the .htaccess:

    <IfModule mod_mime.c>
      AddType application/xml  atom rdf rss xml
      AddType text/xsl         xsl
    </IfModule>
    
    <Files "xml-sitemap-xsl.php">
      Allow from all
    </Files>
  9. Eric Rasch
    Member
    Posted 11 months ago #

    And I should note, again, downgrading to v1.4.13 on this site brought the sitemap back. I manage a lot of sites and this was a different one on its own server than the ones I was dealing with this morning.

  10. satrap
    Member
    Posted 11 months ago #

    There was a bug with the last version whcih was giving me the exact same problem the OP mentioned. However, I just upgraded to the new version and it is fixed now.

    Just a thought:
    Are you sure you are actually using the latest version?...

  11. zingerion
    Member
    Posted 11 months ago #

    I was getting exactly the same error. I tried the .htaccess code mentioned above in the root and wp-content directories. No luck.

    Just now updated to 1.4.15... worked! Removed the code from .htaccess, still works.

  12. Danielle
    Inactive
    Posted 11 months ago #

    maybe it works for you but not for me

  13. astrasuite
    Member
    Posted 11 months ago #

    "Dirty and quick fix: Download xml-sitemap.xsl (from the folder /wp-content/plugins/wordpress-seo/css/) and reupload this file as sitemap.xsl to your home folder."

    I think the file should be uploaded as main-sitemap.xsl, not sitemap.xsl

    This is for ver 1.4.15

    Works for me, no change to htaccess. I came from ver 1.4.7

  14. chillmen
    Member
    Posted 9 months ago #

    @astrasuite Thank you, i had a parsing error and your quick fix is working.

  15. Kristof
    Member
    Posted 5 months ago #

    Thanks @astrasuite. I was having same issue - page was loading but stylesheet wasn't.

    In addition to the stylesheet for WordPress SEO plugin 1.4.24, I also copied the stylesheet "xml-video-sitemap.xsl" for the Video SEO plugin to the home folder (and dropped the 'xml-'). Sitemaps are styled as they should be now.

    So there are now two stylesheet files in my home folder;
    main-sitemap.xsl
    video-sitemap.xsl

  16. kruglikov
    Member
    Posted 1 month ago #

    I fixed this issue on 1.5.3.3 by adding next redirect to nginx config:
    rewrite ^/main-sitemap\.xsl$ /index.php?xsl=main last;

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.