Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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?
Comment | File | Size | Author |
---|---|---|---|
no ajax.png | 23.12 KB | deanloh |
Comments
Comment #1
Remon CreditAttribution: Remon commentedMake sure that you didn't download minified version. Hope this helps.
Comment #2
Remon CreditAttribution: Remon commentedComment #3
hellomobe CreditAttribution: hellomobe commentedI 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.
Comment #4
Remon CreditAttribution: Remon commentedplease try downloading js library using drush in latest dev. version.
Comment #5
Maitreya CreditAttribution: Maitreya commentedI dont (cant) have drush on that machine.
Any other way to get the correct js to load?
Comment #6
Remon CreditAttribution: Remon commented@Maitreya, just download it manually to views_infinite_scroll/js :)
Comment #7
rossmcdowell CreditAttribution: rossmcdowell commentedI 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.
Comment #8
gausarts CreditAttribution: gausarts commentedStrange. 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.
Comment #10
runzipel CreditAttribution: runzipel commentedfor 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.
Comment #11
drupal a11y CreditAttribution: drupal a11y commentedI guess the best place for the js is : sites/all/libraries/autopager/jquery.autopager-1.0.0.js
I use D7 !!!
Comment #12
carvalhar CreditAttribution: carvalhar commentedI'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.
Comment #13
noslokire CreditAttribution: noslokire commented#11 worked, agree with #12 entirely
Comment #14
akaita CreditAttribution: akaita commentedJust 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
Comment #15
John Carbone CreditAttribution: John Carbone commentedThanks 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
Comment #16
Yuri CreditAttribution: Yuri commentedWell 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.
Comment #17
sayansk CreditAttribution: sayansk commentedДолго мучался с этой ошибкой, меняя во Views страницу так и так... пока не решил тупо сохранить вьюху как есть, с ошибкой. После этого все встало на свои места :)
D7
Comment #18
drupalsteve CreditAttribution: drupalsteve commentedPlaced the file as #11 suggested, everything worked fine (I moved the file manually, no drush).
Comment #19
Po3t CreditAttribution: Po3t commentedI 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...
Comment #20
luco CreditAttribution: luco commented#11 should be incorporated into the documentation.
@Po3t, have you downloaded and activated the Libraries module?
Comment #21
Po3t CreditAttribution: Po3t commented@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.
Comment #22
Po3t CreditAttribution: Po3t commentedI'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.
Comment #23
Remon CreditAttribution: Remon commentedSorry 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
Comment #24
Po3t CreditAttribution: Po3t commentedThanks 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.
Comment #26
mErilainen CreditAttribution: mErilainen commentedThe 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.
Comment #27
mErilainen CreditAttribution: mErilainen commentedThere 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.
Comment #28
lpalgarvio CreditAttribution: lpalgarvio commentedneeds 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
Comment #29
pritamsarkar CreditAttribution: pritamsarkar commentedThanks a Ton friends :) Made my day !
Comment #30
mahipal46 CreditAttribution: mahipal46 commentedagree 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
Comment #31
abhinya CreditAttribution: abhinya commentedTried this this works as of now
Comment #32
jyotisankar CreditAttribution: jyotisankar commentedHi
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.
Comment #33
srikanth.g CreditAttribution: srikanth.g commentedHi 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 >>)
Comment #34
Anonymous (not verified) CreditAttribution: Anonymous as a volunteer commentedIMO #28 is the right way to do it and it works nicely. Thanks
Comment #35
stewest CreditAttribution: stewest at Amazee Labs commentedThe source for the jquery.autopager has changed to https://code.google.com/archive/p/jquery-autopager/downloads