Greetings,
I have a view where I am using a thumbnail to link to the original image via Lightbox.
I am working with a custom Bootstrap theme and initially had Lightbox2 7.x-1.0-beta1 installed. When I developed the Bootstrap theme this version of Lightbox2 threw errors in the javascript console and stopped working (It was working with the previous, older Zen theme. I believe it was the jQuery version causing the issues). Upgrading to Lightbox2 7.x-2.6 solved the those errors and Liightbox2 is working again but I am receiving the following error on the page where the thumbnail is displayed:
Notice: Undefined index: caption in theme_lightbox2_image() (line 30 [path to site] /sites/all/modules/lightbox2/lightbox2.formatter.inc).
If anyone can give me some insight into this I would appreciate it.
Thanks in advance.
Scott
Comments
Comment #2
scott859 CreditAttribution: scott859 commentedI just solved this issue by going to the config page at: admin/config/user-interface/lightbox2 and deselecting the option "Show image caption". I wasn't displaying the image caption so I had no need for it. I cleared the cache and the error is no longer.
I hope this helps someone with a similar issue.
Scott
Comment #4
volegerChanged behavior to "hidden" if caption not passed into the theme function.
Fixed, pushed to the 7.x-2.x-dev