hollyvalero Posted March 11, 2021 Share Posted March 11, 2021 Pagination usually works just fine. I had 2 identical production sites - I was updating code in one when I found the pagination for a publication library was not working. MarkupPagerNav was the same in both (image 1) But the Dev version was different. (image 2) 3.0.173 was NOT paginating Pagination was working in the one with the older DEV (image 3) 3.0.172 Until I updated that installtion to 3.0.173 After the update it delivers the correct URL, but a 404 page (image 4) I rolled back the update to DEV 3.0.172 (image 5) and pagination is working fine... So... fixing this is above my pay grade ? Link to comment Share on other sites More sharing options...
szabesz Posted March 11, 2021 Share Posted March 11, 2021 cross reference: 1 Link to comment Share on other sites More sharing options...
Sebi Posted March 13, 2021 Share Posted March 13, 2021 I do not use the pagination function, but I had similar issues with my AppApi module, that resulted in a 404 error in ProcessWire versions >= 1.0.173. So maybe it is related to it? The short version is: wire('input')->url no longer returns the requested url in the hook function I use, but only "/http404/" in the new ProcessWire versions. So in my module I now use $_SERVER['REQUEST_URI'], which works. I couldn't find anything yet with a quick look in the MarkupPagerNav class, but maybe it will help you or @ryan to find a solution... Link to comment Share on other sites More sharing options...
3fingers Posted March 13, 2021 Share Posted March 13, 2021 10 minutes ago, Sebi said: I do not use the pagination function, but I had similar issues with my AppApi module, that resulted in a 404 error in ProcessWire versions >= 1.0.173. So maybe it is related to it? The short version is: wire('input')->url no longer returns the requested url in the hook function I use, but only "/http404/" in the new ProcessWire versions. So in my module I now use $_SERVER['REQUEST_URI'], which works. I couldn't find anything yet with a quick look in the MarkupPagerNav class, but maybe it will help you or @ryan to find a solution... From Quote In addition, in 3.0.174 URL/path hooks can now have control even after a Page (template file) throws its own 404, whether by wire404() or throw new Wire404Exception(). I found this was necessary because it is possible to enable URL segments for your homepage template. And, depending on your homepage template settings, that means it is possible for the homepage to be the recipient of all URLs that don't match pages. This would leave no opportunity for URL/path hooks to execute. So now ProcessWire gives URL/path hooks another opportunity to run if it matches the URL, even after a 404 is thrown from a Page template file. Might this solve the problem? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now