Paging order error after change sorting, when list user posts

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
flytech
Registered User
Posts: 2
Joined: Sat Nov 17, 2018 2:55 pm

Paging order error after change sorting, when list user posts

Post by flytech »

When i list posts of specified user, the pagination number links works incorrectly. The numbers of links inversed. The problem occur after when i change the ordering mode.

To reproduce, just log in, click see users posts on a user profile.
Change the ordering mode ascending or descending
Then click on page numbers
See the number links work incorrectly
ie.: https://terszobraszat.hu/forum/search.p ... thor_id=52

The error occured on prosilver and simplicity theme.

In my lang:

created time - elküldés időpontja
ascending - növekvő
descending - csökkenő

I debug it and follow the variables.

When i comment out phpbb/search/base.php line 83:

// $start = $result_count - $start - $per_page;

Then all things work fine. The line 83 reversed the ids order but not needed.

I think maybe recache ids when the order changes is a good way too.

I tested two domain and on localhost to.
PHP 7.1.23, mysql 5.0.12, Chrome 70.0.3538.102
PHP 5.6.35 mysql 5.7.21, Chrome 70.0.3538.102
PHP 7.1.23, mysql 5.0.12, FireFox 63.0.3
PHP 5.6.35 mysql 5.7.21, FireFox 63.0.3
PHP 5.3 mysql 5.7.21, FireFox 63.0.3
HnD
Post Reply

Return to “[3.2.x] Support Forum”