Illegal offset type in isset or empty in template_preprocess_views_bootstrap_tab()

Created on 4 December 2023, over 1 year ago
Updated 11 May 2024, 11 months ago

Problem/Motivation

We are in Drupal 9 using 5.5.0-alpha1.

I had an issue crop up without doing any type of module updates or major changes. The only thing I can think of is my hosting company upgraded the particular release of PHP. We use Bootstrap Views Tabs and "Group By" a taxonomy field. It was working without issue for quite a while, but several of our views are crashing the page with this error.

TypeError: Illegal offset type in isset or empty in template_preprocess_views_bootstrap_tab() (line 230 of modules/contrib/views_bootstrap/views_bootstrap.theme.inc).

I previously got "grouping" to work by modifying code. I couldn't the patch here to work in my version of the module. https://www.drupal.org/project/views_bootstrap/issues/2948150 ✨ Views Bootstrap Tabs cannot be grouped RTBC

Steps to reproduce

Create a Bootstrap Tab View with media that has a taxonomy field. Use the taxonomy field to group by. Render the view on the frontend and see if the page crashes.

πŸ’¬ Support request
Status

Closed: works as designed

Version

5.5

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

    While this may be a real issue, it came about because we changed a content type field from "limited" to "unlimited". This caused several of our Bootstrap Tab views to break. The field that was being used to group the tabs had changed and apparently this module didn't like that. This is "resolved" unless you think there's an issue that needs to be addressed.

  • Status changed to Closed: works as designed 11 months ago
  • πŸ‡ΊπŸ‡ΈUnited States shelane

    User stated a change in the content field. View would need to be re-saved and config reexported.

Production build 0.71.5 2024