Forum
Welcome, Guest
Please Login to access forum.
Re:Google Sitemap Error: Your Sitemap or Sitemap index file declares the namespace incorrectly. (1 viewing) 
Go to bottom
TOPIC: Re:Google Sitemap Error: Your Sitemap or Sitemap index file declares the namespace incorrectly.
#3025
LeCura GmbH
Fresh Boarder
Posts: 5
User Offline
[SOLVED]Google Sitemap Error: Your Sitemap or Sitemap index file declares the namespace incorrectly. Karma: 0  
Hallo,

Google gives me when submitting a Sitemap constantly this error and I do not know how I can correct this:

"The namespace is not properly declared in the sitemap or the Sitemap index."

"Your Sitemap or Sitemap index file declares the namespace incorrectly.
Expected: http://www.sitemaps.org/schemas/sitemap/0.9
found: https://www.sitemaps.org/schemas/sitemap/0.9
Tag: urlset"

Our side runs under https: // and here is the link to the xml-Sitemap: https://www.lecura.de/index.php?option=com_jmap&view=sitemap&format=xml&lang=de

What settings do I need to fix the error?
Thank you already for Helping answers.
 
Logged Logged  
  The administrator has disabled public write access.
#3026
John Dagelmore
Admin
Posts: 3722
User Offline
Re:Google Sitemap Error: Your Sitemap or Sitemap index file declares the namespace incorrectly. Karma: 79  
Hello,

i'm sure how your Joomla website is running and is configured, but the problem looks like you have a plugin installed to make the website running on https and it replaces everything with https protocol.

Indeed the correct link in the sitemap XML document:
Expected: xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"

is replaced with the https version:
Found incorrect: xmlns="https://www.sitemaps.org/schemas/sitemap/0.9"

You need to identify the plugin that replaces everything with https and possible apply an exception for XML documents or the sitemap component to not alter the XML document.

I just answered you to the language pack question by email, you can answer me by email if needed.

Greetings,
John
 
Logged Logged  
  The administrator has disabled public write access.
#3027
LeCura GmbH
Fresh Boarder
Posts: 5
User Offline
Re:Google Sitemap Error: Your Sitemap or Sitemap index file declares the namespace incorrectly. Karma: 0  
I have put only into joomla-configuration/server of the side the setting with "SSL forcing" on whole side. can it be this?
 
Logged Logged  
  The administrator has disabled public write access.
#3028
John Dagelmore
Admin
Posts: 3722
User Offline
Re:Google Sitemap Error: Your Sitemap or Sitemap index file declares the namespace incorrectly. Karma: 79  
As far as i know that's not the problem, the Joomla setting 'Force SSL' does only a redirect from http to https URLs. However you can try disabling it and open the sitemap XML again.
 
Logged Logged  
  The administrator has disabled public write access.
#3029
LeCura GmbH
Fresh Boarder
Posts: 5
User Offline
Re:Google Sitemap Error: Your Sitemap or Sitemap index file declares the namespace incorrectly. Karma: 0  
the Joomla setting 'Force SSL' unfortunately really does not seem to be the problem. I have made the setting disabled, deleted cache and Google sitemap test brings the same error.
Can they in the enclosed list of activated Erweitungen see an indication where they would be looking? (As I said you overwrite with https)

Great thanks
 
Logged Logged  
  The administrator has disabled public write access.
#3030
John Dagelmore
Admin
Posts: 3722
User Offline
Re:Google Sitemap Error: Your Sitemap or Sitemap index file declares the namespace incorrectly. Karma: 79  
Yes i was right. Joomla natively has nothing doing this kind of https force, i think that there is a third party plugin of type 'System' installed that do a brute replacing of every links that Joomla outputs with 'https' prefix.

You can easily test it opening the XML sitemap document, the first line must have everything in 'http' and not 'https' as visible below.

As a final though, there could be also a system on the server doing this. But in this case you should contact the hosting provider, the problem would be outside Joomla.

 
Logged Logged  
  The administrator has disabled public write access.
Go to top