Notice: Undefined index in template_preprocess_views_view_flexible_table() (line 260 of modules/contrib/flexible_views/flexible_views.theme.inc)

Created on 30 November 2023, 12 months ago
Updated 4 January 2024, 11 months ago

Problem/Motivation

Seeing these notices appearing many times on each page load:

Notice: Undefined index: role in template_preprocess_views_view_flexible_table() (line 260 of modules/contrib/flexible_views/flexible_views.theme.inc).

Notice: Trying to get property 'options' of non-object in template_preprocess_views_view_flexible_table() (line 260 of modules/contrib/flexible_views/flexible_views.theme.inc)

Notice: Trying to access array offset on value of type null in template_preprocess_views_view_flexible_table() (line 260 of modules/contrib/flexible_views/flexible_views.theme.inc).

Steps to reproduce

  1. Create a user listing using Flexible Table Style, Visible Column Selector Filter, and Manual selection exposed form style.
  2. Add a filter for User role, expose it, select "One of", select a sub-set of the Roles

Proposed resolution

Small code fix. Patch to follow

🐛 Bug report
Status

Fixed

Version

2.1

Component

Code

Created by

🇬🇧United Kingdom jamsilver West Midlands, UK

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

Comments & Activities

Production build 0.71.5 2024