Title: Comment count.
Last modified: August 18, 2016

---

# Comment count.

 *  Resolved [kimchihead](https://wordpress.org/support/users/kimchihead/)
 * (@kimchihead)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/comment-count-2/)
 * I have just upgraded to WP 2.0. Very smoothly, I might add! 🙂
 * The only problem I have now is that the comment count seems to be wrong on my
   latest post. It says I have eight comments, when in fact there are nine.
 * I have not modified any of my template files after the upgrade.
 * Thanks in advance!

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/topic/comment-count-2/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/comment-count-2/page/2/?output_format=md)

 *  [citeewurkor](https://wordpress.org/support/users/citeewurkor/)
 * (@citeewurkor)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/comment-count-2/#post-302377)
 * do you use Spam Karma? There’s a plugin available for Spam Karma if you are using
   it.
    [http://lair.fierydragon.org/2005/11/sk2-wp2compatibility/](http://lair.fierydragon.org/2005/11/sk2-wp2compatibility/)
 *  Thread Starter [kimchihead](https://wordpress.org/support/users/kimchihead/)
 * (@kimchihead)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/comment-count-2/#post-302424)
 * Gee, thanks! That fixed my problem, alright! 🙂
 *  [citeewurkor](https://wordpress.org/support/users/citeewurkor/)
 * (@citeewurkor)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/comment-count-2/#post-302430)
 * rah! My first support success!
 *  [fozylet](https://wordpress.org/support/users/fozylet/)
 * (@fozylet)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/comment-count-2/#post-303050)
 * i had the same problem. though installing sk2.1 made sure the problem doesn’t
   occur for new posts, it doesn’t correct the problem for older posts for which
   the comment count is still messed up. any idea how to correct this?!
 *  [viper007bond](https://wordpress.org/support/users/viper007bond/)
 * (@viper007bond)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/comment-count-2/#post-303051)
 * Does [http://lair.fierydragon.org/2005/11/sk2-wp2compatibility/](http://lair.fierydragon.org/2005/11/sk2-wp2compatibility/)
   not do it?
 * And I’ve been thinking of writing a small script to batch update the comment 
   count on all posts. I think I’ll do it for those like you and me that really 
   wanna make sure the count is right.
 *  [artwalk](https://wordpress.org/support/users/artwalk/)
 * (@artwalk)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/comment-count-2/#post-303069)
 * fozylet, i had the same problem too and was promptly solved by installing sk2.1.
   but for the older posts, you’re right – they remain messed up. but i discovered
   that when you post a new comment on that post, the correct count will now be 
   obtained.
 * so since i only have one old post that has the counter problem, i just added 
   a dummy new comment to update the counter and then just deleted it afterwards.
 *  [dsotweek](https://wordpress.org/support/users/dsotweek/)
 * (@dsotweek)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/comment-count-2/#post-303070)
 * If you go in and “recover” all the posts, it corrects the counts.
 *  [Ryck](https://wordpress.org/support/users/ryck/)
 * (@ryck)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/comment-count-2/#post-303085)
 * Well, a workarround for this bug (caused probably for a bad update, at least 
   in my case) is this:
 * 1. Change the value of the db_version field in the wp_options table to 3307, 
   like this:
 * UPDATE `wp_options` SET `option_value` = ‘3307’ WHERE `option_id` =81 AND `blog_id`
   =0 AND CONVERT( `option_name` USING utf8 ) = ‘db_version’ LIMIT 1 ;
 * Then re-run the upgrade.php file and the comment count field of all posts will
   be recalculated.
 * Good luck!
 *  [khalido](https://wordpress.org/support/users/khalido/)
 * (@khalido)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/comment-count-2/#post-303098)
 * Tried that. but it didn’t work!
 *  [despacho](https://wordpress.org/support/users/despacho/)
 * (@despacho)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/comment-count-2/#post-303099)
 * how about this – did you comment on your post? if you commented by your admin
   nickname, the comment doesnt count.
 *  [planetthoughtful](https://wordpress.org/support/users/planetthoughtful/)
 * (@planetthoughtful)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/comment-count-2/#post-303107)
 * I have a similar problem to this, but I’m not running Spam Karma at all, and 
   in fact the only plugins I have activated are Markdown, which was included with
   WP 2.0, and 2 plugins I wrote myself, neither of which do anything with comments.
 * Basically, while developing my theme, I entered several test comments to work
   out how they would appear. When I was ready to publish my site, I deleted the
   comments, since they were all of the ‘Test comment 1’ etc type. However, the 
   comment counts on my posts still show that comments exist, when I have effectively
   removed them all.
 * Any thoughts?
 * Much warmth,
 * planetthoughtful
 *  [ktula](https://wordpress.org/support/users/ktula/)
 * (@ktula)
 * [20 years ago](https://wordpress.org/support/topic/comment-count-2/#post-303145)
 * Since upgrading to WP 2.0 (now on 2.0.2), some of my posts have indicated that
   they have 1 comment but in fact there was not any. Not sure what is updating 
   the database. I have to update MySQL DB and remove the incorrect comment count,
   like this:
 * mysql> update wp_posts set comment_count=0 where ID=215;
 * where ID is the post ID.
 *  [superkev](https://wordpress.org/support/users/superkev/)
 * (@superkev)
 * [20 years ago](https://wordpress.org/support/topic/comment-count-2/#post-303151)
 * I have also noticed this problem, and I do not have Spam Karma installed. I think
   the problem started occuring after upgrading to 2.0.2. I _do_ have the SecureImage
   plugin installed. Not sure if that could be affecting it though…
 *  [bckpkrs](https://wordpress.org/support/users/bckpkrs/)
 * (@bckpkrs)
 * [19 years, 12 months ago](https://wordpress.org/support/topic/comment-count-2/#post-303153)
 * I have this same problem, and no Spam Karma either.
 * My webhost upgraded WP to WP2.02 on Friday. Several posts made after that do 
   not show the correct comment count; it still says “Be the first to comment”
 * Any other ideas why I would be getting an acurate comment count in my via my “
   clean archive” plugin is correct, but on the main page of my blog?
 * [http://enlightphoto.com/views/](http://enlightphoto.com/views/)
 * the Comments count doesn’t seem to work.
 * Here’s the odd point; I’d had SK 2.0 on the server, but not active. I’ve since(
   due to an error) pulled the entire Sk2 plugin folder off the server, but the “
   SpamKarma-reloaded plugin still shows up in my plugin admin panel (deactivated).
 * Am I missing something obvious here?
 * Thanks in advance for any further tips or ideas.
 *  [sodafizz](https://wordpress.org/support/users/sodafizz/)
 * (@sodafizz)
 * [19 years, 12 months ago](https://wordpress.org/support/topic/comment-count-2/#post-303154)
 * It’s definitely a Spam Karma problem, as the problem goes away (on all new posts
   anyway), when I deactivate Spam Karma.
 * I’ve tried all the suggestions above, but am still having the comments count 
   problem. Here’s what I’ve tried:
 * 1) I removed my existing Spam Karma plug-in.
 * 2) [http://unknowngenius.com/blog/wordpress/spam-karma/](http://unknowngenius.com/blog/wordpress/spam-karma/)–
   From this site (SK’s author), I’ve installed Spam Karma version 2.2 (I downloaded
   and installed this on 4/12/06).
 * 3) [http://www.alexallied.com/web-20/wordpress-2-comments-count-fixed](http://www.alexallied.com/web-20/wordpress-2-comments-count-fixed)–
   I followed these instructions (Go to Manage > Spam Karma 2 > and go to Approved
   Comments. In Approved Comments, there will be a list of recent approved comments.
   Check all of them and click “Run Selected Entries” through “All Plugins”.)
 * The problem persists…
 * 4) When I try to enter a test comment myself, my comment is rejected (“Sorry,
   but your comment has been flagged by the spam filter running on this blog: this
   might be an error, in which case all apologies. Your comment will be presented
   to the blog admin who will be able to restore it immediately. You may want to
   contact the blog admin via e-mail to notify him.”). When I then go to Manage 
   > Awaiting Moderation, there is nothing there…
 * 5) If you go into Manage – Spam Karma – General Settings, at the bottom you’ll
   see “Advance Options”, which notes “SK2 will not work properly if your theme 
   is not 100% 1.5-compatible. In particular, oftentimes, the comment form of some
   custom themes does not contain the proper code to work with 1.5 plugins. For 
   more details and a guide on how to fix, please check out the wiki.You do not 
   have to worry about this if you are using a standard out-of-the-box 1.5 install
   and the theme that came with it.” (The WIKI link is [http://wp-plugins.net/wiki/index.php?title=SK2_Theme_Compatibility](http://wp-plugins.net/wiki/index.php?title=SK2_Theme_Compatibility))
 * There’s a “Theme Compatibility Check” icon just below too as well as an “Advanced
   Compatibility Check” box.
 * Using both of these, my theme registers as compatible (okay).
 * 6) If I go into an individual comment someone has posted and do nothing except
   click “edit comment” and process such an ‘edit’, the comment count on that one
   post displays correctly…
 * 7) I was going to try the (unnecessary) step of uploading SK 2.0 (not 2.2) and
   using the separate plug-in mentioned on [http://lair.fierydragon.org/2005/11/sk2-wp2compatibility/](http://lair.fierydragon.org/2005/11/sk2-wp2compatibility/).
   However, the link for this plug-in fix is no longer available (presumably due
   to the release of 2.2).
 * 8) [http://wordpress.org/support/topic/54870](http://wordpress.org/support/topic/54870)–
   I followed Kafkaesqui’s suggestion re. the new disk cache functionality in WP
   2.0. “You can disable caching (temporarily or permanently) by adding this line
   to your wp-config.php
 * define(‘DISABLE_CACHE’, true);
 * The problem persisted…
 * 9) When I try to input a test comment (by first logging out of WP) like any other
   site visitor would (name, email required, etc.), I get the same message rejection
   as #4 above…
 * Any ideas?…
 * In the meantime:
 * 10) I’ve since deactivated Spam Karma, which allows the comment counter to work
   properly (on all new comments). I’ve downloaded Akismet which is working fine
   and allowing proper comment counts. (You have to go to wordpress.COM, not .org,
   and set up an acct in order to receive your necessary API Key for Akismet to 
   work.)

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/topic/comment-count-2/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/comment-count-2/page/2/?output_format=md)

The topic ‘Comment count.’ is closed to new replies.

## Tags

 * [count](https://wordpress.org/support/topic-tag/count/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 19 replies
 * 15 participants
 * Last reply from: [bmck](https://wordpress.org/support/users/bmck/)
 * Last activity: [19 years, 9 months ago](https://wordpress.org/support/topic/comment-count-2/page/2/#post-303193)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
