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 am using the infinite scroll pager in view, But when I click on the load more, does not load more content and gives an error of
Undefined index: method in views_infinite_scroll/src/EventSubscriber/AjaxResponseSubscriber.php [%line] => 31 )
When I print the command variable inside the foreach loop it displays me the following array
Array
(
[command] => viewsScrollTop
[selector] => .js-view-dom-id-10e32f110ca5d8dde2edd028da2a6e2c5add6b3fbe8c94a0577f527a13ef175d
)
Which does not have the 'method' index.
Comment | File | Size | Author |
---|---|---|---|
#2 | undefined_index_method_AjaxResponseSubscriber-2633038.patch | 793 bytes | hmdnawaz |
Comments
Comment #2
hmdnawaz CreditAttribution: hmdnawaz commentedHere is a patch for this.
Comment #3
hmdnawaz CreditAttribution: hmdnawaz commentedComment #4
heykarthikwithulooks good for me.
Comment #5
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commentedThanks for the patch and the review. I will manually test this and if everything works as expected I will commit it, the code is good.
Comment #6
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commentedComment #7
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commentedComment #9
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commentedThank you for your contribution!