Pagination in Viewforum Showing Incorrect Page Numbers

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Suggested Hosts
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
User avatar
alecrust
Registered User
Posts: 348
Joined: Thu Mar 27, 2008 11:24 am
Location: London, UK
Contact:

Pagination in Viewforum Showing Incorrect Page Numbers

Post 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 1011 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 1011 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
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53400
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Pagination in Viewforum Showing Incorrect Page Numbers

Post by Brf »

Have you tried resyncing that forum in manage Forums?
User avatar
alecrust
Registered User
Posts: 348
Joined: Thu Mar 27, 2008 11:24 am
Location: London, UK
Contact:

Re: Pagination in Viewforum Showing Incorrect Page Numbers

Post 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 987 times
User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 52768
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Pagination in Viewforum Showing Incorrect Page Numbers

Post by stevemaury »

That is a host error. Contact your host.
I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53400
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Pagination in Viewforum Showing Incorrect Page Numbers

Post by Brf »

Try repairing your phpbb_posts table in phpmyadmin, as it says in the error message.
User avatar
alecrust
Registered User
Posts: 348
Joined: Thu Mar 27, 2008 11:24 am
Location: London, UK
Contact:

Re: Pagination in Viewforum Showing Incorrect Page Numbers

Post by alecrust »

OK, after doing that the forum successfully resynchronises, but the pagination numbers remain the same I'm afraid :(
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53400
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Pagination in Viewforum Showing Incorrect Page Numbers

Post by Brf »

You only have 10 posts per page? It seems viewforum thinks you have 20.
User avatar
alecrust
Registered User
Posts: 348
Joined: Thu Mar 27, 2008 11:24 am
Location: London, UK
Contact:

Re: Pagination in Viewforum Showing Incorrect Page Numbers

Post by alecrust »

Interesting, it's correct in the topic but not in viewforum.

Might the MOD Posts Per Page be causing this?
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53400
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Pagination in Viewforum Showing Incorrect Page Numbers

Post by Brf »

Perhaps.
User avatar
alecrust
Registered User
Posts: 348
Joined: Thu Mar 27, 2008 11:24 am
Location: London, UK
Contact:

Re: Pagination in Viewforum Showing Incorrect Page Numbers

Post 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:
Last edited by alecrust on Fri Nov 18, 2011 12:04 am, edited 1 time in total.
User avatar
Oyabun1
Former Team Member
Posts: 23162
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: Pagination in Viewforum Showing Incorrect Page Numbers

Post 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.
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53400
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Pagination in Viewforum Showing Incorrect Page Numbers

Post by Brf »

Also consider that mod was designed to 3.0.2. There is no guarantee that it works properly for 3.0.9.
User avatar
alecrust
Registered User
Posts: 348
Joined: Thu Mar 27, 2008 11:24 am
Location: London, UK
Contact:

Re: Pagination in Viewforum Showing Incorrect Page Numbers

Post 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?
Locked

Return to “[3.0.x] Support Forum”