WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: DISQUS Comment System] Disqus breaking RSS validation (17 posts)

  1. smemon
    Member
    Posted 4 years ago #

    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>
  2. smemon
    Member
    Posted 4 years ago #

    hmmm... strange... deactivating and reactivating the plugin fixed the problem for now!

  3. smemon
    Member
    Posted 4 years ago #

    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...

  4. traffas
    Member
    Posted 4 years ago #

    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.

  5. GregoryO
    Member
    Posted 4 years ago #

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

  6. smemon
    Member
    Posted 4 years ago #

    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...

  7. mattstratton
    Member
    Posted 4 years ago #

    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.

  8. traffas
    Member
    Posted 4 years ago #

    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?

  9. abrudtkuhl
    Member
    Posted 4 years ago #

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

  10. rmsylte
    Member
    Posted 4 years ago #

    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.

  11. misheff
    Member
    Posted 4 years ago #

    I have the same problem too! Fix??

  12. sant0sk1
    Member
    Posted 4 years ago #

    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.

  13. misheff
    Member
    Posted 4 years ago #

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

  14. giannii
    Member
    Posted 4 years ago #

    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

  15. glombard
    Member
    Posted 4 years ago #

    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

  16. Oscar
    Member
    Posted 4 years ago #

    Worked for me. Thanks.

  17. emeacham
    Member
    Posted 4 years ago #

    @glombard

    Good job mate - putting a check in "comment count" worked for me.

Topic Closed

This topic has been closed to new replies.

About this Topic