- Issue created by @goose2000
- π©πͺGermany szeidler Berlin
Please see the chapter Layout Builder Support on the project page. You will need a patch for Layout Builder support.
What we can look into would be to be more failsafe if Layout Builder is just installed but not used with Block Breakpoint.
- Merge request !4Issue #3475840 by goose2000, szeidler: Do not fail if Layout Builder is enabled and Core patch was not applied β (Open) created by szeidler
- π©πͺGermany szeidler Berlin
@goose2000 Could you check out the merge request? It is not checking for the existence of the expected method from the Core patch, rather than firing it and failing if not applied.
- πΊπΈUnited States goose2000
Hi - will do, that will be more helpful / graceful. The patch is a bit complicated, I am still working on getting that in place.
- πΊπΈUnited States goose2000
I updated my project to Drupal 10.3.5 and then I was able too apply the patch: 3015152-213.patch.
Was able to install and get the module running (I am using Layout Builder in places) !Hope this core patch does get accepted into D11.
Thank you
- Status changed to Needs review
4 months ago 5:45pm 5 December 2024 - πΊπΈUnited States goose2000
I have updated Drupal drupal/core (10.3.5 => 10.3.10) And I have WSOD again.
Error: Call to undefined method Drupal\layout_builder\SectionComponent::getThirdPartySettings() in Drupal\block_breakpoint\EventSubscriber\BlockComponentRenderArray->onBuildRender() (line 34 of D:\wwwroot\pss-2024-dev\web\modules\contrib\block_breakpoint\src\EventSubscriber\BlockComponentRenderArray.php).
#0 [internal function]: Drupal\block_breakpoint\EventSubscriber\BlockComponentRenderArray->onBuildRender(Object(Drupal\layout_builder\Event\SectionComponentBuildRenderArrayEvent), 'section_compone...', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher)) #1 D:\wwwroot\pss-2024-dev\web\core\lib\Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher.php(111): call_user_func(Array, Object(Drupal\layout_builder\Event\SectionComponentBuildRenderArrayEvent), 'section_compone...', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher)) #2 D:\wwwroot\pss-2024-dev\web\core\modules\layout_builder\src\SectionComponent.php(90): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object(Drupal\layout_builder\Event\SectionComponentBuildRenderArrayEvent), 'section_compone...') #3 D:\wwwroot\pss-2024-dev\web\core\modules\layout_builder\src\Section.php(88): Drupal\layout_builder\SectionComponent->toRenderArray(Array, false) #4 D:\wwwroot\pss-2024-dev\web\core\modules\layout_builder\src\Entity\LayoutBuilderEntityViewDisplay.php(331): Drupal\layout_builder\Section->toRenderArray(Array) #5 D:\wwwroot\pss-2024-dev\web\core\modules\layout_builder\src\Entity\LayoutBuilderEntityViewDisplay.php(291): Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay->buildSections(Object(Drupal\node\Entity\Node)) #6 D:\wwwroot\pss-2024-dev\web\core\lib\Drupal\Core\Entity\EntityViewBuilder.php(340): Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay->buildMultiple(Array) #7 D:\wwwroot\pss-2024-dev\web\core\modules\node\src\NodeViewBuilder.php(24): Drupal\Core\Entity\EntityViewBuilder->buildComponents(Array, Array, Array, 'full') #8 D:\wwwroot\pss-2024-dev\web\core\lib\Drupal\Core\Entity\EntityViewBuilder.php(282): Drupal\node\NodeViewBuilder->buildComponents(Array, Array, Array, 'full') #9 D:\wwwroot\pss-2024-dev\web\core\lib\Drupal\Core\Entity\EntityViewBuilder.php(239): Drupal\Core\Entity\EntityViewBuilder->buildMultiple(Array) #10 [internal function]: Drupal\Core\Entity\EntityViewBuilder->build(Array) #11 D:\wwwroot\pss-2024-dev\web\core\lib\Drupal\Core\Security\DoTrustedCallbackTrait.php(113): call_user_func_array(Array, Array) #12 D:\wwwroot\pss-2024-dev\web\core\lib\Drupal\Core\Render\Renderer.php(870): Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_ren...', 'exception', 'Drupal\\Core\\Ren...') #13 D:\wwwroot\pss-2024-dev\web\core\lib\Drupal\Core\Render\Renderer.php(432): Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) #14 D:\wwwroot\pss-2024-dev\web\core\lib\Drupal\Core\Render\Renderer.php(248): Drupal\Core\Render\Renderer->doRender(Array, false) #15 D:\wwwroot\pss-2024-dev\web\core\lib\Drupal\Core\Render\MainContent\HtmlRenderer.php(238): Drupal\Core\Render\Renderer->render(Array, false) #16 D:\wwwroot\pss-2024-dev\web\core\lib\Drupal\Core\Render\Renderer.php(638): Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() #17 D:\wwwroot\pss-2024-dev\web\core\lib\Drupal\Core\Render\MainContent\HtmlRenderer.php(239): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #18 D:\wwwroot\pss-2024-dev\web\core\lib\Drupal\Core\Render\MainContent\HtmlRenderer.php(128): Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\CurrentRouteMatch)) #19 D:\wwwroot\pss-2024-dev\web\core\lib\Drupal\Core\EventSubscriber\MainContentViewSubscriber.php(90): Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\CurrentRouteMatch)) #20 [internal function]: Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher)) #21 D:\wwwroot\pss-2024-dev\web\core\lib\Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher.php(111): call_user_func(Array, Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher)) #22 D:\wwwroot\pss-2024-dev\vendor\symfony\http-kernel\HttpKernel.php(186): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view') #23 D:\wwwroot\pss-2024-dev\vendor\symfony\http-kernel\HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #24 D:\wwwroot\pss-2024-dev\web\core\lib\Drupal\Core\StackMiddleware\Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #25 D:\wwwroot\pss-2024-dev\web\core\lib\Drupal\Core\StackMiddleware\KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #26 D:\wwwroot\pss-2024-dev\web\core\lib\Drupal\Core\StackMiddleware\ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #27 D:\wwwroot\pss-2024-dev\web\core\modules\big_pipe\src\StackMiddleware\ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #28 D:\wwwroot\pss-2024-dev\web\core\modules\page_cache\src\StackMiddleware\PageCache.php(106): Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #29 D:\wwwroot\pss-2024-dev\web\core\modules\page_cache\src\StackMiddleware\PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #30 D:\wwwroot\pss-2024-dev\web\core\modules\ban\src\BanMiddleware.php(50): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #31 D:\wwwroot\pss-2024-dev\web\core\lib\Drupal\Core\StackMiddleware\ReverseProxyMiddleware.php(48): Drupal\ban\BanMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #32 D:\wwwroot\pss-2024-dev\web\core\lib\Drupal\Core\StackMiddleware\NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #33 D:\wwwroot\pss-2024-dev\web\core\lib\Drupal\Core\StackMiddleware\AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #34 D:\wwwroot\pss-2024-dev\web\core\lib\Drupal\Core\StackMiddleware\StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #35 D:\wwwroot\pss-2024-dev\web\core\lib\Drupal\Core\DrupalKernel.php(741): Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #36 D:\wwwroot\pss-2024-dev\web\index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #37 {main}
- πΊπΈUnited States goose2000
And applied the patch again
3015152-213.patch.and back in business. Just leaving this for myself and any other who comes this way.
- πΊπΈUnited States goose2000
Needed to upgrade to D10.4.3 (security release)
Error: Call to undefined method Drupal\layout_builder\SectionComponent::getThirdPartySettings() in Drupal\block_breakpoint\EventSubscriber\BlockComponentRenderArray->onBuildRender() (line 34 of D:\wwwroot\pss-2024-dev\web\modules\contrib\block_breakpoint\src\EventSubscriber\BlockComponentRenderArray.php).
I tries to apply the patch again but would not take this time on this core :
D:\wwwroot\pss-2024-dev\web>git apply 3015152-213.patch error: patch failed: core/misc/cspell/dictionary.txt:315 error: core/misc/cspell/dictionary.txt: patch does not apply
- π©πͺGermany szeidler Berlin
Yes. The cspell file is prone for conflicts. I'm using a customized version of the patch without cspell https://gist.github.com/szeidler/d951d18d4718112e7711973ed2de2469
I'm using it with Drupal 10.4