Needs work
Project:
Views Infinite Scroll
Version:
2.0.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
20 Jun 2022 at 17:54 UTC
Updated:
14 Feb 2024 at 09:28 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
neslee canil pinto@AdamEvertsson I can see there is a console error on your page https://www.reklamfranforr.se/galleri. Which might cause the VIS module to stop working.
Comment #3
amit.mall commentedMasonry js plugin comes with own method to initialise. You can reload Masonry js method after ajax call.
$('.masonry-layout-gallery').masonry('reloadItems')write this code inside drupal behaviour:
Comment #4
luksakI have the same issue, but without masonry. What I observed: the event handler on the load more link is not present after the first ajax request.
Comment #5
luksakUpgrading to 2.0 fixes the issue for me.
Comment #6
dinazaur commented+1. 2.0 Only works correctly.
Comment #7
lroels+1 Works on 2.0.
Question is: shouldn't this be fixed on the 1.x version as well?
Especially since that version is still fully supported.
Comment #8
adamevertsson commentedI finally had time to test this on my site, and it works with 2.0.
Thanx everyone!
Comment #9
neslee canil pintoComment #10
2dareis2do commentedI am having similar issue and behaviour in 2.0 branch.
The error I see is
Uncaught TypeError: query is undefined
Comment #11
2dareis2do commentedComment #12
yeebot commentedI'm also seeing this issue with 2.0.0 on my Views page. To replicate:
&page=2. Removing thepagequery string from the URL resets the listings back to the initial display.I'm not seeing any js errors in the console.
Comment #13
borg_git commentedyeebot
I have the same problem in all versions "Views Infinite Scroll".
For now my quick solution is set Pager ID as 1,
after click the "Load More" button view update elements with ajax without page rebuild.
Comment #14
ma h commentedUpdate to 2.0.0 don't fix it for me. I'm on Drupal core 9.4.1
Comment #15
sascha_meissnerHad the same issue without masonry or extra stuff
BUT for me the Update from 1.9.0 to "^2.0" did solve the problem.
**Update**
On 9.3.x
Comment #16
swatidhurandhar07 commented^2.0 version is not working in drupal 9.4.3 as well.
Comment #17
trakoczi commentedWe are using version 2.0 as well with Drupal 9.2.21 and we experience the problem too. We have a view where we display 5 items first then load 5 more via AJAX with each click on Next button. Pretty standard setup.
What I spotted is that the Next button has initially href="?page=1" on it, which loads the items no. 6-10 perfectly. But when the next button is changed at this point, it has href="?page=2%2C0%2C0%2C0%2C0" (2,,,,) on it which doesn't seem right. I tried to see what happens if I just edit the href value in Dev Tools and then click the button, but it's then no AJAX request anymore, but a page load.
UPDATE: downgrading the module to version 1.9 fixes the problem, now we can have to view scroll indeed endlessly.
Comment #18
masoom2206 commentedTry this one
https://www.drupal.org/project/views_infinite_scroll/issues/3252577#comm...
Comment #19
laura.gatesAlso running into this with version 2.0 of this module and Drupal 9.3.21 and using PHP 8.0. It seems like Stops loading after X amount of items(Drupal ^9.2.0 ) (3252577) may have come back to some extent.
Comment #20
vlyalko commentedI have the same problem in drupal 10, version ^2.0 and I solved it with the solution from https://www.drupal.org/project/views_infinite_scroll/issues/3291544#comm...
by setting pager id to 1
Comment #22
himanshu_jhaloya commentedI have tested this branch 2.0.0 it is working fine in Drupal 10