Closed (outdated)
Project:
Views Infinite Scroll
Version:
7.x-1.1
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
10 Sep 2014 at 19:31 UTC
Updated:
27 Mar 2020 at 19:53 UTC
Jump to comment: Most recent
Comments
Comment #1
johnrosswvsu commentedI can confirm this issue. Will try to look around also.
This is major since this is the main functionality of the module.
Comment #2
torgospizzaI'm actually getting an error in Chrome dev tools: "Cannot read property 'top' of undefined" in both views_infinite_scroll.js (line 75) and jquery.autopager-1.0.0.js (line 134).
EDIT: I was able to get it to work by ensuring I had checked the "add Views classes" to the style settings.
Comment #3
coredumperror commentedI have this same problem, but torgosPizza's workaround didn't help me. And I don't see any javascript errors.
Bumping to Critical because the module completely breaks when used with Views 3.8.
Comment #4
torgospizzaI'm using it successfully with Views 7.x-3.8, using the latest -dev. I'm also using jQuery Update, with jQuery 1.10. You might give that a try and see if it helps.
Comment #5
sardbaba commentedSame here, with last version or with the last -dev and with jQuery 1.8 or 1.10 does not work and with JS error:
Uncaught TypeError: Cannot read property 'top' of undefined views_infinite_scroll.js
Comment #6
sam152 commentedGoing to look into this problem.
Comment #7
amnesiac commentedI solved using a patch for Views PHP (7.x-1.0-alpha1 version): https://www.drupal.org/node/2123315#comment-9085183
Comment #8
sam152 commentedI cannot reproduce this bug in the latest version of views and the dev version of this module. I have not tested with jQuery update, but I'm not sure that is in scope for the module.
Comment #9
andres.torres commentedI can confirm the javascript issue on firefox too TypeError: last.offset(...) is undefined on views_inifnite_scroll.js (line 75).
Using jquery update 1.10, Views 3.8 and the dev version of this module
Comment #10
tostinni commentedI can confirm that patch mentionned in #7 fix my bug too.
I suspect this bug only appears while using infinite scroll with views (3.8+) and views PHP.
Comment #11
jon_stewart commentedSubscribing
Comment #12
onegreypaw commentedConfirming that Views PHP fix from #7 fixed my issue.
Comment #13
stevieb commentedI'm seeing this error " views_infinite_scroll.js?nso75w:75 Uncaught TypeError: Cannot read property 'top' of undefined"
using bootstrap theme "add Views classes" is checked
the masonry is working but it kills other slideshows and js on the page
Comment #14
stevieb commentedPatch here https://www.drupal.org/node/1806628 ... seems to have fixed my problem
Comment #15
tilottama11 commentedHi ,
Can you please check in your view configuration that "use AJAX" param value is Yes as this was the problem in my view configuration and Views 7.x-3.17 version has added this restriction to prevent security vulnerability.
Comment #16
tilottama11 commentedPlease check configuration of your view where "Use AJAX" param should be set to "YES" as it fixed the issue in my view.
Comment #17
b.khouyThank you Tilottama you're suggestion at Comment #16 fixed the issue.
Comment #18
lubwn commentedI can confirm this issue is still present in the newest version of views / views inifite scroll.. not sure how to solve it, since my view does not have "use ajax" option (not sure why).
Comment #19
xorunaI had the same issue and solution in #16 worked for me, thanks! (I'm using Views 7.x-3.23 and Views Infinite Scroll 7.x-2.1)
Comment #20
rohitrajputsahab commentedI'm also facing the same issue. Please help!
Comment #21
honza pobořil commented