Support » Plugin: Yoast SEO » Google WMT rejects sitemap_index.xml

  • When I want to setup the Sitemap details in Google WMT, Google comes with an error.
    See picture in link below (in Dutch)
    Link picture

    The errormessage is: Uw sitemap lijkt een HTML-pagina te zijn. Gebruik in plaats daarvan een ondersteunde sitemapindeling.

    In English: Your Sitemap appears to be an HTML page. Instead, use a supported sitemap format.

    What to do?

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

Viewing 14 replies - 16 through 29 (of 29 total)
  • You mean after the following line?

    define( 'WPSEO_VERSION', '1.4.18' );

    The exact same code you posted is already there (???).

    I just read that part on your site. It see that it should have been placed in the newer version… 🙁

    I will try that in a second…

    Nope, doesn’t work in the wp-seo.php file of 1.4.21. Getting the homepage again. Reverted quickly back to 1.4.18 🙂

    I reverted to 1.4.18 also, it’s working, but XML files for other languages don’t work… see http://www.rodcraft.com/sitemap_index.xml.

    That’s strange. Looks like you’re having the same setup as I have. Perhaps change some settings? Also I noticed that deactivating, saving, activing and saving again worked for me. (active sitemap)

    Under permalinks I have nohting checked.
    Under Sitemaps I did not check Disable author/user sitemap, although I have no idea if that makes sense.

    @picks44
    See the link I posted above – there’s some info about reverting the plugin, and some other tips.

    @jack
    Thanks for the feedback on my suggested mod to the newer plugin. It’s hard to find solutions without being able to test…

    Glad though that reverting worked for you. I’d say stick with 1.4.18 until one of the plugin devs fixes the incompatibility.
    (I sometimes install Plugin Update Hider plugin on client sites when we are forced to use older plugin versions to keep critical functions – stops other admins updating the faulty plugin)

    Fully agree with you about Google XML Sitemap plugin – prefer to use it as well.

    Give me a moment – I saw something about the problem with the alternate language yesterday – stylesheet error – need to find it again

    Some possible solutions to 2nd language problem

    http://wordpress.org/support/topic/plugin-wordpress-seo-by-yoast-www-error-805303f4

    There’s also an .htaccess fix that MAY work IF you have an .htaccess security file in the wp-content folder by changing Deny from all rule to:

    Order Allow,Deny
    Deny from all

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

    Removing the XML stylesheet worked.

    /**
    	* Filters XML sitemap stylesheet
    	*/
    	function set_stylesheet(){
    		global $sitepress_settings;
    
    		if(@$sitepress_settings['language_domains'][$this->get_sitemap_language()]){
    			$language_domain = $sitepress_settings['language_domains'][$this->get_sitemap_language()];
    			$wpseo_dirname = str_replace('wp-seo.php', '', WPSEO_BASENAME);
    			//$wpseo_domain_path = $language_domain . '/wp-content/plugins/' . $wpseo_dirname;/*$this->stylesheet = '';*/
    			$this->stylesheet = '';
    		} else {
    			$this->stylesheet = '';
    		}
    		return $this->stylesheet;
    	}

    Did you remove all that from the .18 or the .21 version?

    I kept the 18, sorry. I posted on ther WPML forum also http://wpml.org/forums/topic/yoast-wordpress-seo-sitemap-xsl-error-2/ in order to see if a fix could be developped on their side… You could also post there to “push” things a little bit 🙂

    I am having this issue as well, with .21 and WPML 3.0.1.

    I’ve tried the various fixes presented here:

    http://tech.graphicline.co.za/wordpress-seo-sitemap-shows-home-page/#fix2

    But nothing has worked so far.

    Thanks,
    Rich

    Has anyone tried the latest version – 1.4.22? Yoast says the sitemap code was reverted to fix this issue

    I’ve just tried it – with success. I also reverted my version of the wpseo-sitemaps-filter.php file to have the stylesheet back.

Viewing 14 replies - 16 through 29 (of 29 total)
  • The topic ‘Google WMT rejects sitemap_index.xml’ is closed to new replies.