Clicking on the Gutenberg Cloud Configuration via /admin/config/gutenberg-cloud crashes the site with the famous "The website encountered an unexpected error. Please try again later." white screen. The log for the error gives the following
Error: Call to a member function getBody() on null in Drupal\gutenberg_cloud\Form\BlockManagerForm->buildForm() (line 45 of C:\Users\lamontagne\Documents\Web-Projects\wamp64\www\drupal-training\modules\contrib\gutenberg\modules\gutenberg_cloud\src\Form\BlockManagerForm.php) #0 [internal function]: Drupal\gutenberg_cloud\Form\BlockManagerForm->buildForm(Array, Object(Drupal\Core\Form\FormState)) #1 C:\Users\lamontagne\Documents\Web-Projects\wamp64\www\drupal-training\core\lib\Drupal\Core\Form\FormBuilder.php(518): call_user_func_array(Array, Array) #2 C:\Users\lamontagne\Documents\Web-Projects\wamp64\www\drupal-training\core\lib\Drupal\Core\Form\FormBuilder.php(275): Drupal\Core\Form\FormBuilder->retrieveForm('gutenberg_cloud...', Object(Drupal\Core\Form\FormState)) #3 C:\Users\lamontagne\Documents\Web-Projects\wamp64\www\drupal-training\core\lib\Drupal\Core\Controller\FormController.php(93): Drupal\Core\Form\FormBuilder->buildForm('gutenberg_cloud...', Object(Drupal\Core\Form\FormState)) #4 [internal function]: Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch)) #5 C:\Users\lamontagne\Documents\Web-Projects\wamp64\www\drupal-training\core\lib\Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array) #6 C:\Users\lamontagne\Documents\Web-Projects\wamp64\www\drupal-training\core\lib\Drupal\Core\Render\Renderer.php(582): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #7 C:\Users\lamontagne\Documents\Web-Projects\wamp64\www\drupal-training\core\lib\Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #8 C:\Users\lamontagne\Documents\Web-Projects\wamp64\www\drupal-training\core\lib\Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) #9 C:\Users\lamontagne\Documents\Web-Projects\wamp64\www\drupal-training\vendor\symfony\http-kernel\HttpKernel.php(151): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #10 C:\Users\lamontagne\Documents\Web-Projects\wamp64\www\drupal-training\vendor\symfony\http-kernel\HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #11 C:\Users\lamontagne\Documents\Web-Projects\wamp64\www\drupal-training\core\lib\Drupal\Core\StackMiddleware\Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #12 C:\Users\lamontagne\Documents\Web-Projects\wamp64\www\drupal-training\core\lib\Drupal\Core\StackMiddleware\KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #13 C:\Users\lamontagne\Documents\Web-Projects\wamp64\www\drupal-training\core\modules\page_cache\src\StackMiddleware\PageCache.php(99): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #14 C:\Users\lamontagne\Documents\Web-Projects\wamp64\www\drupal-training\core\modules\page_cache\src\StackMiddleware\PageCache.php(78): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #15 C:\Users\lamontagne\Documents\Web-Projects\wamp64\www\drupal-training\core\lib\Drupal\Core\StackMiddleware\ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #16 C:\Users\lamontagne\Documents\Web-Projects\wamp64\www\drupal-training\modules\contrib\devel\webprofiler\src\StackMiddleware\WebprofilerMiddleware.php(38): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #17 C:\Users\lamontagne\Documents\Web-Projects\wamp64\www\drupal-training\core\lib\Drupal\Core\StackMiddleware\NegotiationMiddleware.php(52): Drupal\webprofiler\StackMiddleware\WebprofilerMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #18 C:\Users\lamontagne\Documents\Web-Projects\wamp64\www\drupal-training\vendor\stack\builder\src\Stack\StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #19 C:\Users\lamontagne\Documents\Web-Projects\wamp64\www\drupal-training\core\lib\Drupal\Core\DrupalKernel.php(693): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #20 C:\Users\lamontagne\Documents\Web-Projects\wamp64\www\drupal-training\index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #21 {main}.

Comments

bajah1701 created an issue. See original summary.

sergiu stici’s picture

Status: Active » Needs review
StatusFileSize
new3.25 KB

Here is the patch. Please review.

bajah1701’s picture

StatusFileSize
new25.9 KB

The error disappeared but the page is empty. Not sure if that was the intended result.
Gutenberg Empty Config Page

bajah1701’s picture

I believe $blocks_json is returning false, hence why the form is not display. Also the EntityManagerInterface has been deprecated and needs to be replaced with EntityTypeManagerInterface.

martin_andersn’s picture

Status: Needs review » Reviewed & tested by the community

This issue is tested and with the newest version of core and modules it looks ol, please double check and recomment on this thread if problem presist on your end. Will mark this as reviewed by community.

best,

Martin Andersen

thorandre’s picture

Issue tags: +2.x-rc-blocker

Let's confirm if this issue is fixed in our 2.x-dev. Adding 2.x-rc-blocker as a tag for that.

bajah1701’s picture

I currently have version 1.11 and the issue no longer persist.

Thank you.

henrikakselsen’s picture

Status: Reviewed & tested by the community » Closed (outdated)

Discussed in meeting May 7th. Setting this to Closed outdated.

thorandre’s picture

Status: Closed (outdated) » Fixed
Issue tags: -2.x-rc-blocker

Cleanup.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.