Ticket #1920 (closed defect (bug): fixed)

Opened 7 years ago

Last modified 5 years ago

Incorrect Comment Count

Reported by: dissurion Owned by: anonymous
Priority: normal Milestone:
Component: Administration Version: 1.6
Severity: normal Keywords: bg|has-patch
Cc:

Description (last modified by masquerade) (diff)

The header of the comments section still reports "no comments" after commenting. The comments do appear though.

The comment count is also showing the wrong number of comments.

Attachments

comment_count.diff Download (702 bytes) - added by markjaquith 7 years ago.
Patch for WP 2.0 SVN

Change History

  • Status changed from new to closed
  • Resolution set to invalid

too fast reporting: overlooked some setting :(

What setting was it because I'm having the same problem over here.

Comments moderation. Seemed to be on by default.

  • Status changed from closed to reopened
  • Resolution invalid deleted

The comments moderation are not on by default in my case. The comments_popup_link() and the comments_number() simply do not read any post numbers or even show up in one post though there are comments in the post.

Apparently after editing the comment number in the comment_count table to the appropiate comment count. The subsequent additional increment of comments for that post resumes normally. Other posts still has the comment_count frozen.

  • Status changed from reopened to closed
  • Resolution set to fixed

I'm sure, you have Spam Karma-Plugin or any other comment-plugin. Deactivate it, you will see ;) Askimet works fine, you will don't need SK2.

I'm sure, you have Spam Karma-Plugin or any other comment-plugin. Deactivate it, you will see ;) Askimet works fine, you will don't need SK2.

  • Status changed from closed to reopened
  • Resolution fixed deleted

That isn't a valid fix, comment count should still be working, and I've heard reports that the comment count is incorrect when it actually does display. There is definately some other force at work.

  • Description modified (diff)
  • Summary changed from still "no comments" after commenting to Incorrect Comment Count

Correction to what I said above. The comment_count is still frozen even after editing the table. It will just stay at the count you edited it to.

The frozen comment_count resolved. It was due to Span Karma 2. However broken comment_count still remains until edited via phpmyadmin.

  • Keywords bg|has-patch added

SK2 needs to be updated. It WILL cause this problem. Are there any reports of this bug from people who are not running comment-related plugins?

As for solution, well, SK2 needs to be updated, for one.

One problem I can see is that if the comment_count is off, and the impeding plugin is removed, the count will still be off. It will be incremented, not raised to the correct value. My patch corrects that, such that one untampered comment will forgive all past sins.

Patch for WP 2.0 SVN

  • Status changed from reopened to closed
  • Resolution set to fixed

(In [3193]) Instead of incrementing the current comment count, recount all comments to make sure we have a good count. Props Mark Jaquith. fixes #1920

I installed the attached patch and de-activated SK2, but I still get a wrong comment count on my blog page.

  • Milestone 2.0 deleted

Milestone 2.0 deleted

Note: See TracTickets for help on using tickets.