The entry with storage type "overrides"

Created on 20 October 2022, over 2 years ago
Updated 3 March 2023, about 2 years ago

Problem/Motivation

The website encountered an unexpected error. Please try again later.

UnexpectedValueException: The entry with storage type "overrides" and ID "node.962.default.en" is invalid in Drupal\layout_builder\LayoutTempstoreRepository->get() (line 40 of core/modules/layout_builder/src/LayoutTempstoreRepository.php).
Drupal\layout_builder\Routing\LayoutTempstoreRouteEnhancer->enhance(Array, Object) (Line: 256)
Drupal\Core\Routing\Router->applyRouteEnhancers(Array, Object) (Line: 130)
Drupal\Core\Routing\Router->matchRequest(Object) (Line: 93)
Drupal\Core\Routing\AccessAwareRouter->matchRequest(Object) (Line: 151)
Drupal\Core\Routing\AccessAwareRouter->match('/node/962/layout') (Line: 138)
Drupal\user\Plugin\LanguageNegotiation\LanguageNegotiationUserAdmin->isAdminPath(Object) (Line: 104)
Drupal\user\Plugin\LanguageNegotiation\LanguageNegotiationUserAdmin->getLangcode(Object) (Line: 188)
Drupal\language\LanguageNegotiator->negotiateLanguage('language_interface', 'language-user-admin') (Line: 133)
Drupal\language\LanguageNegotiator->initializeType('language_interface') (Line: 218)
Drupal\language\ConfigurableLanguageManager->getCurrentLanguage() (Line: 92)
Drupal\language\EventSubscriber\LanguageRequestSubscriber->setLanguageOverrides() (Line: 74)
Drupal\language\EventSubscriber\LanguageRequestSubscriber->onKernelRequestLanguage(Object, 'kernel.request', Object)
call_user_func(Array, Object, 'kernel.request', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.request') (Line: 135)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 709)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Steps to reproduce

When opening a certain node layout in the default language (EN) gives this error.
This node already has layout translations.

🐛 Bug report
Status

Active

Version

2.13

Component

Code

Created by

🇧🇪Belgium Arnoldski

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇨🇦Canada megan_m

    I had this problem on a site without Layout Builder Asymmetric Translation so this doesn't belong with this module. I will move this to core/layout builder

    I'm not sure what's needed to reproduce this. I think it could have happened if editors closed a layout tab without saving or discarding the changes? I don't understand how tempstore works so that's just a guess.

    Based on this Stack Overflow post, I was able to go in to the key_value_expire table and delete the rows where collection was tempstore.shared.layout_builder.section_storage.overrides. All the nodes we were having trouble with were in there (22 rows).

    Sql query:

    delete from key_value_expire where collection like 'tempstore.shared.layout_builder.section_storage.overrides'

  • Status changed to Closed: won't fix over 1 year ago
  • 🇳🇱Netherlands askibinski

    This seems an issue with layout builder which indeed can occur, and one way to address this is being worked on in 🐛 Layout Builder cannot be uninstalled while overrides exist; no easy way to revert all overrides Needs work .

    Or you can indeed manually clear the tempstore entries like above.

  • 🇨🇭Switzerland handkerchief

    Same problem here, #2 fixed it! thx

Production build 0.71.5 2024