Hello, I've encountered an error while attempting to incorporate Layout Builder Restrictions module to only show PDB Vue.JS blocks in the 'Add Block' UI.

I get the following error (below) while attempting to save my restrictions. It is due to the fact that the name in the pdb_vue.info.yml contains a dot in it.

There is a similar issue with another module that resolved this issue by removing the dot (https://www.drupal.org/project/toc_js/issues/3056169)

The website encountered an unexpected error. Please try again later.</br></br><em class="placeholder">Drupal\Core\Config\ConfigValueException</em>: PDB Vue.js key contains a dot which is not supported. in <em class="placeholder">Drupal\Core\Config\ConfigBase-&gt;validateKeys()</em> (line <em class="placeholder">211</em> of <em class="placeholder">core/lib/Drupal/Core/Config/ConfigBase.php</em>). <pre class="backtrace">Drupal\Core\Config\ConfigBase-&gt;validateKeys(Array) (Line: 214)
Drupal\Core\Config\ConfigBase-&gt;validateKeys(Array) (Line: 214)
Drupal\Core\Config\ConfigBase-&gt;validateKeys(Array) (Line: 214)
Drupal\Core\Config\ConfigBase-&gt;validateKeys(Array) (Line: 161)
Drupal\Core\Config\ConfigBase-&gt;setData(Array) (Line: 107)
Drupal\Core\Config\Config-&gt;setData(Array) (Line: 283)
Drupal\Core\Config\Entity\ConfigEntityStorage-&gt;doSave(&#039;node.bento.default&#039;, Object) (Line: 449)
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)
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_view_display_edit_form&#039;, Array, Object) (Line: 319)
Drupal\Core\Form\FormBuilder-&gt;buildForm(&#039;entity_view_display_edit_form&#039;, 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: 50)
Drupal\ban\BanMiddleware-&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>
CommentFileSizeAuthor
#5 3089496-5.patch860 bytesyogen.prasad
#3 3089496-3.patch295 bytesyogen.prasad

Comments

blampewpew created an issue. See original summary.

yogen.prasad’s picture

Assigned: Unassigned » yogen.prasad
yogen.prasad’s picture

Assigned: yogen.prasad » Unassigned
Status: Active » Needs review
StatusFileSize
new295 bytes

Status: Needs review » Needs work

The last submitted patch, 3: 3089496-3.patch, failed testing. View results

yogen.prasad’s picture

Status: Needs work » Needs review
StatusFileSize
new860 bytes

segovia94’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.