Notice: Undefined index: image_field_caption in image_field_caption_field_diff_view_alter() (line 443 of /www/html/sites/all/modules/contrib/image_field_caption/image_field_caption.module).

Created on 30 August 2019, over 5 years ago
Updated 9 September 2024, 4 months ago

Hi,
When I preview a page with an image with no caption I get:

Notice: Undefined index: image_field_caption in image_field_caption_field_diff_view_alter() (line 443 of /www/html/sites/all/modules/contrib/image_field_caption/image_field_caption.module).

Is it possible to fix this with something like:

    if(!isset($item['image_field_caption']['value'])){$item['image_field_caption']['value']='';}
    $values[$delta][] = diff_normalise_text($item['image_field_caption']['value']);
  }
}
🐛 Bug report
Status

Closed: outdated

Version

2.3

Component

Code

Created by

🇬🇧United Kingdom StephenRobinson

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024