Page 1 of 1

Pagination in Viewforum Showing Incorrect Page Numbers

Posted: Sat Nov 12, 2011 8:17 pm
by alecrust
Hi all,

I've got quite a nasty bug on my board unfortunately, I wonder if anyone can provide any help.

The pagination that appears when viewing a list of topics is displaying incorrect page numbers, but linking to the correct location.

Here's an example. The pagination in viewforum showing 245 pages of this topic:
issue-1.png
issue-1.png (15.22 KiB) Viewed 717 times
However if that "245" link is clicked, you actually go to page 489 of the topic, which is correct:
issue-2.png
issue-2.png (12.5 KiB) Viewed 717 times
So it's displaying the correct pagination number in viewtopic, but not in viewforum.

This must be having terrible SEO implication for my site and is confusing the hell out of my members. Anyone have any ideas on solving this?

Many thanks in advance!

Alec

Re: Pagination in Viewforum Showing Incorrect Page Numbers

Posted: Sat Nov 12, 2011 8:26 pm
by Brf
Have you tried resyncing that forum in manage Forums?

Re: Pagination in Viewforum Showing Incorrect Page Numbers

Posted: Sat Nov 12, 2011 9:01 pm
by alecrust
Hmm, when I went to try just that after a while it gave me this error page:
general-error.png
general-error.png (87.81 KiB) Viewed 693 times

Re: Pagination in Viewforum Showing Incorrect Page Numbers

Posted: Sat Nov 12, 2011 9:18 pm
by stevemaury
That is a host error. Contact your host.

Re: Pagination in Viewforum Showing Incorrect Page Numbers

Posted: Sat Nov 12, 2011 9:42 pm
by Brf
Try repairing your phpbb_posts table in phpmyadmin, as it says in the error message.

Re: Pagination in Viewforum Showing Incorrect Page Numbers

Posted: Sat Nov 12, 2011 10:21 pm
by alecrust
OK, after doing that the forum successfully resynchronises, but the pagination numbers remain the same I'm afraid :(

Re: Pagination in Viewforum Showing Incorrect Page Numbers

Posted: Sat Nov 12, 2011 10:23 pm
by Brf
You only have 10 posts per page? It seems viewforum thinks you have 20.

Re: Pagination in Viewforum Showing Incorrect Page Numbers

Posted: Sat Nov 12, 2011 10:34 pm
by alecrust
Interesting, it's correct in the topic but not in viewforum.

Might the MOD Posts Per Page be causing this?

Re: Pagination in Viewforum Showing Incorrect Page Numbers

Posted: Sat Nov 12, 2011 10:38 pm
by Brf
Perhaps.

Re: Pagination in Viewforum Showing Incorrect Page Numbers

Posted: Sat Nov 12, 2011 11:48 pm
by alecrust
Really? Don't MODs go through rigorous scrutinisation before they're accepted in to the database?

Wouldn't someone else who's used this quite popular MOD have reported it? Any other MODs you think might have caused it?

Sorry for all the questions! :roll:

Re: Pagination in Viewforum Showing Incorrect Page Numbers

Posted: Sun Nov 13, 2011 12:19 am
by Oyabun1
The MODs in the Modification Database do go through a validation process, however, that only ensures they work and don't cause security problems at the time they were validated, doesn't extend to errors people may make when installing them (the most common cause of problems with MODs), nor to possible interactions with the hundreds of other MODs.

Remove the MOD and see if the problem is resolved, if so, it is likely to be a problem related to the MOD.

Re: Pagination in Viewforum Showing Incorrect Page Numbers

Posted: Sun Nov 13, 2011 12:51 am
by Brf
Also consider that mod was designed to 3.0.2. There is no guarantee that it works properly for 3.0.9.

Re: Pagination in Viewforum Showing Incorrect Page Numbers

Posted: Fri Nov 18, 2011 12:20 am
by alecrust
Thanks for this advice, I've now reverted all the code changes of that MOD and it seems to have solved the problem.

Interestingly it seems the figures in the pagination in viewforum was correct, whilst the pagination in the actual topic was completely wrong. They're now matching, but does this sound right?

I also haven't removed the SQL command required for the MOD (since I don't know how):

Code: Select all

ALTER TABLE phpbb_users ADD user_posts_per_page MEDIUMINT( 8 ) NOT NULL DEFAULT '10';
Should I remove this also?