Error: Call to a member function getTotalPages() on null

Created on 23 February 2024, 9 months ago
Updated 20 August 2024, 3 months ago

Problem/Motivation

When visiting a page with entity list and there are not enough items to pager to appear, there is an error
"Error: Call to a member function getTotalPages() on null in entity_list_get_pager_infos() (line 112 of modules/contrib/entity_list/entity_list.module)."

I'm on D10.2 & PHP 8.2

Steps to reproduce

  • Create entity list
  • Set the number of items per page to some higher value (higher then nuber of items available)
  • Visit the page with an entity list
🐛 Bug report
Status

Closed: duplicate

Version

3.0

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024