I've been searching the forums and issues for days, and I can't find the resolution to this.

I'm using Drupal 5.3, and on all my nodes I can't get a comment count. When I say I can't get a comment count, the link for "Add a comment" never transforms into "1 comment" etc, even when comments are present.

I'm using the overridden frontpage view, but other than that, nothing from the core has been altered or overridden in regards to the $links variable.

Any ideas on how to fix this?

Comments

Nick Lewis’s picture

Possible reasons:
1. Aggressive page caching
2. The theme has improperly overridden the comment link
3. You are logged in as admin, and are viewing unpublished comments.

--
"I'm not concerned about all hell breaking loose, but that a PART of hell will break loose... it'll be much harder to detect." - George Carlin
--
Personal: http://www.nicklewis.org
Work: http://www.onnetworks.com

--
"I'm not concerned about all hell breaking loose, but that a PART of hell will break loose... it'll be much harder to detect." - George Carlin
--
Personal: http://www.nicklewis.org
Work: http://www.zivtech.com

Quint’s picture

it looks like it's displaying comment count on the front page. On individual pages it says to login to comment.

dangarc’s picture

i actually reverted back from the view to the standard node frontpage. i don't have the same flexibility but i got fed up with trying to troubleshoot it.

it appears to be a problem with views, not the template.

right before i turned off the frontpage view, it actually got rid of the comments link altogether! No settings changes, no modification, no other admins to blame.

So, standard /node works fine. Views, however, bugged out.

Quint’s picture

It lost it all together? So it sort of degraded over time. That's interesting. If you re-create the view does it work? I wonder if it's cache or memory or throttling or ...

Views is pretty cool, but I sunk a huge amount of time into tweaking the settings.

dangarc’s picture

yeah, views just dumped the entire comment count. the traditional node works fine, but for whatever reason, views eventually just dumped the comments array in $links. all i was left with was "add a comment", which as far as promoting social growth... doesn't do much if you see no comments.

its strange, i reimplimented the views frontpage and it worked fine-- then the same problem, after a day or two it slowly started ditching comment counts on random nodes, then everything altogether. i even turned off caching to see if it was interfering. No throttle, no caching, just defaulted site with views.

Looks like a bug alright... but hell if i can figure out where it is.

joannareyburn’s picture

I'm having the same problem with Views for my blog omitting the "Add a Comment" or Comment count in the links. I would much rather use a View, but without a solution to this little problem, I may have to resort to the default blog view.