after adding a field inside a section in layout bulider and change the default to expert for example nothing appear
[Thu May 28 12:43:43.172331 2020] [php7:notice] [pid 108406] [client 127.0.0.1:53434] TypeError: Argument 1 passed to Drupal\\Core\\Render\\MainContent\\AjaxRenderer::renderResponse() must be of the type array, null given, called in /var/www/html/drupal/web/core/lib/Drupal/Core/Form/FormAjaxResponseBuilder.php on line 89 in /var/www/html/drupal/web/core/lib/Drupal/Core/Render/MainContent/AjaxRenderer.php on line 53 #0 /var/www/html/drupal/web/core/lib/Drupal/Core/Form/FormAjaxResponseBuilder.php(89): Drupal\\Core\\Render\\MainContent\\AjaxRenderer->renderResponse(NULL, Object(Symfony\\Component\\HttpFoundation\\Request), Object(Drupal\\Core\\Routing\\CurrentRouteMatch))\n#1 /var/www/html/drupal/web/core/lib/Drupal/Core/Form/EventSubscriber/FormAjaxSubscriber.php(109): Drupal\\Core\\Form\\FormAjaxResponseBuilder->buildResponse(Object(Symfony\\Component\\HttpFoundation\\Request), Array, Object(Drupal\\Core\\Form\\FormState), Array)\n#2 [internal function]: Drupal\\Core\\Form\\EventSubscriber\\FormAjaxSubscriber->onException(Object(Symfony\\Component\\HttpKernel\\Event\\GetResponseForExceptionEvent), 'kernel.exceptio...', Object(Drupal\\Component\\EventDispatcher\\ContainerAwareEventDispatcher))\n#3 /var/www/html/drupal/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func(Array, Object(Symfony\\Component\\HttpKernel\\Event\\GetResponseForExceptionEvent), 'kernel.exceptio...', Object(Drupal\\Component\\EventDispatcher\\ContainerAwareEventDispatcher))\n#4 /var/www/html/drupal/vendor/symfony/http-kernel/HttpKernel.php(227): Drupal\\Component\\EventDispatcher\\ContainerAwareEventDispatcher->dispatch('kernel.exceptio...', Object(Symfony\\Component\\HttpKernel\\Event\\GetResponseForExceptionEvent))\n#5 /var/www/html/drupal/vendor/symfony/http-kernel/HttpKernel.php(79): Symfony\\Component\\HttpKernel\\HttpKernel->handleException(Object(Drupal\\Core\\Form\\FormAjaxException), Object(Symfony\\Component\\HttpFoundation\\Request), 1)\n#6 /var/www/html/drupal/web/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\\Component\\HttpKernel\\HttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#7 /var/www/html/drupal/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\\Core\\StackMiddleware\\Session->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#8 /var/www/html/drupal/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\\Core\\StackMiddleware\\KernelPreHandle->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#9 /var/www/html/drupal/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\\page_cache\\StackMiddleware\\PageCache->pass(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#10 /var/www/html/drupal/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\\page_cache\\StackMiddleware\\PageCache->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#11 /var/www/html/drupal/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): Drupal\\Core\\StackMiddleware\\ReverseProxyMiddleware->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#12 /var/www/html/drupal/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\\Core\\StackMiddleware\\NegotiationMiddleware->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#13 /var/www/html/drupal/web/core/lib/Drupal/Core/DrupalKernel.php(708): Stack\\StackedHttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#14 /var/www/html/drupal/web/index.php(19): Drupal\\Core\\DrupalKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request))\n#15 {main}, referer: http://drupal.local/admin/structure/types/manage/article/display/full/layout
Comments
Comment #2
drclaw commentedWorking on a patch for this in #3164071: Add Field Template support for Layout Builder blocks
Comment #3
swentel commentedOk, let's close this one then in favor for that issue :)