Page-sitemap.xml error
-
Searched this forum and many people have complained about the same issue…
– all other XML files are fine and work correctly (author-sitemap.xml etc etc)
– only page-sitemap.xml is not working
In my case (as with a few others) there is HTML code at the top of the source code prior to the <?xml> tag which of course causes the page NOT to be rendered as XML. Specifically…
<input type=”hidden” id=”_wpnonce” name=”_wpnonce” value=”b0717a8623″ /><input type=”hidden” name=”_wp_http_referer” value=”/page-sitemap.xml” /><input type=”hidden” name=”_wp_http_referer” value=”/page-sitemap.xml” /><?xml version=”1.0″ encoding=”UTF-8″?>
Some other solutions suggest a plugin conflict however the injected code in this case are form values that specifically reference page-sitemap.xml. This suggests that the code comes from the Yoast SEO plugin.
Since this issue with page-sitemap.xml seems to be fairly common, any chance of a updated fix for the plugin?
Otherwise any other suggestions to avoid the injected html in the header of this xml?The page I need help with: [log in to see the link]
- The topic ‘Page-sitemap.xml error’ is closed to new replies.