I've been trying to get shadowbox and captions to work with Images with the Media module - making shadowbox available as a file display option throws the following error:

Notice: Undefined index: title in image_shadowbox_field_formatter_view() (line 183 of /[site]/sites/all/modules/shadowbox/image_shadowbox/image_shadowbox.module).
Notice: Undefined index: alt in image_shadowbox_field_formatter_view() (line 206 of /[site]/sites/all/modules/shadowbox/image_shadowbox/image_shadowbox.module).

Any ideas? Thank you for any guidance...

Comments

bcobin’s picture

Continued...

I should have mentioned this: title and alt fields are null strings when using Shadowbox as the image display, so it looks like either captions or Shadowbox for now, not both.

Any ideas? Thanks...

manfer’s picture

Status: Active » Postponed (maintainer needs more info)

I would need more precise details about versions used. I have tested drupal 7.21, shadowbox 7.x-4.x and media 7.x-1.3 (the stable version of media) and I'm not able to reproduce this issue.

Media module 7.x-1.3 doesn't provide any title or alt attributes for the images, it only allows to upload the image and nothing else. So the 'title' and 'alt' indexes has a value of NULL, but the indexes exists so that notice shouldn't appear at all. Maybe some older version of media or the new not stable version have this issue.

About using captions with media and shadowbox, it is not shadowbox the one that doesn't provide the option, it is media which doesn't.