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

katasun’s picture

Version: 7.x-3.x-dev » 7.x-3.1

Confirmation 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

  • mrded committed 54ee1a1 on 7.x-3.x
    Issue #2363967: Undefined variable: titles in include() - Accordion...

  • mrded committed dc127be on 7.x-2.x
    Issue #2363967: Undefined variable: titles in include() - Accordion...
mrded’s picture

Version: 7.x-3.1 » 7.x-3.x-dev
Status: Active » Fixed

Fixed. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.