Elxis CMS Forum

Extensions => Components => Topic started by: Nuts on October 05, 2016, 15:41:50

Title: Sitemap error in search console
Post by: Nuts on October 05, 2016, 15:41:50
I keep seeing this error in google search console: Your Sitemap or Sitemap index file doesn't properly declare the namespace. Expected: http://www.w3.org/1999/xhtml Found: http://www.w3.org/TR/xhtml11/xhtml11_schema.html,  Parent tag: url, Tag: link...

How do I fix this error ? Thanking in advance for any advice.
Title: Re: Sitemap error in search console
Post by: datahell on October 08, 2016, 16:57:18
Do the following and tell me if the problem is solved:

open this file:
components/com_sitemap/controllers/base.php
go to line 45:
$this->alternate = true;
and comment it:
//$this->alternate = true;

Delete any cached sitemaps (repositoy/cache/) and re-check it.