Can not add content to node using Gutenberg on existing Drupal 10

Created on 17 August 2024, 4 months ago
Updated 18 August 2024, 4 months ago

Error: Call to a member function filters() on null in Drupal\gutenberg\GutenbergElementInfoAlter::preRender() (line 25 of modules/contrib/gutenberg/src/GutenbergElementInfoAlter.php).

I have enable gutenberg editor on article content type in existing drupal 10 and when i visit /node/add/article it throws the above error.
  • The Text formats for gutenberg is also not created after insalling and enabling gutenberg in existing drupal 10
  • I have tried version stable version 3.0.4 and 8.x-2.11
  • on Fresh drupal installation the error does not appear

call_user_func_array(Array, Array) (Line: 113)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725 β†’ ', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 870)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 432)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 248)
Drupal\Core\Render\Renderer->render(Array) (Line: 475)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 84)
__TwigTemplate_a037ce5a105390db1585993ce22c1ba4->doDisplay(Array, Array) (Line: 360)
Twig\Template->yield(Array) (Line: 335)
Twig\Template->render(Array) (Line: 38)
Twig\TemplateWrapper->render(Array) (Line: 33)
twig_render_template('core/modules/system/templates/field-multiple-value-form.html.twig', Array) (Line: 348)
Drupal\Core\Theme\ThemeManager->render('field_multiple_value_form', Array) (Line: 491)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 504)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 504)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 248)
Drupal\Core\Render\Renderer->render(Array) (Line: 475)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 53)
__TwigTemplate_838206bf0be2e4baf92b4c548af8ee9f->doDisplay(Array, Array) (Line: 360)
Twig\Template->yield(Array) (Line: 335)
Twig\Template->render(Array) (Line: 38)
Twig\TemplateWrapper->render(Array) (Line: 33)
twig_render_template('core/modules/layout_discovery/layouts/onecol/layout--onecol.html.twig', Array) (Line: 348)
Drupal\Core\Theme\ThemeManager->render('layout__onecol', Array) (Line: 491)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 504)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 248)
Drupal\Core\Render\Renderer->render(Array) (Line: 475)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 74)
__TwigTemplate_c72cbbd6b0e9ba2be1904126bf56eb24->doDisplay(Array, Array) (Line: 360)
Twig\Template->yield(Array) (Line: 335)
Twig\Template->render(Array) (Line: 38)
Twig\TemplateWrapper->render(Array) (Line: 33)
twig_render_template('modules/contrib/gutenberg/templates/node-edit-form--gutenberg.html.twig', Array) (Line: 348)
Drupal\Core\Theme\ThemeManager->render('node_edit_form', Array) (Line: 491)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 248)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 238)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 638)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 231)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 128)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 186)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 53)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->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: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 741)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

πŸ› Bug report
Status

Postponed

Version

3.0

Component

Code

Created by

πŸ‡΅πŸ‡°Pakistan ahmad aziz

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

Merge Requests

Comments & Activities

  • Issue created by @ahmad aziz
  • Assigned to ahmad aziz
  • Merge request !191Update GutenbergElementInfoAlter.php β†’ (Open) created by ahmad aziz
  • Status changed to Needs review 4 months ago
  • Pipeline finished with Success
    4 months ago
    Total: 279s
    #256716
  • Issue was unassigned.
  • Status changed to Postponed 4 months ago
  • πŸ‡΅πŸ‡°Pakistan ahmad aziz

    the gutenberg.install file was not executing due to the missing contributed module that was removed without uninstalling it which caused the Gutenberg module not creating its configurations and tables.Thats why the editor was not opening and we were not able to save the node.
    when the missing module was removed from core.extension.yml file it started working fine. So that why i am postponing this issue.

  • Pipeline finished with Skipped
    4 months ago
    #259416
  • Pipeline finished with Success
    4 months ago
    Total: 325s
    #260806
  • Pipeline finished with Success
    4 months ago
    Total: 1494s
    #268116
  • Pipeline finished with Canceled
    4 months ago
    Total: 252s
    #268361
  • Pipeline finished with Failed
    4 months ago
    #268364
  • Pipeline finished with Success
    4 months ago
    Total: 88636s
    #268531
  • Pipeline finished with Success
    4 months ago
    Total: 430s
    #270783
  • Pipeline finished with Canceled
    4 months ago
    Total: 124s
    #273569
  • Pipeline finished with Canceled
    4 months ago
    Total: 111s
    #273571
  • Pipeline finished with Success
    4 months ago
    Total: 299s
    #273573
  • Pipeline finished with Skipped
    4 months ago
    #273592
  • πŸ‡ΊπŸ‡ΈUnited States bajah1701

    I too ran into this same issue and taking the time to deal with missing modules solved the issue. thanks for the step in the right direction.

  • Pipeline finished with Failed
    2 months ago
    Total: 202s
    #311138
  • Pipeline finished with Failed
    2 months ago
    Total: 274s
    #311143
  • Pipeline finished with Success
    2 months ago
    Total: 171s
    #311150
  • Pipeline finished with Success
    2 months ago
    Total: 174s
    #311173
  • Pipeline finished with Success
    2 months ago
    Total: 769s
    #312732
  • Pipeline finished with Failed
    19 days ago
    Total: 373s
    #361993
  • Pipeline finished with Failed
    19 days ago
    Total: 271s
    #362006
  • Pipeline finished with Failed
    19 days ago
    Total: 331s
    #362015
  • Pipeline finished with Success
    19 days ago
    Total: 209s
    #362019
  • Pipeline finished with Skipped
    19 days ago
    #362029
Production build 0.71.5 2024