Jump to content

Pagination STOPS working (delivers a 404 error) after upgrading PW Core (Dev) from 3.0.172 to 3.0.173


hollyvalero
 Share

Recommended Posts

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 ?

 
 

Screen Shot 2021-03-11 at 11.12.46 AM.png

Screen Shot 2021-03-11 at 11.28.52 AM.png

Screen Shot 2021-03-11 at 11.29.36 AM.png

Screen Shot 2021-03-11 at 11.37.18 AM.png

Screen Shot 2021-03-11 at 11.42.07 AM.png

Link to comment
Share on other sites

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...