Pages uneditable from 500 error loading editor/content_block_types/load/webpage

Created on 22 December 2023, 12 months ago

Problem/Motivation

After upgrading a D9 site to D10, the front page (w/ Gutenberg experience) is not editable. and the console shows a 500 error loading editor/content_block_types/load/webpage. I'm using Twig_tweak.

Clicking on the URL in Console shows the results:

The website encountered an unexpected error. Please try again later.<br><br><em class="placeholder">TypeError</em>: array_keys(): Argument #1 ($array) must be of type array, null given in <em class="placeholder">array_keys()</em> (line <em class="placeholder">213</em> of <em class="placeholder">modules/contrib/gutenberg/src/Controller/BlocksController.php</em>). <pre class="backtrace">Drupal\gutenberg\Controller\BlocksController-&gt;loadContentBlockTypes()
call_user_func_array() (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber-&gt;Drupal\Core\EventSubscriber\{closure}() (Line: 592)
Drupal\Core\Render\Renderer-&gt;executeInRenderContext() (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber-&gt;wrapControllerExecutionInRenderContext() (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber-&gt;Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel-&gt;handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel-&gt;handle() (Line: 58)
Drupal\Core\StackMiddleware\Session-&gt;handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle-&gt;handle() (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache-&gt;pass() (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache-&gt;handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware-&gt;handle() (Line: 142)
Drupal\cloudflare\CloudFlareMiddleware-&gt;handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware-&gt;handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel-&gt;handle() (Line: 704)
Drupal\Core\DrupalKernel-&gt;handle() (Line: 19)
</pre>

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ’¬ Support request
Status

Needs review

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States timkroehler

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

Comments & Activities

Production build 0.71.5 2024