I have cleared my caches, created new views, uninstalled and reinstalled the Disqus module and am still seeing 0 views when displaying a list of topics. If I hover over the "0 comments" link, it shows a link that takes me to the topic with correct disqus comments.

I'm not sure if this helps, but this is the sql showing from one of the views I created:

SELECT node.nid AS nid,
node.title AS node_title,
node_counter.totalcount AS node_counter_totalcount,
node.nid AS node_nid
FROM node node
LEFT JOIN node_counter node_counter ON node.nid = node_counter.nid
WHERE (node.status <> 0) AND (node.type in ('forum'))
ORDER BY node_nid DESC

It is supposed to display the title, number of views, and number of comments and shows 0 comments for every topic.

I did change the URL at one point and used the migration wizard in Disqus. Why would the comments be linked accurately to the forum topics, yet show 0 comments in a view?

Thanks.

Comments

jsibley’s picture

More information and questions:

If I try the Disqus console and "listthreads", I see the correct number of comments for each node under "posts:".

I have a table called Disqus but it has 0 rows. Is this normal? Is it only a temporary table?
I have more than 100 topics in my forum, although only 25 are shown at a time. Is this an issue (I saw something about a limit of 100 topics as an earlier problem with one of the ways to interface to Disqus)?

I've been trying to understand the module's code, but I'm not a module developer, so I'm not sure where the problem might be. Is there somewhere where it might be an issue for the comments count view field that the URL has changed but not for the view blocks, which work well?

Also, how should one handle test and production systems with Disqus? They both have the same shortname, so the same comments show up in each site. Does that matter? Is there anything special one should do when moving back and forth between test and production sites?

I'm happy to do some troubleshooting if that helps. I am trying to get comments on a forum quickly, and not seeing the comment count is slowing things down. In addition to wanting a longer term solution, I'm also interested in anything that would help in the short term (e.g., uninstalling and reinstalling the Disqus module or other workarounds).

And, would it help in a future version to have the ability to rebuild whatever might need rebuilding (if anything) when there are problems like this?

Thanks.

jsibley’s picture

I'm not sure what to do, without any support.

I have Disqus comments on forum nodes. The comments appear as they should. The blocks function as they should. The field Disqus: comments shows "0 comments" in Advanced Forum while providing a link that goes to the appropriate thread.

My Disqus table is empty. I am guessing that has something to do with getting an incorrect value for Disqus: comments. I don't see how to rebuild the table properly. I assume that I would either need to rebuild the Disqus table or create a new function to look up comment counts through the Disqus API without depending on this table. In either case, I don't have the expertise to find a solution on my own.

I will follow directions and troubleshoot what I can, but it's hard to make any progress without some support. Please help.

jsibley’s picture

I will continue to stumble around, hoping I get close enough to a solution that someone will take pity and show me the way.

Since everything but comment count in the Disqus module seems to be working, I'm wondering if I could come up with a separate way to show the comment counts in a view that lists topics in a forum.

I'm hoping that with custom_field, js_injector, and jQ I might be able to use the existing disqus.js to return the number of comments for each row in the table. However, I'm not sure if this is feasible and, if so, how I would call it with the proper arguments.

Is this, at least, a potential step toward a simple solution? Thanks for any help.

jsibley’s picture

Rob, great to see you so active here again.

I never was able to address the 0 comments issue and ended up hiding the number of comments, which really cut down on the number of additional comments received. The correct number of comments show in the blocks, but not in the view.

Here is the link:

http://www.coaching-process.org/forums/coaching-process-items

It's too late for this project, but i would be willing to troubleshoot if given some direction.

jsibley’s picture

Above, i had asked if it is normal to have 0 rows in the disqus table. Given what I read recently, is it correct that if no nodes have comments turned off, the table will be empty?

RobLoach’s picture

Yeah, the Disqus table only keeps track of nodes that have Disqus comments turned off. This is because the default status for Disqus comments on nodes is turned on.

rsnow’s picture

This was fixed in the latest disqus module. 6.1.8

hankpalan.com’s picture

This was currently working for me, until I upgraded :( but I'm not sure what version I was running before. Check http://rusticred.com/blog they all show 0 comments but http://rusticred.com/blog/weddings/vintage-wedding-vignette-inspired-wat... obviously has comments.

Just using Node: Disqus: Comments as a display field in Views.

*update: It seems that after I updated it may have just cleared the display field in views or something as I have a new blog post and after two comments, it shows two comments in the teaser, but still nothing for all my other posts.

bkosborne’s picture

Status: Active » Closed (fixed)

I imagine this to be an issue with the thread identifier. The latest version of the module makes proper usage of the thread identifier using the node path instead of a path alias.

It's likely the original poster's forum is having issues for this reason. I believe upgrading would solve this issue.

Please re-open if this continues to be an issue for anyone.

arrays’s picture

Status: Closed (fixed) » Active

Hi,

I am using Disqus - 6.x-1.9. I am still facing this issue.
I have listed the content nodes in a view with comment count in the field list. It is showing me 0 comments 0 reactions although going to the page shows me all the comments I have on the list.

Please let me know If I am missing anything.

scarr’s picture

I am also having this issue - in 6.x-1.9 and 1.8; upgrading did not fix this. I'd be happy to post the mysql if that would help.