Missing or invalid date in XML Sitemap

Google Search Console may flag your sitemap for a missing or invalid date in your sitemap. In this article, we’ll explain how you can fix this error.

How to fix missing date on the sitemap index

An empty or missing date in the sitemap index typically means the individual sitemap is not available. Opening the individual sitemap with the missing date will display a 404 error. Please customize the sitemap and remove post types or taxonomies you dont’ use on your site.

How to fix missing date on individual sitemaps (excluding the video sitemap)

An empty or missing date on an individual sitemap typically indicates an invalid timestamp in your database. Adding, updating and removing a minor change will refresh the date.

  1. Open the post with the invalid date in the editor

  2. Edit the content

  3. Update the post to save changes

  4. Remove the minor change you made in step 2

  5. Update the post to save changes

  6. Clear your cache

How to fix missing date on the video sitemap

An invalid date in the sitemap typically indicates a miscommunication between our plugin and the WordPress database. Removing, updating and re-adding the video will refresh the date.

  1. Open the post displaying the invalid date in the editor
  2. Remove the video
  3. Update the post to save changes
  4. Re-add the video
  5. Update the post to save changes
  6. Clear your cache

Did this article answer your question?

Thanks for your feedback!

Related articles

Get free SEO tips!