I have just upgraded to 1.10 and images within my content are broken (I also tried the latest dev).
E.g. I have an image "<img src="/sites/all/images/bb_small.png" class="bb_icon_small" alt="yes" />". Everything is fine during editing and in the preview (btw.: I had this content there way before the upgrade), but when I look at the page after the update to 1.10, instead of seeing the image, I see the exposed html code (note that the "<img" is missing):
rel="lightbox" src="/sites/all/images/bb_small.png" class="bb_icon_small" alt="yes" />
I had to go back to the last lightbox2 version that worked for me (incl. the security risk).
Please advise as soon as possible.
Comments
Comment #1
Qluripax commentedI also noticed that when upgrading 3 production sites yesterday. Unfortunately I reported that wrong in an issue for 6.x-1.9... (My bad).
Trying some diff:s between the versions (Stella has done a big work) I saw something interesting in lightbox2.module that I think is the problem:
At row 405 in lightbox2.module we have the following:
Looking at this:
The code is replacing 'img src' with only 'src'. Replaing that row with the same from prevous version would fix that problem.
Corrected code would be like:
At least that made me to put my production sites online again. :-)
Comment #2
chrisal commentedDue to the same bug I had to revert to 1.9 release.
Thanks for 1.11 !
Comment #3
Troodon commentedI noticed this too and after a bit of fiddling I got it images displaying again: check if you have the lightbox2 "g2 filter" input filter enabled and if you dont actually need it try disabling the "g2 filter" and see if images display again.
Comment #4
stella commentedFixed in today's dev release, or try the attached patch.
@chrisal - don't revert to 1.9, that's very insecure. Use the patch or the dev release for now, or just disable the G2 filter - you only need that filter if you require Gallery2 integration.
Comment #5
megic commentedThank you for addressing the issue so fast. :)
What are the differences between the released 1.10 and the latest dev (other than the bug fix)?
Comment #6
stella commentedjust a few other critical bug fixes. New release coming tomorrow though.
Comment #7
megic commentedok, I'll wait for 1.11 then ... thanks in advance.
Comment #9
Evariste-1 commentedI just upgraded to 1.11 from 1.9 and I also had to roll back to 1.9 to get lightbox to work again. I tried 1.10 with but that didn't work either. I'm also having these problems with images that are part of a content-type created with CCK and Image.
When I'm using 1.11, the parent anchor tag of these images in a view has no lightbox markup whatsoever. Only the href attribute. I tried disabling g2, but that didn't work. I do have a custom module that hooks on to _image_gallery and _image_display. But, I get the same result even if I disable my custom module.
I'm really not sure where to look at all. Any help/direction greatly appreciated.
Thanks in advance.
Comment #10
Evariste-1 commentedJust found out that the new version of Lightbox2 works with the other themes (Garland & Rootcandy), so now I am looking at my theme (that was built using Zen as a starting theme). Something I did is breaking Lightbox2 by preventing it from adding the necessary markup to the anchor tag.
Any ideas?
Comment #11
Evariste-1 commentedOK, I tried using the Zen theme and Lightbox2 will work if I am logged in, but won't work for the anonymous user.
Seems like it could be a permissions issue, but I tried granting anonymous both permissions for Lightbox2 (not a good idea to give them admin) and that didn't work either.
My image gallery is implemented through views.
Comment #12
Evariste-1 commentedFinally got it to work!
I gave permission to the anonymous user to "view original image" in the image module permissions, and that was it!