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.
Hi there.
It seems that accordion plugin is broken. It throws this error message:
Notice: Undefined variable: titles in include() (line 14 of /sites/all/modules/views_bootstrap/templates/accordion/views-bootstrap-accordion-plugin-style.tpl.php).
Line 14: print $titles[$key]
Or perhaps I'm doing something wrong?
Comments
Comment #1
katasun CreditAttribution: katasun commentedConfirmation for this error message on version 7.31.
Solution:
You need to give a valid value to the views setting: format format: Bootstrap Accordion | settings
By default no value is selected, so there is no value in the variable and Drupal throws an error message. After you give a value in the settings eg title_field -> title, there is no error message anymore and the page is displayed with the accordion effect.
katasun
Comment #4
mrded CreditAttribution: mrded as a volunteer commentedFixed. Thanks!