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.
Scam Warning
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 » Sat Nov 12, 2011 8:17 pm

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 711 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 711 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: 51874
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Pagination in Viewforum Showing Incorrect Page Numbers

Post by Brf » Sat Nov 12, 2011 8:26 pm

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 » Sat Nov 12, 2011 9:01 pm

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 687 times

User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 50884
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 » Sat Nov 12, 2011 9:18 pm

That is a host error. Contact your host.
For REALLY good and VERY inexpensive hosting CLICK HERE

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: 51874
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Pagination in Viewforum Showing Incorrect Page Numbers

Post by Brf » Sat Nov 12, 2011 9:42 pm

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 » Sat Nov 12, 2011 10:21 pm

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: 51874
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Pagination in Viewforum Showing Incorrect Page Numbers

Post by Brf » Sat Nov 12, 2011 10:23 pm

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 » Sat Nov 12, 2011 10:34 pm

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: 51874
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Pagination in Viewforum Showing Incorrect Page Numbers

Post by Brf » Sat Nov 12, 2011 10:38 pm

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 » Sat Nov 12, 2011 11:48 pm

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 » Sun Nov 13, 2011 12:19 am

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: 51874
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Pagination in Viewforum Showing Incorrect Page Numbers

Post by Brf » Sun Nov 13, 2011 12:51 am

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 » Fri Nov 18, 2011 12:20 am

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”