Updating to 3.1.x breaks site completely

Created on 3 April 2025, 6 days ago

Problem/Motivation

I tried updating to 3.1 from 2.2. After updating and installing the navigation_plus, navigation, twig_events modules, I get this error on every node:

The website encountered an unexpected error. Try again later.

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "navigation_layout" plugin does not exist. Valid plugin IDs for Drupal\Core\Layout\LayoutPluginManager are: layout_onecol, with_sidebar in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).
Drupal\Core\Plugin\DefaultPluginManager->getDefinition() (Line: 16)
Drupal\Core\Plugin\Factory\ContainerFactory->createInstance() (Line: 83)
Drupal\Component\Plugin\PluginManagerBase->createInstance() (Line: 116)
Drupal\layout_builder\Section->getLayout() (Line: 93)
Drupal\layout_builder\Section->toRenderArray() (Line: 113)
Drupal\navigation\NavigationRenderer->buildNavigation() (Line: 54)
navigation_page_top() (Line: 352)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 395)
Drupal\Core\Extension\ModuleHandler->invokeAllWith() (Line: 349)
Drupal\Core\Render\MainContent\HtmlRenderer->buildPageTopAndBottom() (Line: 146)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse() (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray()
call_user_func() (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (Line: 186)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 53)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 741)
Drupal\Core\DrupalKernel->handle() (Line: 19)

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

3.1

Component

Code

Created by

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

Comments & Activities

  • Issue created by @solideogloria
  • πŸ‡ΊπŸ‡ΈUnited States tim bozeman

    Thank you for the report. I'm sorry that it failed, but I'm not surprised. I haven't upgraded from 2.x to 3.x myself πŸ˜”

    The 2.x branch of LB+ was developed on cores Toolbar module, when cores Navigation module was released we started using that which replaces the toolbar. When that happened the sidebars and UI elements moved out of LB+ and moved to a shared Navigation+ module. I would suggest checking out the +Suite recipe β†’ . There it has a curl command that can get a working LB+ up on D11. Maybe you can use that as an example and compare what's different between your site and that one.

    curl -sL 'https://git.drupalcode.org/project/plus_suite/-/raw/1.0.x/install.sh' -o install.sh; bash install.sh

  • I'm not on D11 yet. That's why I have to use 3.1 not 3.2

  • πŸ‡ΊπŸ‡ΈUnited States tim bozeman

    ya, that's okay. There's no difference to LB+ 3.1 and 3.2 other than some composer.json and .info file stuff. Using D11 as an example should still work file for 3.1

Production build 0.71.5 2024