Closed (fixed)
Project:
Lightbox2
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Sep 2011 at 06:45 UTC
Updated:
28 Dec 2011 at 02:55 UTC
Jump to comment: Most recent file
Comments
Comment #1
yukare commentedI know the error, it breaks all ajax requests, not only in views, but in all site.
The fix is simple, and i have it, replace the function lightbox2_init with this:
It do not load the javascript files from lightbox when we have a ajax request.
I do not commit this because this line:
This header is used by jquery with a specific value, so i must test for this value, and not only for the header.
Please, make this change and tell if it fixes the error for you, i will work on a better fix for this.
Comment #2
deaconzero commentedThis didn't fix the problem, but thank you for trying. Please let me know if you come across anything else. Thanks.
- Nick
Comment #3
spomerg commentedI am having this same problem as well. It's doing it on two separate D7 instances. When I disable the Lightbox2 module, it goes away.
Comment #4
yukare commentedMaybe disabling lightbox2 on all admin page could be a solution, or do you think that we need lightbox2 on admim pages ?
Comment #5
yukare commentedOn admin/config/user-interface/lightbox2/general , in "Page specific lightbox2 settings", select "Load on every page except the listed pages." and in the box put "admin/*".
This is not a real fix, but one temporary, sorry by this. And my try at #1 is wrong, so use this and not #1.
Comment #6
alexandreracine commentedIt's not related to views, since that module is not installed on my drupal. On the screenshot below, if I use something else than "image" for the display type, I get the error "An error occurred while attempting to process /system/ajax: iterator is undefined".
Was that not happening before this last commit? Why?
Comment #7
alexandreracine commented#5 works, thanks by the way.
Comment #8
spomerg commentedThanks for the workaround (#5); it is very much appreciated.
Comment #9
yukare commentedNew try: on lightbox2.module, around line 788 there is these two lines
Add a // before it to comment, it will fix the views issue, and i do not think it breaks anything on lightbox. I will commit this soon.
Comment #10
alexandreracine commentedAnother place where this is affecting, if I have some images in my node, and try to delete one I get this message...
"An error occurred while attempting to process /file/ajax/field_image/und/form-PjLChzOKSO-GCQ9d8ZaraRxL5ZapBAiCu7Cyg3tlAS4: iterator is undefined"
Comment #11
13rac1 commentedSubscribe. I almost want to upgrade this to critical, since it breaks all AJAX requests.
Comment #12
yukare commentedI have commited a fix for it, please test it and reopen this if you still have the problem. I have it working on my personal site and it do not break anything on my "test" page for lightbox(http://www.jaguaribe.net/modulos/comunidade/exibicao-de-conteudo/lightbox-2) and fixes the issue with views and other ajax/javascript bugs.
Once i make the views work with lightbox i will make a beta release, and thanks to all testing the dev version.
Comment #13
mvuijlst commentedFixes the issues I had, thanks.
Comment #14
astutonetHello
I'm facing a problem that's related to this issue.
I can not edit or create views on a website. When I try to do it, I get the following message:
I reported the problem to the developers of that module (http://drupal.org/node/1085464#comment-5286542), but I was told that probably the problem must be related to javascript.
That's when I deleted all the messages of the dblog and tried to run the operations again.
The dblog recorded the messages that is in the attached image.
Before cleaning the registry of dblog, there were many records of the lightbox and it is no coincidence that the lightbox isn't working.
Any ideas?
Thank you.
Comment #15
astutonetI believe this information is important:
After some testing, I found that to I get to use the views module I should disable the use of jQuery and jQuery UI CDN in the performance page (admin/config/development/performance), losing some original features.
Comment #16
yukare commented#14 May be some other module make this, are you sure that all the lightbox files are in the correct place? Maybe a error in uploading the files.
#15 I do not have this setting, so which module provides it?
Comment #17
astutonet#14 In relation to the views module, I suspected that problems were related to three modules: Lightbox2, jQuery Update and Ajax System. I discovered that the problem relates to the jQuery Update module (See this issue: http://drupal.org/node/1380370). As the module is no longer necessary, I just uninstalled it and everything returned to normal.
#15 the features jQuery and jQuery UI CDNI in the page of performance were provided by the jQuery Update module, which has been uninstalled, as above.
I reviewed the installation of Lightbox through the readme.txt file. I was using the beta 1 version. There are no difficulties during the installation. I discovered it was missing the folder "js" and all its contents inside the facility. So the resources didn't work.
There was just upgrade and everything went back to work again.
Thank you.
Comment #18
yukare commentedSince everything is working as said in #17, i am closing this again. Please reopen if you still have this issue.