- Issue created by @Kristen Pol
- πΊπΈUnited States Kristen Pol Santa Cruz, CA, USA
I missed an install step so those errors are gone now but getting:
"An unexpected error has occurred while fetching components."
and no components are showing up.
Error log:
Error: Call to a member function getRegion() on null in civictheme_preprocess_block__system_branding_block() (line 27 of /var/www/html/web/themes/contrib/demo_design_system/includes/system_branding.inc).
#0 [internal function]: civictheme_preprocess_block__system_branding_block() #1 /var/www/html/web/core/lib/Drupal/Core/Theme/ThemeManager.php(261): call_user_func_array() #2 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(446): Drupal\Core\Theme\ThemeManager->render() #3 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(203): Drupal\Core\Render\Renderer->doRender() #4 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(120): Drupal\Core\Render\Renderer->render() #5 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(593): Drupal\Core\Render\Renderer->Drupal\Core\Render\{closure}() #6 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(119): Drupal\Core\Render\Renderer->executeInRenderContext() #7 /var/www/html/web/modules/contrib/experience_builder/src/ClientSideRepresentation.php(52): Drupal\Core\Render\Renderer->renderInIsolation() #8 /var/www/html/web/modules/contrib/experience_builder/src/Controller/ApiConfigControllers.php(234): Drupal\experience_builder\ClientSideRepresentation->renderPreviewIfAny() #9 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(593): Drupal\experience_builder\Controller\ApiConfigControllers->Drupal\experience_builder\Controller\{closure}() #10 /var/www/html/web/modules/contrib/experience_builder/src/Controller/ApiConfigControllers.php(232): Drupal\Core\Render\Renderer->executeInRenderContext() #11 /var/www/html/web/modules/contrib/experience_builder/src/Controller/ApiConfigControllers.php(244): Drupal\experience_builder\Controller\ApiConfigControllers->Drupal\experience_builder\Controller\{closure}() #12 /var/www/html/web/modules/contrib/experience_builder/src/Controller/ApiConfigControllers.php(98): Drupal\experience_builder\Controller\ApiConfigControllers->normalize() #13 [internal function]: Drupal\experience_builder\Controller\ApiConfigControllers->list() #14 /var/www/html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array() #15 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(593): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #16 /var/www/html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(121): Drupal\Core\Render\Renderer->executeInRenderContext() #17 /var/www/html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() #18 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(183): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #19 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw() #20 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle() #21 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle() #22 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle() #23 /var/www/html/web/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle() #24 /var/www/html/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(116): Drupal\big_pipe\StackMiddleware\ContentLength->handle() #25 /var/www/html/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(90): Drupal\page_cache\StackMiddleware\PageCache->pass() #26 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle() #27 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() #28 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() #29 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle() #30 /var/www/html/web/core/lib/Drupal/Core/DrupalKernel.php(709): Drupal\Core\StackMiddleware\StackedHttpKernel->handle() #31 /var/www/html/web/index.php(19): Drupal\Core\DrupalKernel->handle() #32 {main}
- πΊπΈUnited States Kristen Pol Santa Cruz, CA, USA
Similar error for a different theme:
π Error: Call to a member function getRegion() on null in bootstrap5_preprocess_block() Fixed
- πΊπΈUnited States Kristen Pol Santa Cruz, CA, USA
Merged fix. I can use the components now.