I was seeing a lot of errors like this:

Notice: Undefined offset: -1 in _smart_paging_href_replace() (line 509 of /sites/all/modules/smart_paging/smart_paging.module).

Views that aren't related to smart paging, and have AJAX turned on, can trigger it. Maybe others as well. It comes from trying to access item -1 in the args array, which of course doesn't exist. The fix seems pretty simple, so I've attached a patch.

CommentFileSizeAuthor
smart-paging-subpage.patch607 byteschellman
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

chellman created an issue. See original summary.

  • arpeggio committed df45c56 on 7.x-2.x authored by chellman
    Issue #2716325 by chellman: Fixed Undefined offset error in...
arpeggio’s picture

Status: Needs review » Fixed

Hi, I have pushed your patch. Thank you for sharing it.

Status: Fixed » Closed (fixed)

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