I have a working view with infinite scroll 7.x-1.1 (also tested on the latest dev version) and Views 7.x-3.7 on Drupal 7.31.
I tried to update views to the latest views stable version (7.x-3.8) but the infinite scroll stopped working (also with the latest views dev version).
So it seems something changed in views that silently breaks views infinite scroll (no JS error or dblog error).

Have anyone encounter this ?

Comments

johnrosswvsu’s picture

Priority: Normal » Major

I can confirm this issue. Will try to look around also.

This is major since this is the main functionality of the module.

torgospizza’s picture

I'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.

coredumperror’s picture

Priority: Major » Critical

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

torgospizza’s picture

I'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.

sardbaba’s picture

Same 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

sam152’s picture

Assigned: Unassigned » sam152

Going to look into this problem.

amnesiac’s picture

I solved using a patch for Views PHP (7.x-1.0-alpha1 version): https://www.drupal.org/node/2123315#comment-9085183

sam152’s picture

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

andres.torres’s picture

I 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

tostinni’s picture

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

jon_stewart’s picture

Subscribing

onegreypaw’s picture

Confirming that Views PHP fix from #7 fixed my issue.

stevieb’s picture

I'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

stevieb’s picture

Patch here https://www.drupal.org/node/1806628 ... seems to have fixed my problem

tilottama11’s picture

Hi ,

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.

tilottama11’s picture

Please check configuration of your view where "Use AJAX" param should be set to "YES" as it fixed the issue in my view.

b.khouy’s picture

Thank you Tilottama you're suggestion at Comment #16 fixed the issue.

lubwn’s picture

I 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).

xoruna’s picture

I 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)

rohitrajputsahab’s picture

I'm also facing the same issue. Please help!

honza pobořil’s picture

Status: Active » Closed (outdated)