I'm very certain that I did not turn on "Use AJAX" (see screenshot), I have also downloaded jquery.autopager-1.0.0.js to .../all/modules/views_infinite_scroll/js folder, but I got the error message that says "Autopager jquery plugin in not loaded". What have I missed?

CommentFileSizeAuthor
no ajax.png23.12 KBdeanloh
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Remon’s picture

Make sure that you didn't download minified version. Hope this helps.

Remon’s picture

Status: Active » Postponed (maintainer needs more info)
hellomobe’s picture

I am getting the same error. I have named the file jquery.autopager-1.0.0.js. Is this correct? The source is from the link provided on the module home page.

Remon’s picture

Status: Postponed (maintainer needs more info) » Fixed

please try downloading js library using drush in latest dev. version.

Maitreya’s picture

I dont (cant) have drush on that machine.
Any other way to get the correct js to load?

Remon’s picture

@Maitreya, just download it manually to views_infinite_scroll/js :)

rossmcdowell’s picture

I am having the same issue. I have the js file in the right place and named correctly. But I still get a message saying it is not loaded. I found that if I move the .js file into my root js folder and then load it through the .info file for my theme...then it loads.

gausarts’s picture

Strange. Same problem. Since I am sure that autopager is loaded and never use ajax, I have to disable both checks, and infinite scroll works fine.

Status: Fixed » Closed (fixed)

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

runzipel’s picture

for me it works, if i make a folder /sites/all/modules/views_infinite_scroll/js/js (2x js!!). you can see the error message for the "missing" .js file in the events log.

drupal a11y’s picture

I guess the best place for the js is : sites/all/libraries/autopager/jquery.autopager-1.0.0.js

I use D7 !!!

carvalhar’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Closed (fixed) » Active

I'm not using ajax, i download the non-minified version to sites\all\modules\views_infinite_scroll\js and i got the same error.

Placing the file as #11 pointed, everything worked fine (i moved the file manually, no drush).

I think the module page or a doc or readme should be updated.

thanks.

noslokire’s picture

#11 worked, agree with #12 entirely

akaita’s picture

Just a note: I found out that if another module loads jquery, there may appear incompatibilities.
In my case, I had to use jquery_update for loading jquery in drupal, and infinite_scroll worked. If I tried to load complete jquery from google (for example), infinite_scroll said it didn't find autopager.

I haven't dived into jquery, but my guess is that the error description is not completely accurate.
If you get "Autopager jquery plugin in not loaded", there are two possibilities:
--autopager was not found
--multiple copies of autopager where found, and it doesn't know which one to use

John Carbone’s picture

Thanks for the cool module, looks like it will come in handy in the future. Unfortunately I can't use it because "Views Infinite Scroll module can't handle more than one infinite view in the same page."

Anyway, here are the steps I needed to take to get it running before I hit that message in a popup. Hope this saves someone else some time. :)

Download this module at sites/all/modules/contrib/ and enable it
Download libraries module into sites/all/modules/
Create new directory sites/all/libraries/
Enable libraries module
Create new directory sites/all/libraries/autopager
drush dl-autopager
Move jquery.autopager-1.0.0.js to sites/all/libraries/autopager/
Create new directory at sites/all/modules/contrib/views_infinite_scroll/js
Move views_infinite_scroll.js to sites/all/modules/contrib/views_infinite_scroll/js

Yuri’s picture

Well that was very helpful, thank you John Carbone.
Now lets hope that a readme.txt will be included in this module and that this info will be part of it.

[edit] Can't get this module to work after all. Error went away but no infinite scrolling.

sayansk’s picture

Долго мучался с этой ошибкой, меняя во Views страницу так и так... пока не решил тупо сохранить вьюху как есть, с ошибкой. После этого все встало на свои места :)

D7

drupalsteve’s picture

Placed the file as #11 suggested, everything worked fine (I moved the file manually, no drush).

Po3t’s picture

I added the .js library to the libraries directory just like #11 said, but still no go. I get the error regardless of what I do. This seems like it would be a handy module if it would actually work...

luco’s picture

#11 should be incorporated into the documentation.

@Po3t, have you downloaded and activated the Libraries module?

Po3t’s picture

@luco - Yep. I've been using it for other modules as well (superfish and WYSIWYG, among others). The Libraries module is one I install with pretty much all of my Drupal installations.

Po3t’s picture

I'm currently out of town, but I'll be back after the 24th of April. I would be happy to walk you through my process of trying to get this module to work when I'm home again. I'd love to get it to work as I haven't found an effective Infinite Scrolling solution for Drupal 7 yet.

Remon’s picture

Category: support » bug
Status: Active » Fixed

Sorry guys for not replying since Feb last year.
Sooooo, after testing multiple cases (downloading via drush/manually and having the plugin in libraries/module) I found a buggy scenario.
If you have the plugin installed in module/js directory while Libraries module is installed, the plugin won't be loaded. That specific case is now fixed!

So please wait for the next dev tarball, download it, make sure that autopager plugin is installed either in libraries or module/js, clear the cache, and re-open the issue if it is still not loading :P

Po3t’s picture

Thanks for the update Remon! The latest release (April 23, 2012) works now as long as the autopager library is included in the module's /js (views_infinite_scroll/js) folder. It doesn't work if the library is in the sites/all/libraries/js/autopager directory though. Is there a different folder I should be putting it into? It will be annoying if we have to re-include the autopager library in the module's js folder every time the module is updated.

Status: Fixed » Closed (fixed)

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

mErilainen’s picture

Priority: Normal » Major
Status: Closed (fixed) » Needs work

The last message by Po3t was ignored and I cannot get this module working with the autopager js in either location, so I'm re-opening this issue.

mErilainen’s picture

Priority: Major » Normal
Status: Needs work » Closed (fixed)

There was a file reading permission problem on my setup. It seems that the file permissions have to be changed to give execute permission for "other" role.

lpalgarvio’s picture

needs better documentation

place the downloaded jquery.autopager-1.0.0.js file in
/sites/all/libraries/autopager

enable views 3.x
enable libraries (2.x preferably)
enable the module

set Infinite Scroll as the Pager in your view
disable use of AJAX in the view
save the view and test

pritamsarkar’s picture

Thanks a Ton friends :) Made my day !

mahipal46’s picture

agree with #24 put jquery.autopager-1.0.0.js in module/views_infinite_scroll/js in require autopager library in libraries folder then cahce clear.it works fine.also in view ajax use : no

abhinya’s picture

Posted by mori on March 10, 2011 at 2:35pm
I guess the best place for the js is : sites/all/libraries/autopager/jquery.autopager-1.0.0.js
I use D7 !!!

Tried this this works as of now

jyotisankar’s picture

Issue summary: View changes

Hi
Only thing you should make sure is that-
1. You have used the views 3 module
2. Now download jquery's autopager from "http://jquery-autopager.googlecode.com/files/jquery.autopager-1.0.0.js" and keep it inside sites/all/module/views_infinite_scroll/js
3. Make sure "Use Ajax" is in No mode of your view that you are creating to use infinite scroll.
4. Clean the cache using drush

Its all done, hope it would help you resolving your issue.

srikanth.g’s picture

Hi jyotisankar,thanks for the nice steps.
jquery.autopager-1.0.0.js file can be loaded from two paths.
If the js file is NOT found in the path sites\all\modules\views_infinite_scroll\js OR sites\all\libraries\autopager then "Autopager jquery plugin in not loaded" error popup comes while view configuring and view page works with normal paging(<< 2 of 3 >>)

Anonymous’s picture

IMO #28 is the right way to do it and it works nicely. Thanks

stewest’s picture

The source for the jquery.autopager has changed to https://code.google.com/archive/p/jquery-autopager/downloads