Cannot access settings in Views Bootstrap formats - Ajax error

Created on 19 December 2023, over 1 year ago
Updated 20 December 2023, over 1 year ago

Problem/Motivation

I recently update our site to Drupal 10.1.7. We are using version 5.4.0 with a lot of Views using this module. Currently, I cannot access settings inside views for most of the formats provided by Views Bootstrap. When I click the Settings button under Format for Accordion, Tab or List Group, it won't let me access Settings.

When I click the button, an error appears on the page.

Oops, something went wrong. Check your browser's developer console for more details.

In Console, it shows an "Uncaught" Drupal.AjaxError. I'm attaching the message because it's gigantic (huge-ajax-error.txt).

The path involved: /admin/structure/views/ajax/display/document_block_view/block_42/style_options
General idea of warning: Undefined array key - buildOptionsForm() - Line 61 of ViewsBoostrapListGroup.php.

I don't know how to recreate this issue unless you are maybe using the exact same versions of Drupal and this module. I'm fairly certain this was not an issue in Drupal 9. Please advise on how to begin troubleshooting or any ideas on the problem.

πŸ’¬ Support request
Status

Active

Version

5.4

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States rraney

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

Comments & Activities

  • Issue created by @rraney
  • πŸ‡ΊπŸ‡ΈUnited States rraney

    I think might be an issue with a specific content types or fields. I found instances of being able to open Settings in other views using Bootstrap Tab. However, I created a brand new Media View using Accordion and I cannot access settings.

  • πŸ‡ΊπŸ‡ΈUnited States rraney

    Here's a little more info:

    • Using a child theme of Bootstrap Barrio 5.5.4.
    • jQuery in core appears to be v=3.7.0
    • ajax.js v=10.1.7

    In Admin, Bootstrap is not loading. I don't think the Admin controls have much to do with Bootstrap so I've left this out. However, I realized that if my site is using Bootstrap 5, I need to be using 5.5.0-alpha1. I just installed this module and it has no impact on the issue I'm having with Format/Settings using Accordion and List Group.

    I can now access Bootstrap Tab settings for some reason. Whatever this issue is, it's something that's common between Accordion and List Group having to do with Settings.

Production build 0.71.5 2024