Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
szczesuil CreditAttribution: szczesuil commentedThe error goes away when I change carousel_text to carousel_caption in line 238:
Comment #2
guardian87 CreditAttribution: guardian87 commentedConfirmed that #1 works!
Comment #3
WidgetsBurritos CreditAttribution: WidgetsBurritos commentedWorks for me as well.
Comment #4
gabrielmachadosantos CreditAttribution: gabrielmachadosantos at CI&T for Pfizer, Inc. commentedClosed as duplicated -> https://www.drupal.org/node/2059157#comment-10769726 (Patched and committed on 7.x-1.x-dev)
Comment #5
shobhit_juyal CreditAttribution: shobhit_juyal commented#1 works. Thank you.