Undefined index: info in ColumnSelector.php on line 137

Created on 18 July 2023, over 1 year ago
Updated 2 January 2024, 11 months ago

Using Flexible Views to provide flexible columns and filters on a view with a number of relationships and a data export View attached.

The View works fine, but the data export fails, with an "Undefined index" message in the log. Full message is:

Undefined index: info in /var/www/html/web/modules/composer/flexible_views/src/Plugin/views/filter/ColumnSelector.php on line 137

Which relates to the following:

$fields = $form_state->getStorage()['view']->style_plugin->options['info'];

Amending to:

if (isset($form_state->getStorage()['view']->style_plugin->options['info'])) {
  $fields = $form_state->getStorage()['view']->style_plugin->options['info'];
}

Seems to resolve the issue.

🐛 Bug report
Status

Fixed

Version

2.1

Component

Code

Created by

🇬🇧United Kingdom Leo Pitt

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

Comments & Activities

Production build 0.71.5 2024