• Resolved him666

    (@him666)


    All my sitemap are ok but the most important sitemap: sitemap-posttype-post.2018.xml give me weird error for a few days now:
    This page contains the following errors: error on line 2 at column 1: Extra content at the end of the document Below is a rendering of the page up to the first error.

    • This topic was modified 6 years, 4 months ago by him666.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi, I do not see that error but what I do see is that Cloudflare is passing on the wrong mime type for this kind of document. The main sitemap index gets the correct content type header content-type: text/xml; charset="UTF-8" but all others get a content-type: application/rss+xml; charset="UTF-8" header. This is not correct and might depend on your settings at Cloudflare.

    The only sitemap that shows me an error is your category sitemap. It’s an “out of memory” error. You can try reducing the number of taxonomy terms on your Settings > XML Sitemap admin page under the Taxonomies tab.

    Thread Starter him666

    (@him666)

    yes its back to normal. after enable /disable several time

    Thread Starter him666

    (@him666)

    do you know which best clouflare setup i should use?

    I really have no idea. Searched on Google but only found directions on how to make Cloudflare not cache certain URLs. Did you exclude the main sitemap.xml from being cached for example? If so, you might be able to prevent the others from being cached as well by adding a wild card to the exclude rule like sitemap*.xml

    It’s best to not serve cached sitemaps to spiders anyway otherwise they might get stale modification date info…

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘bizarre error for 3 days now’ is closed to new replies.