- Enable layout_builder
- Go to /admin/config/content/formats/manage/basic_html
- (Select Advanced Insert View), see #2
- See WSOD with error below
Error: Call to undefined method Drupal\Core\Config\Schema\Undefined::getIterator() in Drupal\Core\Entity\Plugin\DataType\ConfigEntityAdapter->getIterator() (line 74 of /home/drh2r/www/core/lib/Drupal/Core/Entity/Plugin/DataType/ConfigEntityAdapter.php) #0 /home/drh2r/www/core/lib/Drupal/Core/TypedData/Validation/RecursiveContextualValidator.php(152): Drupal\Core\Entity\Plugin\DataType\ConfigEntityAdapter->getIterator() #1 /home/drh2r/www/core/lib/Drupal/Core/TypedData/Validation/RecursiveContextualValidator.php(99): Drupal\Core\TypedData\Validation\RecursiveContextualValidator->validateNode(Object(Drupal\Core\Entity\Plugin\DataType\ConfigEntityAdapter), Array, true) #2 /home/drh2r/www/core/lib/Drupal/Core/TypedData/Validation/RecursiveValidator.php(90): Drupal\Core\TypedData\Validation\RecursiveContextualValidator->validate(Object(Drupal\Core\Entity\Plugin\DataType\ConfigEntityAdapter), Array, NULL) #3 /home/drh2r/www/core/lib/Drupal/Core/Plugin/Context/ContextDefinition.php(372): Drupal\Core\TypedData\Validation\RecursiveValidator->validate(Object(Drupal\Core\Entity\Plugin\DataType\ConfigEntityAdapter), Array) #4 /home/drh2r/www/core/lib/Drupal/Core/Plugin/Context/ContextHandler.php(77): Drupal\Core\Plugin\Context\ContextDefinition->isSatisfiedBy(Object(Drupal\Core\Plugin\Context\EntityContext)) #5 [internal function]: Drupal\Core\Plugin\Context\ContextHandler->Drupal\Core\Plugin\Context\{closure}(Object(Drupal\Core\Plugin\Context\EntityContext)) #6 /home/drh2r/www/core/lib/Drupal/Core/Plugin/Context/ContextHandler.php(78): array_filter(Array, Object(Closure)) #7 /home/drh2r/www/core/lib/Drupal/Core/Plugin/Context/ContextHandler.php(65): Drupal\Core\Plugin\Context\ContextHandler->getMatchingContexts(Array, Object(Drupal\Core\Plugin\Context\ContextDefinition)) #8 /home/drh2r/www/core/lib/Drupal/Core/Plugin/Context/ContextHandler.php(31): Drupal\Core\Plugin\Context\ContextHandler->checkRequirements(Array, Array) #9 [internal function]: Drupal\Core\Plugin\Context\ContextHandler->Drupal\Core\Plugin\Context\{closure}(Object(Drupal\layout_builder\SectionStorage\SectionStorageDefinition)) #10 /home/drh2r/www/core/lib/Drupal/Core/Plugin/Context/ContextHandler.php(37): array_filter(Array, Object(Closure)) #11 /home/drh2r/www/core/modules/layout_builder/src/SectionStorage/SectionStorageManager.php(92): Drupal\Core\Plugin\Context\ContextHandler->filterPluginDefinitionsByContexts(Array, Array) #12 /home/drh2r/www/core/modules/layout_builder/src/LayoutEntityHelperTrait.php(123): Drupal\layout_builder\SectionStorage\SectionStorageManager->findByContext(Array, Object(Drupal\Core\Cache\CacheableMetadata)) #13 /home/drh2r/www/core/modules/layout_builder/src/LayoutEntityHelperTrait.php(38): Drupal\layout_builder\InlineBlockEntityOperations->getSectionStorageForEntity(Object(Drupal\filter\Entity\FilterFormat)) #14 /home/drh2r/www/core/modules/layout_builder/src/InlineBlockEntityOperations.php(169): Drupal\layout_builder\InlineBlockEntityOperations->isLayoutCompatibleEntity(Object(Drupal\filter\Entity\FilterFormat)) #15 /home/drh2r/www/core/modules/layout_builder/layout_builder.module(206): Drupal\layout_builder\InlineBlockEntityOperations->handlePreSave(Object(Drupal\filter\Entity\FilterFormat)) #16 [internal function]: layout_builder_entity_presave(Object(Drupal\filter\Entity\FilterFormat), 'filter_format') #17 /home/drh2r/www/core/lib/Drupal/Core/Extension/ModuleHandler.php(403): call_user_func_array('layout_builder_...', Array) #18 /home/drh2r/www/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php(349): Drupal\Core\Extension\ModuleHandler->invokeAll('entity_presave', Array) #19 /home/drh2r/www/core/lib/Drupal/Core/Entity/EntityStorageBase.php(492): Drupal\Core\Config\Entity\ConfigEntityStorage->invokeHook('presave', Object(Drupal\filter\Entity\FilterFormat)) #20 /home/drh2r/www/core/lib/Drupal/Core/Entity/EntityStorageBase.php(446): Drupal\Core\Entity\EntityStorageBase->doPreSave(Object(Drupal\filter\Entity\FilterFormat)) #21 /home/drh2r/www/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php(263): Drupal\Core\Entity\EntityStorageBase->save(Object(Drupal\filter\Entity\FilterFormat)) #22 /home/drh2r/www/core/lib/Drupal/Core/Entity/EntityBase.php(394): Drupal\Core\Config\Entity\ConfigEntityStorage->save(Object(Drupal\filter\Entity\FilterFormat)) #23 /home/drh2r/www/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php(613): Drupal\Core\Entity\EntityBase->save() #24 /home/drh2r/www/core/modules/filter/src/FilterFormatFormBase.php(214): Drupal\Core\Config\Entity\ConfigEntityBase->save() #25 /home/drh2r/www/core/modules/filter/src/FilterFormatEditForm.php(33): Drupal\filter\FilterFormatFormBase->submitForm(Array, Object(Drupal\Core\Form\FormState)) #26 [internal function]: Drupal\filter\FilterFormatEditForm->submitForm(Array, Object(Drupal\Core\Form\FormState)) #27 /home/drh2r/www/core/lib/Drupal/Core/Form/FormSubmitter.php(111): call_user_func_array(Array, Array) #28 /home/drh2r/www/core/lib/Drupal/Core/Form/FormSubmitter.php(51): Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object(Drupal\Core\Form\FormState)) #29 /home/drh2r/www/core/lib/Drupal/Core/Form/FormBuilder.php(590): Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object(Drupal\Core\Form\FormState)) #30 /home/drh2r/www/core/lib/Drupal/Core/Form/FormBuilder.php(319): Drupal\Core\Form\FormBuilder->processForm('filter_format_e...', Array, Object(Drupal\Core\Form\FormState)) #31 /home/drh2r/www/core/lib/Drupal/Core/Controller/FormController.php(93): Drupal\Core\Form\FormBuilder->buildForm('filter_format_e...', Object(Drupal\Core\Form\FormState)) #32 [internal function]: Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch)) #33 /home/drh2r/www/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array) #34 /home/drh2r/www/core/lib/Drupal/Core/Render/Renderer.php(582): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #35 /home/drh2r/www/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #36 /home/drh2r/www/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) #37 /home/drh2r/www/vendor/symfony/http-kernel/HttpKernel.php(151): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #38 /home/drh2r/www/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #39 /home/drh2r/www/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #40 /home/drh2r/www/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #41 /home/drh2r/www/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #42 /home/drh2r/www/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #43 /home/drh2r/www/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #44 /home/drh2r/www/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #45 /home/drh2r/www/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #46 /home/drh2r/www/core/lib/Drupal/Core/DrupalKernel.php(693): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #47 /home/drh2r/www/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #48 {main}.
Comments
Comment #2
JFH - 3DX internet commentedSame problem :
1- enable module : Advanced Insert View
2- Go to admin/config/content/formats/manage/full_html
3- i change nothing but when i save => error message below
The website encountered an unexpected error. Please try again later.
Error: Call to undefined method Drupal\Core\Config\Schema\Undefined::getIterator() in Drupal\Core\Entity\Plugin\DataType\ConfigEntityAdapter->getIterator() (line 74 of core/lib/Drupal/Core/Entity/Plugin/DataType/ConfigEntityAdapter.php).
Drupal\Core\Entity\Plugin\DataType\ConfigEntityAdapter->getIterator() (Line: 152)
Drupal\Core\TypedData\Validation\RecursiveContextualValidator->validateNode(Object, Array, 1) (Line: 99)
Drupal\Core\TypedData\Validation\RecursiveContextualValidator->validate(Object, Array, NULL) (Line: 90)
Drupal\Core\TypedData\Validation\RecursiveValidator->validate(Object, Array) (Line: 372)
Drupal\Core\Plugin\Context\ContextDefinition->isSatisfiedBy(Object) (Line: 77)
Drupal\Core\Plugin\Context\ContextHandler->Drupal\Core\Plugin\Context\{closure}(Object)
array_filter(Array, Object) (Line: 78)
Drupal\Core\Plugin\Context\ContextHandler->getMatchingContexts(Array, Object) (Line: 65)
Drupal\Core\Plugin\Context\ContextHandler->checkRequirements(Array, Array) (Line: 31)
Drupal\Core\Plugin\Context\ContextHandler->Drupal\Core\Plugin\Context\{closure}(Object)
array_filter(Array, Object) (Line: 37)
Drupal\Core\Plugin\Context\ContextHandler->filterPluginDefinitionsByContexts(Array, Array) (Line: 92)
Drupal\layout_builder\SectionStorage\SectionStorageManager->findByContext(Array, Object) (Line: 123)
Drupal\layout_builder\InlineBlockEntityOperations->getSectionStorageForEntity(Object) (Line: 38)
Drupal\layout_builder\InlineBlockEntityOperations->isLayoutCompatibleEntity(Object) (Line: 169)
Drupal\layout_builder\InlineBlockEntityOperations->handlePreSave(Object) (Line: 206)
layout_builder_entity_presave(Object, 'filter_format')
call_user_func_array('layout_builder_entity_presave', Array) (Line: 403)
Drupal\Core\Extension\ModuleHandler->invokeAll('entity_presave', Array) (Line: 349)
Drupal\Core\Config\Entity\ConfigEntityStorage->invokeHook('presave', Object) (Line: 492)
Drupal\Core\Entity\EntityStorageBase->doPreSave(Object) (Line: 446)
Drupal\Core\Entity\EntityStorageBase->save(Object) (Line: 263)
Drupal\Core\Config\Entity\ConfigEntityStorage->save(Object) (Line: 394)
Drupal\Core\Entity\EntityBase->save() (Line: 613)
Drupal\Core\Config\Entity\ConfigEntityBase->save() (Line: 214)
Drupal\filter\FilterFormatFormBase->submitForm(Array, Object) (Line: 33)
Drupal\filter\FilterFormatEditForm->submitForm(Array, Object)
call_user_func_array(Array, Array) (Line: 111)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 51)
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 590)
Drupal\Core\Form\FormBuilder->processForm('filter_format_edit_form', Array, Object) (Line: 319)
Drupal\Core\Form\FormBuilder->buildForm('filter_format_edit_form', Object) (Line: 93)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 582)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 151)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 693)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Comment #3
JFH - 3DX internet commentedsolutions :
https://www.drupal.org/project/context/issues/3043383
https://www.drupal.org/project/drupal/issues/3076464
Comment #4
anruetherWhich issue/patch in the mentioned issues helped you to resolve this?
Added issues as related.
Comment #5
a.dmitriiev commentedIn the related issues the problem was solved by adding config/schema to the module. Advanced insert view has it, so it is very strange. I will check.
Comment #6
a.dmitriiev commentedThat was really a stupid mistake made by me :( sorry, the schema file was named in the wrong way.
Now it is fixed, I am currently preparing the alpha5 release.
One more time, sorry.
Comment #8
a.dmitriiev commentedComment #9
anruetherGreat, thanks a lot. I can confirm this works for me.