WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
[resolved] Conflict with Disqus comments plugin (8 posts)

  1. wedideas
    Member
    Posted 2 years ago #

    Hello,

    we'd love to use disqus on our website, but it's conflicting with our WordPress SEO plugin - which is a core part of our site.

    When using the disqus plugin everything works fine except for an error we get when checking our sitemaps. Obviously having sitemaps working correctly is an instrumental part of our site so we'd like to get this sorted if we can.

    When checking the sitemaps we keep getting the following error…

    Warning: Cannot modify header information - headers already sent by (output started at /wp-content/plugins/disqus-comment-system/disqus.php:1194) in /wp-content/plugins/wordpress-seo/inc/class-sitemaps.php on line 517

    Warning: Cannot modify header information - headers already sent by (output started at /wp-content/plugins/disqus-comment-system/disqus.php:1194) in /wp-content/plugins/wordpress-seo/inc/class-sitemaps.php on line 519

    I have narrowed the problem down to the function called 'dsq_output_loop_comment_js'. If I remove all code between the brackets the sitemaps work fine.

    Has anyone else had this problem?

    Thanks a lot,

    James

    http://wordpress.org/extend/plugins/wordpress-seo/

  2. wedideas
    Member
    Posted 2 years ago #

    I thought I'd let people know this has been sorted by outputting the javascript in the Disqus plugin to the bottom of the page.

    There is an option to do this in the Disqus plugin settings which wasn't worded very well and wasn't that obvious, well to me anyway ;-)

  3. Miz.Michele
    Member
    Posted 2 years ago #

    I just installed Disqus (still waiting for import to complete) where did you find that option? TX

  4. Miz.Michele
    Member
    Posted 2 years ago #

    I found it - thanks!

  5. Jijo Jose
    Member
    Posted 1 year ago #

    same problem here. can you please explain how you solved it?

  6. Jijo Jose
    Member
    Posted 1 year ago #

    nvm, found it. thank you.

  7. jazbek
    Member
    Posted 1 year ago #

    You guys who said you found it -- both wrote back and said you found it without saying where?

  8. jazbek
    Member
    Posted 1 year ago #

    I have also just found it.

    Disqus > Plugin Settings > Patches > Template Conflicts > Output JavaScript in footer (check this box)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic