Attributes form modal not showing and 2 php errors fire

Created on 14 May 2023, over 1 year ago
Updated 25 May 2023, over 1 year ago

Problem/Motivation

  1. Warning: Undefined array key "attributes" in Drupal\views_attributes\Plugin\views\display_extender\AttributesDisplayExtender->buildOptionsForm() (line 64 of /var/www/html/web/modules/contrib/views_attributes/src/Plugin/views/display_extender/AttributesDisplayExtender.php)
  2. TypeError: uasort(): Argument #1 ($array) must be of type array, null given in uasort() (line 66 of /var/www/html/web/modules/contrib/views_attributes/src/Plugin/views/display_extender/AttributesDisplayExtender.php).

The configuration form modal doesn't show up, ie. module is unusable.

Steps to reproduce

  1. Clean install of D10 with ddev quickstart (Drupal 10.0.9 & PHP 8.1.13)
  2. ddev composer require drupal/views_attributes
  3. ddev drush en views_attributes
  4. Go to any existing view or create a new one
  5. click on Advanced > Attributes
  6. nothing shows up, 2 php errors fire.
🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇹Italy kopeboy Milan

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

Comments & Activities

Production build 0.71.5 2024