[Rejected] Page Count Bug
#1
I see 7 pages here [Image: 3bcfda057683085c48504b76de8b9938.png] but 8 pages here [Image: a44efa542cd40a74b8c3d0b7bbbf2942.png]
-Ben

Please do not PM me for support. I am looking to be hired for paid services.

You can view my paid services here.
Reply
#2
Without knowing how to reproduce the bug we can't fix it.
[Image: banner.png]
Reply
#3
Sorry, I meant to reply to this thread again. There is one unapproved post on the thread so they're not taken into account on forum view for page numbers or total replies for staff.
-Ben

Please do not PM me for support. I am looking to be hired for paid services.

You can view my paid services here.
Reply
#4
This definitely isn't correct: https://github.com/mybb/mybb/blob/featur...p#L926-927 Not sure what $visible is doing there when the next line assumes everything can be viewed...

And the whole block is not even available in forumdisplay.php = counts are not queried, which is the only big difference I noticed. For guests pages in that thread are always 1-7, which also suggests it's mod-related.

EDIT: and ofc this isn't correct when it comes to permissions: https://github.com/mybb/mybb/blob/featur....php#L1118 but there's an issue for many similar cases already. The conditional doesn't make any sense either since it considers only unapproved posts while soft deleted are also added - that's likely the cause.
Reply
#5
Do we want to go ahead and tackle this issue?
-Ben

Please do not PM me for support. I am looking to be hired for paid services.

You can view my paid services here.
Reply
#6
Good luck, haha

Now seriously, tracking pagination bugs has always been difficult. Hopefully, they will fix themselves as we rewrite the code.
Reply
#7
As Omar said, this may already have been fixed. I can't reproduce this anymore.
[Image: fSGNVQj.png]
Reply
#8
I have fixed it or something similar in some PR if I can remember. May be ...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)