Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
theshanergy CreditAttribution: theshanergy commentedDid 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.
Comment #2
theshanergy CreditAttribution: theshanergy commentedTo 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.
Comment #3
Andre-BComment #4
Triumphent CreditAttribution: Triumphent commentedConfirmed here. User posts count is wrong.