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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hmdnawaz created an issue. See original summary.

hmdnawaz’s picture

Here is a patch for this.

hmdnawaz’s picture

Status: Active » Needs review
heykarthikwithu’s picture

Status: Needs review » Reviewed & tested by the community

looks good for me.

Sam152’s picture

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

Sam152’s picture

Sam152’s picture

  • Sam152 committed 6e3872d on 8.x-1.x authored by hmdnawaz
    Issue #2633038 by hmdnawaz, Sam152: Undefined index: method in...
Sam152’s picture

Status: Reviewed & tested by the community » Fixed

Thank you for your contribution!

Status: Fixed » Closed (fixed)

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