I have enabled the disqus module but the comments are not showing up. I have tried putting it in the content and have also tried as a block. I have also tried multiple themes. It doesn't show up.

The shortcode is also just the name, and have confirmed it is correct.

Does anyone know what the issue could be.

Thanks

Comments

Enable the "Testing"/"Developer" checkbox, and make sure the permissions are checked?

Tried both. Doesn't fix it. Very frustrating.

You have the right node type checked? What theme are you using? Do the other blocks work? If you setup a fresh Drupal install, and run through the steps the run into this bug, then it'll be easy for me to debug. As right now, it's kind of hard to help you out.

I appreciate your help. Yes I have checked all of the nodes, and have gone through the process of disabling all of the non core modules. Its seems to be half recognized as there is a check-box to display disqus comments on the node, and in teaser view there is a hyper link that says comments that links to #disqus_thread. The comments just done appear.

I was having the exact same issue with OpenPublish, though. If you go into the Disqus module look at your shortcode and see if there is a space after it. I removed the space and everything works!

I seem to be having the same problem on the latest D7.

  1. Downloaded/enabled Disqus module
  2. Disabled permissions for regular comments
  3. Made sure comments were closed on nodes, made sure Disqus was enabled for those nodes
  4. Added Disqus block to Content
  5. Cleared site/browser cache
  6. Checked for a white space in sites/all/modules/disqus/disqus.module
  7. Checked Disqus API key to make sure there was no space after it

My issue was solved. It was a javascript issue in my theme.

Did all the same in version 6 .... nothing works. :(

I have a custom theme and the issue has been solved when I added the right code. You can check it if you have the Devel module. I just added:

<?php
print render($content['disqus']);
?>

Where did you add this code? Page.tpl.php?

I would like to know the same thing! Where do I put the code?

You have to put the code on the node template (node.tpl.php), not the page template.

thanks for the quick reply, I have tried to put it there but it's still not showing up. Do I put it on top or bottom or inline somewhere?

when I put the code in I get this

Fatal error: Call to undefined function render() in /home/me/public_html/sites/all/themes/.........

any idea what the issue is?

This is Drupal 7. Drupal 6 would be similar, but probably not have the render() function. Mind trying this to find out where 'disqus' is?

<?php
drupal_set_message
('<pre>' . print_r($content, TRUE) . '</pre>');
?>

StatusFileSize
new103.99 KB

disregard -----See #17

Ok! I got it working everywhere except for my Articles! Which is where I wanted it most. The box is checked but no disqus is showing up. Getting closer! Any idea?

Added: Also my articles seems to have it's own node name node-cckarticles.tpl.php

Maybe I have to add something in there to show the disqus???

Works fine for me (Drupal 6)and followed below steps.

Step1: Go to www.yoursite.com/admin/settings/disqus

Step2: Under "Visibility" Location should be set as "Injected Variable"

Step3: And then go to node.tpl.php or node-custom.tpl.php of your theme and paste the following code at your desired location

<?php
if (!empty($node -> disqus_comments)) :
?>

<?php
print $node -> disqus_comments;
?>

<?php
endif;
?>

Step4: That's it. Done.

@crazyguru - thanks dude - worked a treat ;-)

StatusFileSize
new211.29 KB

Drupal 7.12
Disqus 7.x-1.9

Nothing displaying. Code shows up in Firebug but, does not render on pages. Everything is set right and I tried everything above. Got any new ideas?

Thanks,
Ralph

@Inifnitee Hope this helps you

Step1: Create Disqus account and add your site with correct site url, name and enter prefered shotname
Step2: Upload Drupal Disqus module & enable it.
Step3: Go to www.yoursite.com/admin/config/services/disqus and enter shortname you have entered in Disqus site
Step4: Under "Visibility" choose prefered Node Type as well as under "Location" choose Content and hit "Save Configuration"
Step5: Go to www.yoursite.com/admin/people/permissions/list
Step6: Enable access to "View Disqus comments" for anonymous/authenticate users.
Step7: That's it. Done.

In case if you are using custome theme/node.tpl.php, you may have to enter following code.

<?php
print render($content['disqus']);
?>

If you have already tried all the above, try clearing your site cache.

Thanks for all the pointers everyone, but I'm afraid something's still wrong. I've tried every suggestion (included the last on adding render to my theme) and still disqus is only showing in the code, not the node. None of the default themes (bartik, garland) show disqus either, so it doesn't seem to be a theme issue.

I'm not sure why this would affect things, but I'm moving my website to drupal from a different CMS (one comment registered through Disqus with a previous blog post). I've moved the content into Drupal with the same names, but nothing's showing up.

August 5:
Here's what's showing up in my code:

div id="disqus_thread">
<noscript><p><a href="[url]">View the discussion thread.</a></p></noscript>
</div>

Is this a javascript error relating to my theme (custom subtheme of OM HTML 5)?

I'm desperate now: this is a major issue if I can't get disqus working with drupal. I will personally pay anyone who can help me get this working.

StatusFileSize
new136.63 KB
new80.2 KB

Weird: as I experiment, Opera is the only browser that shows Disqus trying to load. When I look in Chrome or Firefox, all I can see is this code:

<div id="disqus_thread">
  <noscript>
    "<p><a href="http://[sitename].disqus.com/url=http%3A%2F%F[sitename].loc%@F[nodeurl]">View the Discussion thread.</a></p>"
  </noscript>
</div>

I've attached screenshots of the same node viewed in opera and chrome. This is a clean installation of Drupal 7.15 with the default Bartik theme enabled, and no modules inabled outside the default core and the Disqus module. Only a few nodes were enabled to test Disqus.

FWIW - I was having the same problem but realized that it was due to an aggressive cache setting in Cloudflare. If you're using Cloudflare, or something similar, you may want to adjust your settings to see if that solves the problem. Worked for me.

Thanks for the pointer, but I'm afraid that's not it. Glad you got your comments up and running.

I had the same problem with a non-visible disqus module, but I decided to skip the module from my website. A couple of days later I had the same problem with another module (twitter_profile_widget), so I looked up again.

I solved my non-visible modules with a simple solution: I picked up all js references in my html and putted that at the top of the page, in the head-section.

Maybe you can do something with.

Thanks for all the pointers everyone, my probleme is :

i can see Disqus: Combination Widget but the Disqus comments Blocks isn't visible .
Have you any ideas about it ?

StatusFileSize
new94.53 KB

thank you , verry nice. i like it. I think it’s generated for one person only, fix it with this one friv2.org

Category:support» bug
Status:Active» Needs review
StatusFileSize
new4.25 KB

Please do not review this patch.

I moved it over to #969202: Respect protocol of the page request

Version:7.x-1.8» 7.x-1.x-dev
Category:support» bug
Status:Active» Needs review

SSL/HTTPS support is being discussed in #969202: Respect protocol of the page request; seems like that's not related to what most of the people in this issue have been having trouble with.

Status:Needs review» Active

OK, I will rescind my patch from this thread and post it there.

The symptoms I had were the same though, so some folks will probably get some mileage from fixing ssl support.

Category:bug» support

Category:bug» support
Status:Needs review» Active

FWW, I just went through several hours of troubleshooting why Disqus would not appear on my D7 site. Typically, if I was lucky, Disqus would load one time out of 20 and that would only happen if I did a hard page refresh. I was pretty sure it was a caching issue so I had a long road ahead methodically disabling all the cache parts of my site and testing one by one. At times, I could even see the Disqus spinner going for a while to try to load the comment box. However, I did not see any specific JS errors so that was a start anyway.

My steps were that I tried most suggestions on this page first about Drupal [original] comment permissions, rendering the code directly, yada yada. None of that worked.

I then focused on caching but for the time being, I disabled the core Drupal comments module, I figured, I'd want to migrate my old comments over to disqus anyway eventually and I'd do that on my local dev, no need to risk anything like that on live. Here's my setup I have for caching and related modules.

  1. liteSpeed web server which is super fast and does caching at a very high level. My worst fear would be that it was an issue with litespeed
  2. Entity cache module enabled
  3. Filecache enabled
  4. All core drupal caching and CSS/JS aggregation enabled with gzip compression.
  5. JCaption - this does a lot of javascript injection so I thought I would test this one too

I went through a methodical process of disabling the above caching mechanisms one by one except for liteSpeed, I just kept that as is. I also tried various combinations. Finally after doing a little code update after a Git pull and a cache clear, I got a WSOD relating to Entity Cache. It seems like Entity Cache was keeping some old data in its tables that Drupal didn't like. I managed to get back to the UI and uninstall the data for that module. Volia, my Disqus finally appeared on my blog pages. I then went through the process of reenabling all other caching including Filecache but not Entity Cache. Everything was still working so I'm now pretty sure Entity cache was the culprit jCaption is the culprit. If I enabled that module, clear cache, Disqus does not load, I can reproduce this every time. I can probably be sure that this was not an issue with the Disqus module and my comment box is now appearing on every page load on cached pages.

Wow. I have found my true problem. Thank yamzalal, your way is very good. My problem was resolved. I often fun on minecraftgames.co

I was having this problem as well, and it's worth noting that the site was, by design, redirecting to SSL for the entire site via .htaccess

Believing the problem to lie in SSL as mentioned #969202: Respect protocol of the page request , I disabled the redirect, and the comments appeared in http:.

There is a change to discus.js mentioned in the other thread that describes changing 'http://' to '//' on two lines in discus.js for a url parameter. After doing so, and cc all, and dis/reenable JS aggregate, my woes are fixed. Thanks all!

FYI: those two lines are
discus.js:54          url: 'http://' + disqus_shortname + '.disqus.com/embed.js',
to
discus.js:54          url: '//' + disqus_shortname + '.disqus.com/embed.js',
and
discus.js:66          url: 'http://' + disqus_shortname + '.disqus.com/count.js',
to
discus.js:66          url: '//' + disqus_shortname + '.disqus.com/count.js',

@MrsWho -

Did you ever figure out your issue?

I'm have the exact same issue as you by seeing this in the source where disqus comments are supposed to load:

div id="disqus_thread">
<noscript><p><a href="[url]">View the discussion thread.</a></p></noscript>
</div>

Everything works fine for authenticated users, Disqus comments load in the page content where I have included this in the node template files:

<?php
print render($content['disqus']);
?>

I have verified that the "View Disqus comments" permission is checked for Anonymous and Authenticated users. I have cleared my cache. I have also added the Disqus blocks "Recent Comments", "Popular Threads", "Top Commenters", and "Combination Widget" to the bottom content region and they DO display for Anonymous users, but still nothing for the regular non-block comments.

Here's how I got everything working after installing Disqus:

1) I initially had the "Location" as "Block". But no matter what I did, the block wouldn't show. To make matters worse, my website didn't even pass "Verify Installation" at the Disqus website.

2) After changing the "Location" to "Content Area", everything just worked. And that's when it passed "Verify Installation" at the Disqus website too.

That's it. I hope this helps someone.

Update / correction to #46:

1) When I initially had the "Location" as "Block", I'm pretty sure I didn't check the "Node Types" and instead did that in the block itself under "Content types" (which of course normally works). I believe this was the source of the problem (for me at least), as apparently Disqus ignores whatever settings I choose under the block. After checking the applicable "Node Types", everything worked perfectly. What's weird is that when I changed the "Location" from "Content Area" to "Block", it even worked with Display Suite without any hiccups whatsoever (https://drupal.org/node/863122, #10).

2) After changing the "Location" from "Content Area" to "Block", "Verify Installation" at the Disqus website always passes, even if I uncheck everything under "Node Types".

I consider myself an experienced site builder and have seen weird stuff before where a module all of a sudden starts working after following some specific steps, so I don't think what I went through is too unusual. Everything eventually started working perfectly, and that's what counts. :)