Support » Fixing WordPress » Disqus causing sitemap_index.xml XML Parsing Error

  • Resolved jamminjames

    (@jamminjames)


    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.

Viewing 1 replies (of 1 total)
  • jamminjames

    (@jamminjames)

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

Viewing 1 replies (of 1 total)
  • The topic ‘Disqus causing sitemap_index.xml XML Parsing Error’ is closed to new replies.