🇨🇦Canada @slideaway

Account created on 21 November 2007, about 17 years ago
#

Recent comments

🇨🇦Canada slideaway

I am seeing the same error using Drupal 10.3.6

Message Drupal\Component\Plugin\Exception\ContextException: The entity context is not a valid context. in Drupal\layout_builder\Plugin\SectionStorage\SectionStorageBase->getContextDefinition() (line 150 of /code/web/core/lib/Drupal/Core/Plugin/ContextAwarePluginTrait.php).
Severity Error
Operations
Backtrace

#0 /code/web/core/lib/Drupal/Core/Plugin/ContextAwarePluginTrait.php(51): Drupal\layout_builder\Plugin\SectionStorage\SectionStorageBase->getContextDefinition('entity')
#1 /code/web/core/lib/Drupal/Core/Plugin/ContextAwarePluginTrait.php(82): Drupal\layout_builder\Plugin\SectionStorage\SectionStorageBase->getContext('entity')
#2 /code/web/modules/contrib/section_library/src/Form/AddSectionToLibraryForm.php(149): Drupal\layout_builder\Plugin\SectionStorage\SectionStorageBase->getContextValue('entity')
#3 [internal function]: Drupal\section_library\Form\AddSectionToLibraryForm->submitForm(Array, Object(Drupal\Core\Form\FormState))
#4 /code/web/core/lib/Drupal/Core/Form/FormSubmitter.php(129): call_user_func_array(Array, Array)
#5 /code/web/core/lib/Drupal/Core/Form/FormSubmitter.php(67): Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object(Drupal\Core\Form\FormState))
#6 /code/web/core/lib/Drupal/Core/Form/FormBuilder.php(597): Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object(Drupal\Core\Form\FormState))
#7 /code/web/core/lib/Drupal/Core/Form/FormBuilder.php(326): Drupal\Core\Form\FormBuilder->processForm('section_library...', Array, Object(Drupal\Core\Form\FormState))
#8 /code/web/core/lib/Drupal/Core/Controller/FormController.php(73): Drupal\Core\Form\FormBuilder->buildForm(Object(Drupal\section_library\Form\AddSectionToLibraryForm), Object(Drupal\Core\Form\FormState))
#9 [internal function]: Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch))
#10 /code/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
#11 /code/web/core/lib/Drupal/Core/Render/Renderer.php(638): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#12 /code/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(121): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#13 /code/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
#14 /code/vendor/symfony/http-kernel/HttpKernel.php(181): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#15 /code/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#16 /code/web/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#17 /code/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#18 /code/web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#19 /code/web/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#20 /code/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#21 /code/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#22 /code/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#23 /code/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#24 /code/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#25 /code/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#26 /code/web/core/lib/Drupal/Core/DrupalKernel.php(741): Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#27 /code/web/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#28 {main}

🇨🇦Canada slideaway

I was able to successfully add the patch and got things working again, thanks for aiming me in the right direction @hydra.

And thank you @carolpettirossi, I didn't actually know that was the old approach versus the new preferred way. I'd just been adding them to my composer.json using composer-patches from support threads like this, so I was unfamiliar with how to do it the way Hydra had mentioned.

🇨🇦Canada slideaway

@hydra Could you clarify what I need to do to install this fix? I've never installed a fix like this and haven't had any luck trying to implement it.

🇨🇦Canada slideaway

I found that @ds.ds_block_field_entity_context:block_content was being referenced in a view config file that wasn't even really being used, but it caused my whole site to lock up. Not sure if that's a bug onto itself, but it seemed to be rather unforgiving as far an error.

In the end the reason I wasn't finding 'ds.ds_block_field_entity_context' when I searched my codebase was because the /config files were in my gitignore and I didn't really Sublime Text was excluding search results based on my gitignore. Found it using the macOS Spotlight search instead. Thanks for the help!

🇨🇦Canada slideaway

I've run drush cr and drush updb about 1000 times trying to fix this. That is not the issue.

🇨🇦Canada slideaway

I've been banging my head off the wall for 2 days with getting ddev to work and this was it. This was my first time installing Drupal locally and I just couldn't figure out why it wouldn't find the twig templates. Thank you so much!

Production build 0.71.5 2024