Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I get the following error for a view with lite pager:
Notice: Undefined offset: 0 in theme_pager_lite_next() (line 87 of /views_litepager/views_litepager.module).
Comment | File | Size | Author |
---|---|---|---|
#2 | views_litepager-fix-undefined-offset-2654632.patch | 761 bytes | firewaller |
Comments
Comment #2
firewaller CreditAttribution: firewaller commentedAfter debugging, it looks like the $pager_total array does not contain the expected $element key. Added check for expected key.
Comment #3
interdruper CreditAttribution: interdruper commentedIn my case, the problem arises when more than one litepager exist in the page (i.e. 2 blocks with litepagers). That's why the counter from one pager may fall for the other(s). The patch #2 fixes the issue.
Comment #4
interdruper CreditAttribution: interdruper commentedComment #5
ram4nd CreditAttribution: ram4nd as a volunteer commentedComment #7
ram4nd CreditAttribution: ram4nd as a volunteer commented