Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
in Plugins by
edited by

I've installed XML sitemap and it used to be working pretty fine

Now in the XML sitemap setting section in the plugin tab, I activate "Include question pages", I get this error in mysite/sitemap.xml:

This page contains the following errors:

error on line 8174 at column 8: Extra content at the end of the document

Below is a rendering of the page up to the first error.

* the number on lineXXX changes every now and then.

Another point is that, exact URL comes in the XML site instead of XML format as: 






And When I check sitemap in sitemap checker i get this error

  1. Premature end of data in tag urlset line 2 on line 8583

If I deactivate the "Include question pages" in the XML Sitemap setting, everything goes fine. but questions wouldn't be submitted to sitemap.

in the XML view-source  everything is fine Any idea how this problem can be fixed ?

Around 6000 questions are on my Q2A site

Q2A version: 1.7.4
Do you have a link to the sitemap? Or a copy of the exact XML that is not working?

Please log in or register to answer this question.