Notice: Undefined index: carousel_text in theme_bootstrap_carousel_field_formatter_default() (line 238 of .../sites/all/modules/bootstrap_carousel/bootstrap_carousel.module).

This error is being thrown for each slide I create with bootstrap_carousels.

/**
 * Renders the bootstrap_carousel formatter.
 */
function theme_bootstrap_carousel_field_formatter_default($item) {
 return "{$item['carousel_text']}: {$item['carousel_image']}";        //line 238
}

A similar issue was brought up here: https://www.drupal.org/node/2059157

Comments

szczesuil’s picture

Issue summary: View changes
Priority: Major » Normal
Status: Active » Needs review

The error goes away when I change carousel_text to carousel_caption in line 238:

/**
 * Renders the bootstrap_carousel formatter.
 */
function theme_bootstrap_carousel_field_formatter_default($item) {
  return "{$item['carousel_caption']}: {$item['carousel_image']}";
}
guardian87’s picture

Confirmed that #1 works!

WidgetsBurritos’s picture

Works for me as well.

gabrielmachadosantos’s picture

Version: 7.x-1.0 » 7.x-1.x-dev
Assigned: Unassigned » gabrielmachadosantos
Status: Needs review » Closed (duplicate)

Closed as duplicated -> https://www.drupal.org/node/2059157#comment-10769726 (Patched and committed on 7.x-1.x-dev)

shobhit_juyal’s picture

#1 works. Thank you.