Warning Undefined array key "page" when using module with mini pager

Created on 5 September 2025, about 1 month ago

Problem/Motivation

Was excited to see this module as it solves an issue I have with my views paths. After installing it and configuring a path in the settings section I get the following error on initial page load.

Warning: Undefined array key "page" in Drupal\views_pretty_paths\PathProcessor\ViewsPrettyPathProcessor->preProcessPagerItem() (line 496 of modules/contrib/views_pretty_paths/src/PathProcessor/ViewsPrettyPathProcessor.php).

It would appear that this error has to do with the mini pager. I tested with the pager off (Displaying all items) and the warning went away. I also noticed as I was writing this issue that if you use the filters and go back to the main page the error goes away. It would appear that this issue only happens on initial load.

Steps to reproduce

- Install the module
- Configure the module at the module settings page
- Go to a view page that was configured with mini pager enabled and error appears (both logged in and logged out)
- Worth noting here I am using exposed filters with Better Exposed Filters and my view uses ajax.

If helpful I created a sandbox here to see the error https://prettypaths-johnpicozzi.pantheonsite.io/notebook

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States johnpicozzi Providence, RI

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024