Work nicely with manual contextual argument field exposed by ctools_views

Created on 18 October 2019, about 5 years ago
Updated 28 March 2024, 9 months ago

ctools_views exposes settings from the view into the views placement context, e.g. layout builder or like here entity_extra_field block field type. When contextual arguments are enabled (needs patch from #2759445-37: How to manually pass an argument to a views block through interface β†’ ), we get a WSOD on saving the extra field form, see below.

Steps to reproduce

- Install ctools_views
- Install patch from #2759445-37: How to manually pass an argument to a views block through interface β†’
- Go to any views block and enable contextual filter to be exposed (middle column)
- Go to /admin/structure/types/manage/article/extra-fields/add
- Select field type block
- Choose views block from step 3
- Save field and see WSOD

The website encountered an unexpected error. Please try again later.</br></br><em class="placeholder">Drupal\Core\Config\UnsupportedDataTypeConfigException</em>: Invalid data type for config element entity_extra_field.extra_field.node.article.test:field_type_config.block_config.override.arguments.id.plugin in <em class="placeholder">Drupal\Core\Config\StorableConfigBase-&gt;validateValue()</em> (line <em class="placeholder">160</em> of <em class="placeholder">core/lib/Drupal/Core/Config/StorableConfigBase.php</em>). <pre class="backtrace">Drupal\Core\Config\StorableConfigBase-&gt;validateValue(&#039;field_type_config.block_config.override.arguments.id&#039;, Array) (Line: 156)
Drupal\Core\Config\StorableConfigBase-&gt;validateValue(&#039;field_type_config.block_config.override.arguments&#039;, Array) (Line: 156)
Drupal\Core\Config\StorableConfigBase-&gt;validateValue(&#039;field_type_config.block_config.override&#039;, Array) (Line: 184)
Drupal\Core\Config\StorableConfigBase-&gt;castValue(&#039;field_type_config.block_config.override&#039;, Array) (Line: 211)
Drupal\Core\Config\StorableConfigBase-&gt;castValue(&#039;field_type_config.block_config&#039;, Array) (Line: 211)
Drupal\Core\Config\StorableConfigBase-&gt;castValue(&#039;field_type_config&#039;, Array) (Line: 212)
Drupal\Core\Config\Config-&gt;save() (Line: 284)
Drupal\Core\Config\Entity\ConfigEntityStorage-&gt;doSave(&#039;node.article.test&#039;, Object) (Line: 457)
Drupal\Core\Entity\EntityStorageBase-&gt;save(Object) (Line: 263)
Drupal\Core\Config\Entity\ConfigEntityStorage-&gt;save(Object) (Line: 394)
Drupal\Core\Entity\EntityBase-&gt;save() (Line: 613)
Drupal\Core\Config\Entity\ConfigEntityBase-&gt;save() (Line: 296)
Drupal\Core\Entity\EntityForm-&gt;save(Array, Object) (Line: 261)
Drupal\entity_extra_field\Form\EntityExtraFieldForm-&gt;save(Array, Object)
call_user_func_array(Array, Array) (Line: 111)
Drupal\Core\Form\FormSubmitter-&gt;executeSubmitHandlers(Array, Object) (Line: 51)
Drupal\Core\Form\FormSubmitter-&gt;doSubmitForm(Array, Object) (Line: 590)
Drupal\Core\Form\FormBuilder-&gt;processForm(&#039;entity_extra_field_add_form&#039;, Array, Object) (Line: 319)
Drupal\Core\Form\FormBuilder-&gt;buildForm(Object, Object) (Line: 93)
Drupal\Core\Controller\FormController-&gt;getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber-&gt;Drupal\Core\EventSubscriber\{closure}() (Line: 582)
Drupal\Core\Render\Renderer-&gt;executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber-&gt;wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber-&gt;Drupal\Core\EventSubscriber\{closure}() (Line: 151)
Symfony\Component\HttpKernel\HttpKernel-&gt;handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel-&gt;handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session-&gt;handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle-&gt;handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache-&gt;pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache-&gt;handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware-&gt;handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware-&gt;handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel-&gt;handle(Object, 1, 1) (Line: 693)
Drupal\Core\DrupalKernel-&gt;handle(Object) (Line: 19)
</pre>
✨ Feature request
Status

Closed: outdated

Version

1.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany anruether Bonn

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024