Blocksettings with cTools

Created on 8 June 2023, over 1 year ago
Updated 9 June 2023, over 1 year ago

Hi,

This is a followup to Add sidebar options for Drupal block configuration Add sidebar options for Drupal block configuration Fixed , which is closed for 2 years.

So I tested the functionality and it seems like in combination with ctool the solution breaks.

Steps to reproduce:

  1. Fresh Drupal installation (10.0.9, PHP 8.1.16, MariaDB) with Gutenberg & ctools (with ctools blocks and views activated) installed
  2. Add taxonomy to contenttype
  3. Create block view, add exposed filter for the taxonomy, set allowed block settings to "Configure filters"
  4. Activate the block view in the gutenbergexperience of a contenttype
  5. Create node with gutenberg, add the block view, setup the settings
  6. Settings dont effect the block, after saving, the settings of the block wont open anymore and i get the following error:

TypeError: Drupal\Core\Form\FormState::setUserInput(): Argument #1 ($user_input) must be of type array, string given, called in /var/www/html/web/modules/contrib/ctools/modules/ctools_views/src/Plugin/Display/Block.php on line 243 in Drupal\Core\Form\FormState->setUserInput() (line 996 of /var/www/html/web/core/lib/Drupal/Core/Form/FormState.php).

I'm not sure if this is the right place to post. Any help is appreciated!


🐛 Bug report
Status

Active

Version

2.7

Component

Code

Created by

🇩🇪Germany AgathaCrystal Potsdam

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

Comments & Activities

Production build 0.71.5 2024