Somehow, the user post count on my forum is totally messed up. Just look at this topic:
http://curvefever.com/content/how-remove-icon

People have a post count of :
1 (topic starter, might be ok)
-1 (someone who replies!)
1 (someone who replied 2 times!)
5 (one of my moderators who should have 400+ count!)

somehow the user post count is reset? (As the value in the user_stats_values is corresponding the data shown). How can this be possible?

Regards,

Geert

Comments

theshanergy’s picture

Issue summary: View changes

Did you ever resolve this issue? I have the same problem and haven't been able to track down the culprit. It seems very random. When I reset the post count and run cron all the counts seem to be correct, then randomly later I'll see a post with -1 or 0 from a known member. I can't reproduce the issue otherwise though, when I submit content my post count is incremented as expected, and when I run cron everything seems fine as well. It seems to just be certain users who trigger the reset.

theshanergy’s picture

To give an update on this issue, in case anyone else is experiencing the same. I believe I've narrowed down the cause. I found that certain user roles did not have the 'View statistics' perm. When these users performed some action, it would retrieve the incorrect counts and set the cache for that uid. This would result in post counts being incorrectly reported to all users.

Mine is just a side project, so I don't have much time to devote to fixing this issue. Granting the view statistics perm seems to be suitable fix for me, but perhaps someone can confirm my assumption and roll a patch for users who want more permission granularity.

Andre-B’s picture

Status: Active » Closed (cannot reproduce)
Triumphent’s picture

Confirmed here. User posts count is wrong.