Error: Call to undefined method Drupal\layout_paragraphs\Element\LayoutParagraphsBuilder::buildControls()

Created on 13 December 2023, 7 months ago

Problem/Motivation

Please help! I cannot edit pages on our site.

I've been working on updating Drupal 9 and its modules to prepare for a Drupal 10 upgrade. Yesterday, I was troubleshooting an issue where I could not edit a custom paragraph, or rather the paragraph had no controls. That's another issue.

The big issue today is I can no longer edit any pages or nodes on my site due to an error.

The website encountered an unexpected error. Please try again later.
Error: Call to undefined method Drupal\layout_paragraphs\Element\LayoutParagraphsBuilder::buildControls() in Drupal\layout_paragraphs\Element\LayoutParagraphsBuilder->preRender() (line 161 of modules/contrib/layout_paragraphs/src/Element/LayoutParagraphsBuilder.php).
Drupal\layout_paragraphs\Element\LayoutParagraphsBuilder->preRender()
call_user_func_array() (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback() (Line: 788)
Drupal\Core\Render\Renderer->doCallback() (Line: 374)
Drupal\Core\Render\Renderer->doRender() (Line: 446)
Drupal\Core\Render\Renderer->doRender() (Line: 446)
Drupal\Core\Render\Renderer->doRender() (Line: 446)
Drupal\Core\Render\Renderer->doRender() (Line: 204)
Drupal\Core\Render\Renderer->render() (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter() (Line: 43)
__TwigTemplate_ac5184613c361f3baeba3dc5a51316bb->doDisplay() (Line: 405)
Twig\Template->displayWithErrorHandling() (Line: 378)
Twig\Template->display() (Line: 390)
Twig\Template->render() (Line: 55)
twig_render_template() (Line: 384)
Drupal\Core\Theme\ThemeManager->render() (Line: 433)
Drupal\Core\Render\Renderer->doRender() (Line: 204)
Drupal\Core\Render\Renderer->render() (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 243)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare() (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse() (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray()
call_user_func() (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 58)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 50)
Drupal\ban\BanMiddleware->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 23)
Stack\StackedHttpKernel->handle() (Line: 718)
Drupal\Core\DrupalKernel->handle() (Line: 19)

I'm using Drupal 9, with Layout Paragraphs Version: 2.0.4. Also Paragraphs Version: 8.x-1.16, Entity Reference Revisions Version: 8.x-1.10.

Steps to reproduce

I'm not sure how to reproduce. I have no patches in place for this module. I did require the most recent version of this module yesterday, but it was working all afternoon. Something happened overnight, whether it's cron or some cache cleared.

I'm hoping someone recognizes this error.

πŸ’¬ Support request
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States rraney

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

Comments & Activities

  • Issue created by @rraney
  • πŸ‡ΊπŸ‡ΈUnited States rraney

    I just downgraded to 2.0.3 and I can edit again. I'll need to resolve the issue if I'm going to use 2.0.4 apparently? I plan to upgrade to Drupal 10 tomorrow, so hoping this isn't a roadblock.

Production build 0.69.0 2024