Fullscreen
Loading...
 
Skip to main content

Date of article in the sitemap article xml are wrong

Status
Closed
Subject
Date of article in the sitemap article xml are wrong
Version
23.x
Category
  • Error
  • Regression
Feature
Article
Search engine optimization (SEO)
Resolution status
Confirmed
Submitted by
Bernard Sfez / Tiki Specialist
Keep informed
Adrien
Lastmod by
Eutyche ODIMBA
Rating
(0)
Related-to
Description

At google search console (https://search.google.com/search-console/sitemapsQuestion) my sitemap (using https://bernardsfez.com/storage/public/sitemap-index.xmlQuestion) is submitted via the console.php command (using the Tiki scheduler).

Image

If I click on the corresponding row it open a detailed table where I see that Google fetched 2 XML and that fetching my articles XML it produce 1 error.

Image

When I click on it to see the details I see error about the lasted date.

Image

And when I look at https://bernardsfez.com/storage/public/articles.xmlQuestion the dates are all wrong.
It seems to prevent Google to index my articles.
When I index one by one articles using https://search.google.com/search-console/inspectQuestion (when a page is not indexed I have an option to index it) It work just fine with the right date.

I also checked at tiki.org and I see the same errors: https://tiki.org/storage/public/articles.xmlQuestion

XML where we can see the date errors

<!-- Generated by https://git.io/phpseoQuestion -->
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://example.com/%25D7%25AA%25D7%2595%25D7%259B%25D7%25A0%25D7%2594-%25D7%259E%25D7%25A7%25D7%2595%25D7%2595%25D7%259F-%25D7%259C%25D7%25A0%25D7%2599%25D7%2594%25D7%2595%25D7%259C-%25D7%25A6%25D7%2594%25D7%25A8%25D7%2595%25D7%259F-%25D7%2597%25D7%2595%25D7%2592%25D7%2599%25D7%259D-%25D7%2595%25D7%2592%25D7%25A0%25D7%2599-%25D7%2599%25D7%259C%25D7%2593%25D7%2599%25D7%259D</loc>

<priority>0.6</priority>

<changefreq>weekly</changefreq>
<lastmod>6773-12-06T16:34:41+02:00</lastmod>
</url>
<url>
...
<lastmod>1970-01-01T02:00:00+02:00</lastmod>
</url>
<url>
...
<lastmod>1970-01-01T02:00:00+02:00</lastmod>
</url>
<url>
...
<lastmod>5887-12-06T16:05:59+02:00</lastmod>
</url>
<url>
...
<lastmod>1970-01-01T02:00:00+02:00</lastmod>
</url>
<url>

Solution
Fix the date conversion in the article XML file generated by Tiki at storage/public/articles.xml
Importance
7
Easy to solve?
7
Priority
49
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
7971
Created
Monday 06 December, 2021 19:17:47 UTC
by Bernard Sfez / Tiki Specialist
LastModif
Wednesday 05 October, 2022 06:49:29 UTC


Show PHP error messages