Elxis CMS Forum

Extensions => Components => Topic started by: chongbing on September 12, 2015, 14:13:10

Title: Sitemap or Sitemap index file doesn't properly declare the namespace
Post by: chongbing on September 12, 2015, 14:13:10
Hi datahell,

It seems has an issue with sitemap, the screenshot as below. Do you know how to fix it ? Thanks

Sitemap: /sitemap/sitemap.xml
(http://easyapps.biz/temp/sitemap-issue.png)

url:http://easyapps.biz/
Title: Re: Sitemap or Sitemap index file doesn't properly declare the namespace
Post by: datahell on September 13, 2015, 19:51:02
The validator shows that the sitemap is fine...

You can try the following.
open this file :
components/com_sitemap/views/generator.html.php
Change line 32 from this:
$buffer .= '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/TR/xhtml11/xhtml11_schema.html">'."\n";

To this:
$buffer .= '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">'."\n";
Title: Re: Sitemap or Sitemap index file doesn't properly declare the namespace
Post by: chongbing on September 13, 2015, 21:02:43
Hi datahell,

It seems work now. I'll do more test.

Thanks a lot.