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 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.
Comment | File | Size | Author |
---|---|---|---|
smart-paging-subpage.patch | 607 bytes | chellman |
Comments
Comment #3
arpeggio CreditAttribution: arpeggio as a volunteer commentedHi, I have pushed your patch. Thank you for sharing it.