Support » Fixing WordPress » [Plugin: DISQUS Comment System] Disqus breaking RSS validation

  • There is a problem with disqus and rss feed validation.
    Caused by javacsript code….
    XML parsing error: <unknown>:47:3: mismatched tag

    #  <script type="text/javascript">
    # // <![CDATA[
    # (function() {
    # var links = document.getElementsByTagName('a');
    # var query = '&';
    # for(var i = 0; i < links.length; i++) {
    # if(links[i].href.indexOf('#disqus_thread') >= 0) {
    # links[i].innerHTML = 'View Comments';
    # query += 'wpid' + i + '=' + encodeURIComponent(links[i].getAttribute('wpid')) + '&';
    # }
    # }
    # document.write('<script charset="utf-8" type="text/javascript" src="http://disqus.com/forums/smemon/get_num_replies_from_wpid.js?v=2.0' + query + '"><' + '/script>');
    # })();
    # //]]>
    # </script>
Viewing 15 replies - 1 through 15 (of 16 total)
  • hmmm… strange… deactivating and reactivating the plugin fixed the problem for now!

    oh no wait, back to breaking again…

    still the error;

    ` line 47, column 3: XML parsing error: <unknown>:47:3: mismatched tag [help]

    </script>
    ^`

    So it’s a problem with the script tag… any ideas on how to get rid of this? If i disable the disqus plugin there is no problem…

    It’s breaking my feed as well. I’m really interested in a fix, since I’ve had to disable Disqus until it’s resolved.

    same result for me, at least it’s on a development version of the blog.

    hi guys, found a solution that so far has had no adverse effects for me…

    just delete the closing script tag from line 47 – from what i gather it’s not needed…

    </script>

    You’ll find it in disqus-comment-system/disqus.php if you go in to your plugin editor in wordpress through the admin panel. About 75% of the way down the page…

    Deleting that </script> tag did not do the trick for me. It just caused a different feed validation issue.

    What’s odd is that it only occurs on one of my blogs. Must be something flaky with the theme. This is really bad though. My feeds are not working now due to this issue.

    I’m unable to use Disqus and it’s really disappointing. Is anyone working on a fix? Does anyone know how to isolate the theme interaction issue?

    I’m having the same issue on one blog but not another. Very strange – need a fix ASAP.. driving me nuts

    I’m also having the same error. I have two blogs running the same theme. One has major feed issues with Disqus, the other apparently doesn’t.

    I have the same problem too! Fix??

    I think Disqus needs to write a fix for this, but for now you can simply delete that entire script block from the plugin and your feed will validate again.

    The lines to remove are 278-292 in version 2.11.4349 of the plugin.

    Thanks for the temporary solution, but you are right – Disqus needs to write a fix!

    We’re still looking into this but there is a temp workaround solution here: http://wiki.disqus.net/WordPressHelp#CommentCountonPermalinks.23

    If you’re still having problems with this, can you send your list of plugins and what theme you’re using? It would help in locating the error.

    Giannii
    DISQUS
    Community Manager
    help@disqus.com
    twitter.com/disqus

    Not sure if this will help you guys, but it fixed mine.

    In your DISQUS settings from WP-ADMIN, click “ADVANCED OPTIONS” up top just under the logo next go “MANAGE”

    Check the “Comment Count” [ Check this if you have a problem with comment counts not showing on permalinks (more info).] if unchecked.

    If it is already checked this probably won’t work – hope this helps a few of you out there with this frustrating issue!

    Gabe
    NewHustle.net

    Worked for me. Thanks.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘[Plugin: DISQUS Comment System] Disqus breaking RSS validation’ is closed to new replies.