Support » Plugin: Yoast SEO » Error loading stylesheet: An XSLT stylesheet does not have an XML mimetype

Viewing 15 replies - 1 through 15 (of 15 total)
  • I have a number of sites I’ve recently upgraded and have this same issue. Rolling back to version 1.4.13 worked.

    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.

    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.

    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.

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

    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.

    @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>

    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.

    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?…

    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.

    Danielle

    (@nashua-indigo)

    maybe it works for you but not for me

    “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

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

    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

    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;

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Error loading stylesheet: An XSLT stylesheet does not have an XML mimetype’ is closed to new replies.