Howdy!
We have not yet been able to identify the cause. I believe this is a routing issue, a bug at Google, or a synchronization issue with the report. If Google has yet to process the sitemap or can’t process it for whatever reason, they emit a generic, unhelpful error.
We often get inquiries about it, and many deduce there’s a technical issue with TSF’s sitemap, but which usually resolves without any intervention.
But sometimes, it is because of a technical issue with NGINX’s configuration, where it sends the wrong headers to Google when encountering the .xml
path. See https://tsf.fyi/kb/sitemap#tsf-sitemap-nginx.
Submitting the sitemap as sitemap.xmla
instead of sitemap.xml
often resolves this issue, since .xmla
often isn’t recognized as a file extension. The SEO Framework responds with sitemap data for any URL starting with /sitemap.xml
or /sitemap_index.xml
or /sitemap.xsl
(stylesheet) to support any odd permalink configurations and translation plugins.
NGINX is often configured to cache .css
, .js
, .xml
, and other file extensions. When the file isn’t located, it sends an error instead of processing the request via PHP. This is efficient but not compatible with WordPress’s dynamic nature. Even when it falls back to allow processing by WordPress, some faulty BOM or HTTP headers might linger, preventing the expectations Google has for the sitemap’s output.
Proxy routing can also affect this issue. For example, if you serve your site via Cloudflare, they can specify rules based on who is targeting your website. Some of these rules can interfere with the output, but you’d have to look into the response Google received to verify this.
Still, you could try disabling the X-Robots-Tag
for the sitemap using this filter:
add_filter(
'the_seo_framework_set_noindex_header',
fn( $noindex ) => tsf()->query()->is_sitemap() ? false : $noindex,
);
(Where do I place filters?)
However, I don’t believe this filter will resolve the issue.
If you have any further questions about the sitemap, please open a new topic and add the URL of the sitemap to the “Link to the page you need help with” field: https://tsf.fyi/support/tsf/new-topic.
-
This reply was modified 6 months, 2 weeks ago by
Sybre Waaijer.
-
This reply was modified 6 months, 2 weeks ago by
Dion Hulse.