Loading...
 
Skip to main content

Google reject Tiki generated sitemap

Status
Closed
Subject
Google reject Tiki generated sitemap
Version
23.x
Category
  • Regression
  • Easy for Newbie Dev
Feature
Search engine optimization (SEO)
Resolution status
Fixed or Solved
Submitted by
Bernard Sfez / Tiki Specialist
Lastmod by
Bernard Sfez / Tiki Specialist
Rating
(0)
Related-to
Description

Google complain (now?) that there is an issue with my sitemap /tiki-sitemap.php?file=sitemap-index.xml

======

Sitemap can be read, but has errors
Unsupported file format
1 instance

Your Sitemap does not appear to be in a supported format. Please ensure it meets our Sitemap guidelines and resubmit.

======

The file look like this : cat /home/domain/public_html/storage/public/sitemap-index.xml
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated by https://git.io/phpseoQuestion -->
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9”>
<sitemap><loc>https://www.domain.com/storage/public/articles.xml</loc><lastmod>2021-09-12T07:31:23+00:00</lastmod></sitemap>
<sitemap><loc>https://www.domain.com/storage/public/blogs.xml</loc><lastmod>2021-09-12T07:31:23+00:00</lastmod></sitemap>
<sitemap><loc>https://www.domain.com/storage/public/blogposts.xml</loc><lastmod>2021-09-12T07:31:23+00:00</lastmod></sitemap>
<sitemap><loc>https://www.domain.com/storage/public/sitemap.xml</loc><lastmod>2021-09-12T07:31:23+00:00</lastmod></sitemap>
</sitemapindex>

This file shows error with tools like: https://www.xml-sitemaps.comQuestion

XML Validation Results

error Problem detected, please check details below
Sitemap URL http://www.domain.com/tiki-sitemap.php?file=sitemap-index.xml
Character Set
Sitemap is valid No
Warnings -
Errors
Incorrect http header content-type: "text/html; charset=iso-8859-1" (expected: "application/xml")

(If I check https://www.domain.com/sitemap.xmlQuestion it says it is ok)

Something turned wrong at some point OR Google changed the way it works ?

PS : As temporary mesure on my site I set in Google the sitemap to look for https://www.domain.com/sitemap.xmlQuestion

===

Update 2021-12-06 after last Tiki23 upgrade:

When I look at the xml produced there : https://example.com/tiki-sitemap.php?file=sitemap-index.xmlQuestion

I see this and it is rejected of course.

Copy to clipboard
https://example.com/articles.xml2021-12-06T20:58:02+02:00https://example.com/sitemap.xml2021-12-06T20:58:02+02:00


If I try to split the url and submit those link with date or without is is still rejected.

At some point I see where are my sitemaps: https://example.com/storage/public/sitemap-index.xmlQuestion

<!-- Generated by https://git.io/phpseoQuestion -->
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>https://example.com/storage/public/articles.xml</loc>
<lastmod>2021-12-06T20:58:02+02:00</lastmod>
</sitemap>
<sitemap>
<loc>https://example.com/storage/public/sitemap.xml</loc>
<lastmod>2021-12-06T20:58:02+02:00</lastmod>
</sitemap>
</sitemapindex>

This is accepted but Google find 0 url...
So I have to submit separately:
https://example.com/storage/public/articles.xmlQuestion
https://example.com/storage/public/sitemap.xmlQuestion

Solution
Fixed on Tiki23 - 2322c5e8
Importance
7
Easy to solve?
5
Priority
35
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
7825
Created
Monday 13 September, 2021 05:31:55 UTC
by Bernard Sfez / Tiki Specialist
LastModif
Tuesday 07 December, 2021 05:57:22 UTC


Show PHP error messages