Sitemap not generating correctly

All about webserver configurations, PHP and databases.

Moderator: Thorsten

Post Reply
fzero
Posts: 2
Joined: Sat Jul 04, 2020 1:30 am

Sitemap not generating correctly

Post by fzero »

Hi everyone,

I've just installed phpmyfaq, created a couple of pages and I've just realized that the sitemap aren't generating correctly.
Google Search Console just tells me "Invalid Date Found. Correct the date or the format before resend."


The output of the sitemap.xml.php is:

<urlset xmlns="http://www.google.com/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.9 http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">
<url>
<loc>http://MYWEBSITE.com.br/</loc>
<lastmod>2020-07-03T21:28:36-0300</lastmod>
</url>
<url>
<loc>http://MYWEBSITE.com.br/index.php?actio ... pt-br</loc>
<lastmod>1969-12-31T21:00:00-0300</lastmod>
</url>
</urlset>

Does anyone know what is up with this?

Thanks in advance!
Thorsten
Posts: 15559
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Sitemap not generating correctly

Post by Thorsten »

Hi,

which version do you use?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
fzero
Posts: 2
Joined: Sat Jul 04, 2020 1:30 am

Re: Sitemap not generating correctly

Post by fzero »

Hi!

phpMyFaq - 3.0.3
Apache 2.4.38
PHP 7.3.14.1

Running on Debian 10
Thorsten
Posts: 15559
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Sitemap not generating correctly

Post by Thorsten »

Hi,

you're right, I'll fix it for 3.0.4

Thanks for the hint.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply