Make WordPress Core

Opened 19 years ago

Closed 19 years ago

Last modified 17 years ago

#1920 closed defect (bug) (fixed)

Incorrect Comment Count

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

Description (last modified by masquerade)

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 (1)

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

Download all attachments as: .zip

Change History (17)

#1 @dissurion
19 years ago

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

too fast reporting: overlooked some setting :(

#2 @Kamigoroshi
19 years ago

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

#3 @dissurion
19 years ago

Comments moderation. Seemed to be on by default.

#4 @Kamigoroshi
19 years ago

  • Resolution invalid deleted
  • Status changed from closed to reopened

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.

#5 @Kamigoroshi
19 years ago

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.

#6 @ronizzel
19 years ago

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

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.

#7 @ronizzel
19 years ago

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.

#8 @masquerade
19 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

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.

#9 @masquerade
19 years ago

  • Description modified (diff)

#10 @Kamigoroshi
19 years ago

  • Summary changed from still "no comments" after commenting to Incorrect Comment Count

#11 @Kamigoroshi
19 years ago

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.

#12 @Kamigoroshi
19 years ago

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

#13 @markjaquith
19 years ago

  • 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.

@markjaquith
19 years ago

Patch for WP 2.0 SVN

#14 @ryan
19 years ago

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

(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

#15 @jasontromm
18 years ago

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

#16 @(none)
17 years ago

  • Milestone 2.0 deleted

Milestone 2.0 deleted

Note: See TracTickets for help on using tickets.