WordPress.org

Forums

[resolved] Disqus causing sitemap_index.xml XML Parsing Error (2 posts)

  1. jamminjames
    Member
    Posted 2 years ago #

    The Disqus comment system seems to be causing an XML Parsing Error with the sitemap_index.xml generated by WordPress SEO. The error message says "XML Parsing Error: junk after document element" and the line in question is:
    <?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="http://www.humortimes.com/wp-content/plugins/wordpress-seo/css/xml-sitemap-xsl.php"?>
    ... which is the first line generated by WordPress SEO for the sitemap page, IF Disqus is deactivated -- in which case, I get no error.

    But when Disqus is activated, the first lines are for the Disqus script (<script type="text/javascript">), which pushes the <?xml line down, and causes the error.

    Is there a way to prevent the Disqus script from running on that page? There certainly is no use for it there.

    Thanks, any help would be appreciated.

  2. jamminjames
    Member
    Posted 2 years ago #

    Ok, selecting the 'load in footer' option seems to take care of this. Hopefully, there are no bad side-effects from doing that.

Topic Closed

This topic has been closed to new replies.

About this Topic