Join GitHub today
Paginator invalid mem. nil pointer on Hugo server #5968
I'm reopening an issue for the problem we're encountering on
It happens on some projects but not all, and after having spent hours trying to isolate it on unaffected projets by trying every possible config variations, I just resigned myself to simply post my findings in the hope this will help.
It does not happen systematically, but if you move around the site, cliking in the nav, back and forth, not necessarily while navigating to the page whose template uses Pagination, but others as well, at some point, the crash is going to happen.
I've run one of our "problem" site with
It always happens after this line:
Here's a complete example:
I've tried wrapping every project's ref to Paginator's properties inside
We put in place this repo where the problem will sysmetically happen after navigating the site on hugo serve: #5885 (comment)