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

scott859 created an issue. See original summary.

scott859’s picture

I 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

  • voleger committed 9046405 on 7.x-2.x
    Issue #2762979 by voleger: Notice: Undefined index: caption in...
voleger’s picture

Version: 7.x-2.6 » 7.x-2.x-dev
Status: Active » Fixed

Changed behavior to "hidden" if caption not passed into the theme function.
Fixed, pushed to the 7.x-2.x-dev

Status: Fixed » Closed (fixed)

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