Bug tracker

This ticket has been moved to our new tracker. Open Ticket PHPBB3-5160 now.

Post count all wrong (16777214) (fix completed in vcs)

I experienced a rollover error in the post count. Here is how I did it:

* Create a new moderated forum
* Post in the forum with a user requiring moderation
* Moderator deletes the post, does not approve it
* Count of posts shows 16777214

Now, that another user has posted, and been moderated, the count is now 16777215.

Using "Resynchronise post counts" in the ACP does not reset the post count.

Comments / History

Posted by DavidMJ (Former Team Member) on Jul 9th 2007, 20:19

How does the mod delete the post? Clicking the X or via the MCP?

Posted by DavidMJ (Former Team Member) on Jul 9th 2007, 20:20

Are there any replies to the post? Is this post actually a topic?

Assigned ticket to user "DavidMJ"

Action performed by DavidMJ (Former Team Member) on Jul 9th 2007, 20:20

Changed ticket status from "New" to "Awaiting information"

Action performed by DavidMJ (Former Team Member) on Jul 9th 2007, 20:20

Posted by kawpen on Jul 9th 2007, 20:25

The post was removed during moderation. Since the post was rejected.

Where never any replies to the post

Posted by kawpen on Jul 9th 2007, 21:02

make that:

There were never any replies to the post.

Posted by DavidMJ (Former Team Member) on Jul 9th 2007, 21:56

Is this the forum count or the global board count?

Posted by dark/Rain on Jul 9th 2007, 22:36

Could reproduce...

SVN snapshot of 09th July 2007 21:32 GMT+2
Default installation

Steps to reproduce:

Create new forum "test" in board's root (keep default settings for the forum).
Set permissions:
- All groups: Read Only Access
- then: Guests: On Moderation Queue
Set Moderator permissions:
- Administrators: Full Moderator
Post a message (=new topic) as Guest in the "test" forum.

Now:
for guest: 0 topics 0 posts
for admin: 1 topic 0 posts

View the post as admin and click on the "x" button (in viewtopic.php) to delete it.

Then:
for guest: 0 topics 16777215 posts "No posts" under "Last post"
for admin: 0 topics 16777215 posts "No posts"

The post count stays at 16777215 when new posts are made

The global post count seems to be correct...

Posted by kawpen on Jul 9th 2007, 23:04

You describe the scenario as I have done it... And it is only a forum count mismatch. Global count did not jump in excess of 16777214. But other then that I was not tracking the global count.

Linked ticket with changeset: r7856

Action performed by DavidMJ (Former Team Member) on Jul 10th 2007, 03:14

Changed ticket status from "Awaiting information" to "Fix completed in CVS"

Action performed by DavidMJ (Former Team Member) on Jul 10th 2007, 03:14

Posted by DawnBlood on Feb 18th 2009, 17:14

How to solve the same problem but with user post count ?

Ticket details

Related SVN changesets