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).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

firewaller created an issue. See original summary.

firewaller’s picture

After debugging, it looks like the $pager_total array does not contain the expected $element key. Added check for expected key.

interdruper’s picture

In 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.

interdruper’s picture

Status: Active » Reviewed & tested by the community
ram4nd’s picture

Status: Reviewed & tested by the community » Fixed

  • ram4nd committed c05d1b3 on 7.x-3.x authored by firewaller
    Issue #2654632 by firewaller, interdruper: PHP Error: Undefined offset:...
ram4nd’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.