- πΊπΈUnited States jcandan
I found that this occurs because core's
layout_builder_blank
is passing anull
value.It might be considered a core bug.
- @jcandan opened merge request.
- Status changed to Needs review
over 1 year ago 2:05pm 28 April 2023 - πΊπΈUnited States jcandan
Implements core solution to remove blank layout from options.
- π«π·France musa.thomas France π«π·
still get this issue, the error removed with this
foreach ($this->regions as $plugin_id => $region) { $default_values = $this->options['layout_name'] == $plugin_id ? $this->options['layout_regions'][$plugin_id] : []; if (empty($region['regions'])) { continue; }
inside buildOptionsForm() method
- πΊπΈUnited States jcandan
Musa.thomas β , could you provide more context? What specific error are you getting with #3's commit (1280ddb0)? Why is your empty condition targeting the
['regions']
key? - π«π·France musa.thomas France π«π·
@jcandan i get the same error as report inside #1 also I saw that the checboxes form element use "
'#options' => $region['regions']," so iIjust add the empty condition to avoid error. I juste need to fix quickly i didn't debug deeply sorry. This error still exist making the usage of the module impossible :
An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /admin/structure/views/ajax/display/layout_content/block_1/style_options
StatusText: parsererror
ResponseText: TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in count() (line 64 of .../web/core/lib/Drupal/Core/Render/Element/Checkboxes.php)."is it related to this issue : https://www.drupal.org/project/drupal/issues/3252288 π Argument #1 ($value) must be of type Countable|array, null given in count() (line 57 of core/lib/Drupal/Core/Render/Element/Radios.php). Needs work