Hi guys, i upgraded from 8.x-2.6 to 8.x.3.0-beta because the new core version require it, i know it's a beta and is suposed to broke, but the new core version requires it(in the 2.6 my fields was missing :P) and the new beta version broke my site, the error on php is:

Uncaught PHP Exception Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: "You have requested a non-existent service "plugin.manager.core.layout". Did you mean one of these: "plugin.manager.condition", "plugin.manager.views.sort", "plugin.manager.ds.field.layout"?" at /home/ubuntu/www/siteux/core/lib/Drupal/Component/DependencyInjection/Container.php line 157

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

thiagomoraesp created an issue. See original summary.

aspilicious’s picture

You need to run update.php and clear your caches.

maxilein’s picture

Got an error, too - using todays dev version "The website encountered an unexpected error. Please try again later."
Right after flushing all caches - even multiple times...

Apache error.log on D8.3 with DS 8.3

Symfony\\Component\\DependencyInjection\\Exception\\ServiceNotFoundException: You have requested a non-existent service "plugin.manager.core.layout". in /site/vendor/symfony/dependency-injection/ContainerBuilder.php on line 816 #0 /site/vendor/symfony/dependency-injection/ContainerBuilder.php(456): Symfony\\Component\\DependencyInjection\\ContainerBuilder->getDefinition('plugin.manager....')\n#1 /site/core/lib/Drupal.php(158): Symfony\\Component\\DependencyInjection\\ContainerBuilder->get('plugin.manager....')\n#2 /site/modules/ds/src/Ds.php(93): Drupal::service('plugin.manager....')\n#3 /site/modules/ds/ds.module(77): Drupal\\ds\\Ds::getLayouts()\n#4 /site/core/lib/Drupal/Core/Extension/ModuleHandler.php(501): ds_theme_registry_alter(Array, NULL, NULL)\n#5 /site/core/lib/Drupal/Core/Theme/Registry.php(365): Drupal\\Core\\Extension\\ModuleHandler->alter('theme_registry', Array)\n#6 /site/core/lib/Drupal/Core/Theme/Registry.php(232): Drupal\\Core\\Theme\\Registry->build()\n#7 /site/core/lib/Drupal/Core/Utility/ThemeRegistry.php(86): Drupal\\Core\\Theme\\Registry->get()\n#8 /site/core/lib/Drupal/Core/Utility/ThemeRegistry.php(67): Drupal\\Core\\Utility\\ThemeRegistry->initializeRegistry()\n#9 /site/core/lib/Drupal/Core/Theme/Registry.php(252): Drupal\\Core\\Utility\\ThemeRegistry->__construct('theme_registry:...', Object(Drupal\\Core\\Cache\\DatabaseBackend), Object(Drupal\\Core\\ProxyClass\\Lock\\DatabaseLockBackend), Array, true)\n#10 /site/core/lib/Drupal/Core/Theme/ThemeManager.php(142): Drupal\\Core\\Theme\\Registry->getRuntime()\n#11 /site/core/lib/Drupal/Core/Render/Renderer.php(435): Drupal\\Core\\Theme\\ThemeManager->render('html', Array)\n#12 /site/core/lib/Drupal/Core/Render/Renderer.php(195): Drupal\\Core\\Render\\Renderer->doRender(Array, true)\n#13 /site/core/lib/Drupal/Core/Render/Renderer.php(139): Drupal\\Core\\Render\\Renderer->render(Array, true)\n#14 /site/core/lib/Drupal/Core/Render/Renderer.php(574): Drupal\\Core\\Render\\Renderer->Drupal\\Core\\Render\\{closure}()\n#15 /site/core/lib/Drupal/Core/Render/Renderer.php(140): Drupal\\Core\\Render\\Renderer->executeInRenderContext(Object(Drupal\\Core\\Render\\RenderContext), Object(Closure))\n#16 /site/core/lib/Drupal/Core/Render/BareHtmlPageRenderer.php(66): Drupal\\Core\\Render\\Renderer->renderRoot(Array)\n#17 /site/core/lib/Drupal/Core/ProxyClass/Render/BareHtmlPageRenderer.php(76): Drupal\\Core\\Render\\BareHtmlPageRenderer->renderBarePage(Array, Object(Drupal\\Core\\StringTranslation\\TranslatableMarkup), 'maintenance_pag...', Array)\n#18 /site/core/modules/system/src/Controller/DbUpdateController.php(196): Drupal\\Core\\ProxyClass\\Render\\BareHtmlPageRenderer->renderBarePage(Array, Object(Drupal\\Core\\StringTranslation\\TranslatableMarkup), 'maintenance_pag...', Array)\n#19 [internal function]: Drupal\\system\\Controller\\DbUpdateController->handle('info', Object(Symfony\\Component\\HttpFoundation\\Request))\n#20 /site/core/lib/Drupal/Core/Update/UpdateKernel.php(110): call_user_func_array(Array, Array)\n#21 /site/core/lib/Drupal/Core/Update/UpdateKernel.php(73): Drupal\\Core\\Update\\UpdateKernel->handleRaw(Object(Symfony\\Component\\HttpFoundation\\Request))\n#22 /site/update.php(28): Drupal\\Core\\Update\\UpdateKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request))\n#23 {main}

aspilicious’s picture

Did you follow my instructions? We made an update for exactly that problem.

hanoii’s picture

I am having the same issue with at least beta1. Will try dev, but what instructions? drush updb and cache clear, yes, did that and I see this error as well.

hanoii’s picture

Dev's the same thing.

hanoii’s picture

I think I might have fixed it, drupal moi layout_discovery did fix it, at least site's back.

Looking at

/**
 * Uninstalls Layout plugin, then enables Layout Discovery.
 */
function ds_update_8003() {
  if (\Drupal::moduleHandler()->moduleExists('layout_plugin')) {
    \Drupal::service('module_installer')->uninstall(['layout_plugin'], FALSE);
    \Drupal::service('module_installer')->install(['layout_discovery'], FALSE);
  }
}

Unless I am understanding that update wrongly, isn't layout_plugin a module that's no longer there so would that update not have run at all in the first place?

thiagomoraesp’s picture

Layout plugin is a module isn't?
I belive that the problem in that at least on my instalation i have panels that depends on layout_plugin(bad, ugly, deprecated and smells bad i know) so, because of this dependency the module is not uninstalled at all(here it still installed even running update).

hanoii’s picture

Ah, https://www.drupal.org/project/layout_plugin, you are right. I thought it was core.

It may be then, that because I am managing drupal with composer. composer update removed layout_plugin on the its own update and then the drupal update failed.

Ron Collins’s picture

Ya, manually going back and enabling layout_discovery fixed my issue.

hanoii’s picture

I guess a safer update should have been

/**
 * Uninstalls Layout plugin, then enables Layout Discovery.
 */
function ds_update_8003() {
  if (\Drupal::moduleHandler()->moduleExists('layout_plugin')) {
    \Drupal::service('module_installer')->uninstall(['layout_plugin'], FALSE);
  }
  if (!\Drupal::moduleHandler()->moduleExists('layout_discovery')) {
    \Drupal::service('module_installer')->install(['layout_discovery'], FALSE);
  }
}

I will try to submit a patch later today or tomorrow See below.

hanoii’s picture

Priority: Normal » Major
Status: Active » Needs review
FileSize
529 bytes

What about this new update hook?

hanoii’s picture

Of course worth noting to run update.php again after applying this patch.

thiagomoraesp’s picture

Im working over night to solve and help those who updated the core and didn't make a backup(like me, yay!).

AndyD328’s picture

Thanks @hanoii, that patch worked great across all the sites we have DS on.

thiagomoraesp’s picture

Well, for those like me that was running a production website with olders ds versions on drupal 8, and have it broken using the new ds version, got to all points where display where called, and mark "one column layout" (that is a style that come with display suite) disable any contrib modules that interact with ds(in my case was the ds_bootstrap_layouts) disable manually the layout_plugin and enable layout_discovery.

The bad thing in this solution is that all field positions used before needs to be manually filled again.

sorry my bad english(it's not my native language) =)

maxilein’s picture

FileSize
1.96 KB

I have very many enabled content types using a display suite block fields - I cannot reassign them all...

1. I upgrade to drupal 8.3 (from latest 8.2.7)
2. Upgrade DB, clear caches everything is fine except for DS showing source code like in the other mentioned case https://www.drupal.org/node/2867616. But I think that is expected?!

3. Upgrading DS from 8.2 to 8.3 using the patch of #12 (see my patched file attached as txt)

Still my site gets errors in apache error.log:

Symfony\\Component\\DependencyInjection\\Exception\\ServiceNotFoundException: You have requested a non-existent service "plugin.manager.core.layout". in /mysite/vendor/symfony/dependency-injection/ContainerBuilder.php on line 816 #0 /mysite/vendor/symfony/dependency-injection/ContainerBuilder.php(456): Symfony\\Component\\DependencyInjection\\ContainerBuilder->getDefinition('plugin.manager....')\n#1 /mysite/core/lib/Drupal.php(158): Symfony\\Component\\DependencyInjection\\ContainerBuilder->get('plugin.manager....')\n#2 /mysite/modules/ds/src/Ds.php(93): Drupal::service('plugin.manager....')\n#3 /mysite/modules/ds/ds.module(77): Drupal\\ds\\Ds::getLayouts()\n#4 /mysite/core/lib/Drupal/Core/Extension/ModuleHandler.php(501): ds_theme_registry_alter(Array, NULL, NULL)\n#5 /mysite/core/lib/Drupal/Core/Theme/Registry.php(365): Drupal\\Core\\Extension\\ModuleHandler->alter('theme_registry', Array)\n#6 /mysite/core/lib/Drupal/Core/Theme/Registry.php(232): Drupal\\Core\\Theme\\Registry->build()\n#7 /mysite/core/lib/Drupal/Core/Utility/ThemeRegistry.php(122): Drupal\\Core\\Theme\\Registry->get()\n#8 /mysite/core/lib/Drupal/Core/Utility/ThemeRegistry.php(113): Drupal\\Core\\Utility\\ThemeRegistry->resolveCacheMiss('details')\n#9 /mysite/core/lib/Drupal/Core/Theme/ThemeManager.php(185): Drupal\\Core\\Utility\\ThemeRegistry->get('details')\n#10 /mysite/core/lib/Drupal/Core/Render/Renderer.php(491): Drupal\\Core\\Theme\\ThemeManager->render('details', Array)\n#11 /mysite/core/lib/Drupal/Core/Render/Renderer.php(448): Drupal\\Core\\Render\\Renderer->doRender(Array)\n#12 /mysite/core/lib/Drupal/Core/Render/Renderer.php(195): Drupal\\Core\\Render\\Renderer->doRender(Array, false)\n#13 /mysite/core/lib/Drupal/Core/Template/TwigExtension.php(490): Drupal\\Core\\Render\\Renderer->render(Array)\n#14 /mysite/sites/default/files/php/twig/58e7321725a2a_maintenance-page.html.twi_QtltVKIHhpyDBhiy1-vq2lcn4/T3euJu_dMIViZXxFuZPqTWpcj5__tmoH04pdFMr_qIM.php(89): Drupal\\Core\\Template\\TwigExtension->escapeFilter(Object(Drupal\\Core\\Template\\TwigEnvironment), Array, 'html', NULL, true)\n#15 /mysite/vendor/twig/twig/lib/Twig/Template.php(379): __TwigTemplate_2d62e57b581eeb6e247936e38835f5806416201ae4c26b8b35f6d94ef4e62c59->doDisplay(Array, Array)\n#16 /mysite/vendor/twig/twig/lib/Twig/Template.php(347): Twig_Template->displayWithErrorHandling(Array, Array)\n#17 /mysite/vendor/twig/twig/lib/Twig/Template.php(358): Twig_Template->display(Array)\n#18 /mysite/core/themes/engines/twig/twig.engine(64): Twig_Template->render(Array)\n#19 /mysite/core/lib/Drupal/Core/Theme/ThemeManager.php(384): twig_render_template('core/themes/sev...', Array)\n#20 /mysite/core/lib/Drupal/Core/Render/Renderer.php(435): Drupal\\Core\\Theme\\ThemeManager->render('maintenance_pag...', Array)\n#21 /mysite/core/lib/Drupal/Core/Render/Renderer.php(195): Drupal\\Core\\Render\\Renderer->doRender(Array, false)\n#22 /mysite/core/lib/Drupal/Core/Template/TwigExtension.php(490): Drupal\\Core\\Render\\Renderer->render(Array)\n#23 /mysite/sites/default/files/php/twig/58e7321725a2a_html.html.twig_auV1P9PGrt9ioKH_me6HA-bRM/xWBBcRwSfox-0u301ZdY31JxvSR1eVojBXTx3kUR5Xw.php(90): Drupal\\Core\\Template\\TwigExtension->escapeFilter(Object(Drupal\\Core\\Template\\TwigEnvironment), Array, 'html', NULL, true)\n#24 /mysite/vendor/twig/twig/lib/Twig/Template.php(379): __TwigTemplate_f93ec81447a4b9ce0904e32044949245370d21356172dc4ce00c1897ce8e5b72->doDisplay(Array, Array)\n#25 /mysite/vendor/twig/twig/lib/Twig/Template.php(347): Twig_Template->displayWithErrorHandling(Array, Array)\n#26 /mysite/vendor/twig/twig/lib/Twig/Template.php(358): Twig_Template->display(Array)\n#27 /mysite/core/themes/engines/twig/twig.engine(64): Twig_Template->render(Array)\n#28 /mysite/core/lib/Drupal/Core/Theme/ThemeManager.php(384): twig_render_template('core/themes/cla...', Array)\n#29 /mysite/core/lib/Drupal/Core/Render/Renderer.php(435): Drupal\\Core\\Theme\\ThemeManager->render('html', Array)\n#30 /mysite/core/lib/Drupal/Core/Render/Renderer.php(195): Drupal\\Core\\Render\\Renderer->doRender(Array, true)\n#31 /mysite/core/lib/Drupal/Core/Render/Renderer.php(139): Drupal\\Core\\Render\\Renderer->render(Array, true)\n#32 /mysite/core/lib/Drupal/Core/Render/Renderer.php(574): Drupal\\Core\\Render\\Renderer->Drupal\\Core\\Render\\{closure}()\n#33 /mysite/core/lib/Drupal/Core/Render/Renderer.php(140): Drupal\\Core\\Render\\Renderer->executeInRenderContext(Object(Drupal\\Core\\Render\\RenderContext), Object(Closure))\n#34 /mysite/core/lib/Drupal/Core/Render/BareHtmlPageRenderer.php(66): Drupal\\Core\\Render\\Renderer->renderRoot(Array)\n#35 /mysite/core/lib/Drupal/Core/ProxyClass/Render/BareHtmlPageRenderer.php(76): Drupal\\Core\\Render\\BareHtmlPageRenderer->renderBarePage(Array, Object(Drupal\\Core\\StringTranslation\\TranslatableMarkup), 'maintenance_pag...', Array)\n#36 /mysite/core/modules/system/src/Controller/DbUpdateController.php(196): Drupal\\Core\\ProxyClass\\Render\\BareHtmlPageRenderer->renderBarePage(Array, Object(Drupal\\Core\\StringTranslation\\TranslatableMarkup), 'maintenance_pag...', Array)\n#37 [internal function]: Drupal\\system\\Controller\\DbUpdateController->handle('selection', Object(Symfony\\Component\\HttpFoundation\\Request))\n#38 /mysite/core/lib/Drupal/Core/Update/UpdateKernel.php(110): call_user_func_array(Array, Array)\n#39 /mysite/core/lib/Drupal/Core/Update/UpdateKernel.php(73): Drupal\\Core\\Update\\UpdateKernel->handleRaw(Object(Symfony\\Component\\HttpFoundation\\Request))\n#40 /mysite/update.php(28): Drupal\\Core\\Update\\UpdateKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request))\n#41 {main}, referer: https://..../update.php

Does the upgrade take Display Suite Extras in consideration?
What I am using of Display suite are mostly block fields showing views.

maxilein’s picture

(Before upgrading to ds 8.3) DS 8.2.6 on D8.3. only shows things like

< data-history-node-id="355" data-quickedit-entity-id="node/355" class="contextual-region ds-2col-stacked-fluid clearfix">
<> <> 

I also get these warnings:

Warning: array_flip(): Can only flip STRING and INTEGER values! in Drupal\Core\Entity\EntityStorageBase->loadMultiple() (line 227 of /mysite/core/lib/Drupal/Core/Entity/EntityStorageBase.php) #0 /mysite/core/includes/bootstrap.inc(552): _drupal_error_handler_real(2, 'array_flip(): C...', '/mysite/c...', 227, Array) #1 [internal function]: _drupal_error_handler(2, 'array_flip(): C...', '/mysite/c...', 227, Array) #2 /mysite/core/lib/Drupal/Core/Entity/EntityStorageBase.php(227): array_flip(Array) #3 /mysite/core/modules/node/src/Plugin/views/argument/Nid.php(57): Drupal\Core\Entity\EntityStorageBase->loadMultiple(Array) #4 /mysite/core/modules/views/src/Plugin/views/argument/NumericArgument.php(83): Drupal\node\Plugin\views\argument\Nid->titleQuery() #5 /mysite/core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php(976): Drupal\views\Plugin\views\argument\NumericArgument->title() #6 /mysite/core/modules/views/src/ViewExecutable.php(1098): Drupal\views\Plugin\views\argument\ArgumentPluginBase->getTitle() #7 /mysite/core/modules/views/src/ViewExecutable.php(1253): Drupal\views\ViewExecutable->_buildArguments() #8 /mysite/core/modules/views/src/ViewExecutable.php(1377): Drupal\views\ViewExecutable->build(NULL) #9 /mysite/modules/views_field_view/src/Plugin/views/field/View.php(263): Drupal\views\ViewExecutable->execute() #10 /mysite/core/modules/views/src/Plugin/views/field/FieldPluginBase.php(1144): Drupal\views_field_view\Plugin\views\field\View->render(Object(Drupal\views\ResultRow)) #11 /mysite/core/modules/views/views.theme.inc(224): Drupal\views\Plugin\views\field\FieldPluginBase->advancedRender(Object(Drupal\views\ResultRow)) #12 /mysite/core/lib/Drupal/Core/Theme/ThemeManager.php(287): template_preprocess_views_view_field(Array, 'views_view_fiel...', Array) #13 /mysite/core/lib/Drupal/Core/Render/Renderer.php(435): Drupal\Core\Theme\ThemeManager->render('views_view_fiel...', Array) #14 /mysite/core/lib/Drupal/Core/Render/Renderer.php(195): Drupal\Core\Render\Renderer->doRender(Array, false) #15 /mysite/core/modules/views/src/Plugin/views/field/FieldPluginBase.php(1736): Drupal\Core\Render\Renderer->render(Array) #16 /mysite/core/modules/views/src/Plugin/views/style/StylePluginBase.php(759): Drupal\views\Plugin\views\field\FieldPluginBase->theme(Object(Drupal\views\ResultRow)) #17 [internal function]: Drupal\views\Plugin\views\style\StylePluginBase->elementPreRenderRow(Array) #18 /mysite/core/lib/Drupal/Core/Render/Renderer.php(376): call_user_func(Array, Array) #19 /mysite/core/lib/Drupal/Core/Render/Renderer.php(195): Drupal\Core\Render\Renderer->doRender(Array, false) #20 /mysite/core/modules/views/src/Plugin/views/style/StylePluginBase.php(707): Drupal\Core\Render\Renderer->render(Array) #21 /mysite/core/modules/views/src/Plugin/views/style/StylePluginBase.php(574): Drupal\views\Plugin\views\style\StylePluginBase->renderFields(Array) #22 /mysite/core/modules/views/src/Plugin/views/style/StylePluginBase.php(466): Drupal\views\Plugin\views\style\StylePluginBase->renderGrouping(Array, Array, true) #23 /mysite/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php(2105): Drupal\views\Plugin\views\style\StylePluginBase->render(Array) #24 /mysite/core/modules/views/src/ViewExecutable.php(1519): Drupal\views\Plugin\views\display\DisplayPluginBase->render() #25 /mysite/core/modules/views/src/Plugin/views/display/Block.php(117): Drupal\views\ViewExecutable->render() #26 /mysite/core/modules/views/src/ViewExecutable.php(1616): Drupal\views\Plugin\views\display\Block->execute() #27 /mysite/core/modules/views/src/Element/View.php(78): Drupal\views\ViewExecutable->executeDisplay('block_1', Array) #28 /mysite/core/modules/views/src/Plugin/Block/ViewsBlock.php(59): Drupal\views\Element\View::preRenderViewElement(Array) #29 /mysite/modules/ds/src/Plugin/DsField/BlockBase.php(89): Drupal\views\Plugin\Block\ViewsBlock->build() #30 /mysite/modules/ds/ds.module(234): Drupal\ds\Plugin\DsField\BlockBase->build() #31 /mysite/core/lib/Drupal/Core/Extension/ModuleHandler.php(501): ds_entity_view_alter(Array, Object(Drupal\node\Entity\Node), Object(Drupal\Core\Entity\Entity\EntityViewDisplay)) #32 /mysite/core/lib/Drupal/Core/Entity/EntityViewBuilder.php(285): Drupal\Core\Extension\ModuleHandler->alter('node_view', Array, Object(Drupal\node\Entity\Node), Object(Drupal\Core\Entity\Entity\EntityViewDisplay)) #33 /mysite/core/lib/Drupal/Core/Entity/EntityViewBuilder.php(220): Drupal\Core\Entity\EntityViewBuilder->buildMultiple(Array) #34 [internal function]: Drupal\Core\Entity\EntityViewBuilder->build(Array) #35 /mysite/core/lib/Drupal/Core/Render/Renderer.php(376): call_user_func(Array, Array) #36 /mysite/core/lib/Drupal/Core/Render/Renderer.php(195): Drupal\Core\Render\Renderer->doRender(Array, false) #37 /mysite/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(226): Drupal\Core\Render\Renderer->render(Array, false) #38 /mysite/core/lib/Drupal/Core/Render/Renderer.php(574): Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() #39 /mysite/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(227): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #40 /mysite/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(117): Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\CurrentRouteMatch)) #41 /mysite/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php(90): Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\CurrentRouteMatch)) #42 /mysite/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object(Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent), 'kernel.view', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher)) #43 /mysite/vendor/symfony/http-kernel/HttpKernel.php(149): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.view', Object(Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent)) #44 /mysite/vendor/symfony/http-kernel/HttpKernel.php(64): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #45 /mysite/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #46 /mysite/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #47 /mysite/core/modules/page_cache/src/StackMiddleware/PageCache.php(99): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #48 /mysite/core/modules/page_cache/src/StackMiddleware/PageCache.php(78): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #49 /mysite/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #50 /mysite/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(50): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #51 /mysite/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #52 /mysite/core/lib/Drupal/Core/DrupalKernel.php(656): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #53 /mysite/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #54 {main}.

Warning: array_flip(): Can only flip STRING and INTEGER values! in Drupal\Core\Entity\EntityStorageBase->getFromStaticCache() (line 139 of /mysite/core/lib/Drupal/Core/Entity/EntityStorageBase.php) #0 /mysite/core/includes/bootstrap.inc(552): _drupal_error_handler_real(2, 'array_flip(): C...', '/mysite/c...', 139, Array) #1 [internal function]: _drupal_error_handler(2, 'array_flip(): C...', '/mysite/c...', 139, Array) #2 /mysite/core/lib/Drupal/Core/Entity/EntityStorageBase.php(139): array_flip(Array) #3 /mysite/core/lib/Drupal/Core/Entity/EntityStorageBase.php(231): Drupal\Core\Entity\EntityStorageBase->getFromStaticCache(Array) #4 /mysite/core/modules/node/src/Plugin/views/argument/Nid.php(57): Drupal\Core\Entity\EntityStorageBase->loadMultiple(Array) #5 /mysite/core/modules/views/src/Plugin/views/argument/NumericArgument.php(83): Drupal\node\Plugin\views\argument\Nid->titleQuery() #6 /mysite/core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php(976): Drupal\views\Plugin\views\argument\NumericArgument->title() #7 /mysite/core/modules/views/src/ViewExecutable.php(1098): Drupal\views\Plugin\views\argument\ArgumentPluginBase->getTitle() #8 /mysite/core/modules/views/src/ViewExecutable.php(1253): Drupal\views\ViewExecutable->_buildArguments() #9 /mysite/core/modules/views/src/ViewExecutable.php(1377): Drupal\views\ViewExecutable->build(NULL) #10 /mysite/modules/views_field_view/src/Plugin/views/field/View.php(263): Drupal\views\ViewExecutable->execute() #11 /mysite/core/modules/views/src/Plugin/views/field/FieldPluginBase.php(1144): Drupal\views_field_view\Plugin\views\field\View->render(Object(Drupal\views\ResultRow)) #12 /mysite/core/modules/views/views.theme.inc(224): Drupal\views\Plugin\views\field\FieldPluginBase->advancedRender(Object(Drupal\views\ResultRow)) #13 /mysite/core/lib/Drupal/Core/Theme/ThemeManager.php(287): template_preprocess_views_view_field(Array, 'views_view_fiel...', Array) #14 /mysite/core/lib/Drupal/Core/Render/Renderer.php(435): Drupal\Core\Theme\ThemeManager->render('views_view_fiel...', Array) #15 /mysite/core/lib/Drupal/Core/Render/Renderer.php(195): Drupal\Core\Render\Renderer->doRender(Array, false) #16 /mysite/core/modules/views/src/Plugin/views/field/FieldPluginBase.php(1736): Drupal\Core\Render\Renderer->render(Array) #17 /mysite/core/modules/views/src/Plugin/views/style/StylePluginBase.php(759): Drupal\views\Plugin\views\field\FieldPluginBase->theme(Object(Drupal\views\ResultRow)) #18 [internal function]: Drupal\views\Plugin\views\style\StylePluginBase->elementPreRenderRow(Array) #19 /mysite/core/lib/Drupal/Core/Render/Renderer.php(376): call_user_func(Array, Array) #20 /mysite/core/lib/Drupal/Core/Render/Renderer.php(195): Drupal\Core\Render\Renderer->doRender(Array, false) #21 /mysite/core/modules/views/src/Plugin/views/style/StylePluginBase.php(707): Drupal\Core\Render\Renderer->render(Array) #22 /mysite/core/modules/views/src/Plugin/views/style/StylePluginBase.php(574): Drupal\views\Plugin\views\style\StylePluginBase->renderFields(Array) #23 /mysite/core/modules/views/src/Plugin/views/style/StylePluginBase.php(466): Drupal\views\Plugin\views\style\StylePluginBase->renderGrouping(Array, Array, true) #24 /mysite/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php(2105): Drupal\views\Plugin\views\style\StylePluginBase->render(Array) #25 /mysite/core/modules/views/src/ViewExecutable.php(1519): Drupal\views\Plugin\views\display\DisplayPluginBase->render() #26 /mysite/core/modules/views/src/Plugin/views/display/Block.php(117): Drupal\views\ViewExecutable->render() #27 /mysite/core/modules/views/src/ViewExecutable.php(1616): Drupal\views\Plugin\views\display\Block->execute() #28 /mysite/core/modules/views/src/Element/View.php(78): Drupal\views\ViewExecutable->executeDisplay('block_1', Array) #29 /mysite/core/modules/views/src/Plugin/Block/ViewsBlock.php(59): Drupal\views\Element\View::preRenderViewElement(Array) #30 /mysite/modules/ds/src/Plugin/DsField/BlockBase.php(89): Drupal\views\Plugin\Block\ViewsBlock->build() #31 /mysite/modules/ds/ds.module(234): Drupal\ds\Plugin\DsField\BlockBase->build() #32 /mysite/core/lib/Drupal/Core/Extension/ModuleHandler.php(501): ds_entity_view_alter(Array, Object(Drupal\node\Entity\Node), Object(Drupal\Core\Entity\Entity\EntityViewDisplay)) #33 /mysite/core/lib/Drupal/Core/Entity/EntityViewBuilder.php(285): Drupal\Core\Extension\ModuleHandler->alter('node_view', Array, Object(Drupal\node\Entity\Node), Object(Drupal\Core\Entity\Entity\EntityViewDisplay)) #34 /mysite/core/lib/Drupal/Core/Entity/EntityViewBuilder.php(220): Drupal\Core\Entity\EntityViewBuilder->buildMultiple(Array) #35 [internal function]: Drupal\Core\Entity\EntityViewBuilder->build(Array) #36 /mysite/core/lib/Drupal/Core/Render/Renderer.php(376): call_user_func(Array, Array) #37 /mysite/core/lib/Drupal/Core/Render/Renderer.php(195): Drupal\Core\Render\Renderer->doRender(Array, false) #38 /mysite/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(226): Drupal\Core\Render\Renderer->render(Array, false) #39 /mysite/core/lib/Drupal/Core/Render/Renderer.php(574): Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() #40 /mysite/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(227): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #41 /mysite/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(117): Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\CurrentRouteMatch)) #42 /mysite/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php(90): Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\CurrentRouteMatch)) #43 /mysite/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object(Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent), 'kernel.view', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher)) #44 /mysite/vendor/symfony/http-kernel/HttpKernel.php(149): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.view', Object(Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent)) #45 /mysite/vendor/symfony/http-kernel/HttpKernel.php(64): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #46 /mysite/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #47 /mysite/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #48 /mysite/core/modules/page_cache/src/StackMiddleware/PageCache.php(99): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #49 /mysite/core/modules/page_cache/src/StackMiddleware/PageCache.php(78): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #50 /mysite/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #51 /mysite/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(50): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #52 /mysite/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #53 /mysite/core/lib/Drupal/Core/DrupalKernel.php(656): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #54 /mysite/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #55 {main}.

Warning: Illegal offset type in Drupal\Core\Entity\ContentEntityStorageBase->getFromPersistentCache() (line 614 of /mysite/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php) #0 /mysite/core/includes/bootstrap.inc(552): _drupal_error_handler_real(2, 'Illegal offset ...', '/mysite/c...', 614, Array) #1 /mysite/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php(614): _drupal_error_handler(2, 'Illegal offset ...', '/mysite/c...', 614, Array) #2 /mysite/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php(396): Drupal\Core\Entity\ContentEntityStorageBase->getFromPersistentCache(Array) #3 /mysite/core/lib/Drupal/Core/Entity/EntityStorageBase.php(242): Drupal\Core\Entity\Sql\SqlContentEntityStorage->doLoadMultiple(Array) #4 /mysite/core/modules/node/src/Plugin/views/argument/Nid.php(57): Drupal\Core\Entity\EntityStorageBase->loadMultiple(Array) #5 /mysite/core/modules/views/src/Plugin/views/argument/NumericArgument.php(83): Drupal\node\Plugin\views\argument\Nid->titleQuery() #6 /mysite/core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php(976): Drupal\views\Plugin\views\argument\NumericArgument->title() #7 /mysite/core/modules/views/src/ViewExecutable.php(1098): Drupal\views\Plugin\views\argument\ArgumentPluginBase->getTitle() #8 /mysite/core/modules/views/src/ViewExecutable.php(1253): Drupal\views\ViewExecutable->_buildArguments() #9 /mysite/core/modules/views/src/ViewExecutable.php(1377): Drupal\views\ViewExecutable->build(NULL) #10 /mysite/modules/views_field_view/src/Plugin/views/field/View.php(263): Drupal\views\ViewExecutable->execute() #11 /mysite/core/modules/views/src/Plugin/views/field/FieldPluginBase.php(1144): Drupal\views_field_view\Plugin\views\field\View->render(Object(Drupal\views\ResultRow)) #12 /mysite/core/modules/views/views.theme.inc(224): Drupal\views\Plugin\views\field\FieldPluginBase->advancedRender(Object(Drupal\views\ResultRow)) #13 /mysite/core/lib/Drupal/Core/Theme/ThemeManager.php(287): template_preprocess_views_view_field(Array, 'views_view_fiel...', Array) #14 /mysite/core/lib/Drupal/Core/Render/Renderer.php(435): Drupal\Core\Theme\ThemeManager->render('views_view_fiel...', Array) #15 /mysite/core/lib/Drupal/Core/Render/Renderer.php(195): Drupal\Core\Render\Renderer->doRender(Array, false) #16 /mysite/core/modules/views/src/Plugin/views/field/FieldPluginBase.php(1736): Drupal\Core\Render\Renderer->render(Array) #17 /mysite/core/modules/views/src/Plugin/views/style/StylePluginBase.php(759): Drupal\views\Plugin\views\field\FieldPluginBase->theme(Object(Drupal\views\ResultRow)) #18 [internal function]: Drupal\views\Plugin\views\style\StylePluginBase->elementPreRenderRow(Array) #19 /mysite/core/lib/Drupal/Core/Render/Renderer.php(376): call_user_func(Array, Array) #20 /mysite/core/lib/Drupal/Core/Render/Renderer.php(195): Drupal\Core\Render\Renderer->doRender(Array, false) #21 /mysite/core/modules/views/src/Plugin/views/style/StylePluginBase.php(707): Drupal\Core\Render\Renderer->render(Array) #22 /mysite/core/modules/views/src/Plugin/views/style/StylePluginBase.php(574): Drupal\views\Plugin\views\style\StylePluginBase->renderFields(Array) #23 /mysite/core/modules/views/src/Plugin/views/style/StylePluginBase.php(466): Drupal\views\Plugin\views\style\StylePluginBase->renderGrouping(Array, Array, true) #24 /mysite/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php(2105): Drupal\views\Plugin\views\style\StylePluginBase->render(Array) #25 /mysite/core/modules/views/src/ViewExecutable.php(1519): Drupal\views\Plugin\views\display\DisplayPluginBase->render() #26 /mysite/core/modules/views/src/Plugin/views/display/Block.php(117): Drupal\views\ViewExecutable->render() #27 /mysite/core/modules/views/src/ViewExecutable.php(1616): Drupal\views\Plugin\views\display\Block->execute() #28 /mysite/core/modules/views/src/Element/View.php(78): Drupal\views\ViewExecutable->executeDisplay('block_1', Array) #29 /mysite/core/modules/views/src/Plugin/Block/ViewsBlock.php(59): Drupal\views\Element\View::preRenderViewElement(Array) #30 /mysite/modules/ds/src/Plugin/DsField/BlockBase.php(89): Drupal\views\Plugin\Block\ViewsBlock->build() #31 /mysite/modules/ds/ds.module(234): Drupal\ds\Plugin\DsField\BlockBase->build() #32 /mysite/core/lib/Drupal/Core/Extension/ModuleHandler.php(501): ds_entity_view_alter(Array, Object(Drupal\node\Entity\Node), Object(Drupal\Core\Entity\Entity\EntityViewDisplay)) #33 /mysite/core/lib/Drupal/Core/Entity/EntityViewBuilder.php(285): Drupal\Core\Extension\ModuleHandler->alter('node_view', Array, Object(Drupal\node\Entity\Node), Object(Drupal\Core\Entity\Entity\EntityViewDisplay)) #34 /mysite/core/lib/Drupal/Core/Entity/EntityViewBuilder.php(220): Drupal\Core\Entity\EntityViewBuilder->buildMultiple(Array) #35 [internal function]: Drupal\Core\Entity\EntityViewBuilder->build(Array) #36 /mysite/core/lib/Drupal/Core/Render/Renderer.php(376): call_user_func(Array, Array) #37 /mysite/core/lib/Drupal/Core/Render/Renderer.php(195): Drupal\Core\Render\Renderer->doRender(Array, false) #38 /mysite/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(226): Drupal\Core\Render\Renderer->render(Array, false) #39 /mysite/core/lib/Drupal/Core/Render/Renderer.php(574): Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() #40 /mysite/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(227): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #41 /mysite/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(117): Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\CurrentRouteMatch)) #42 /mysite/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php(90): Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\CurrentRouteMatch)) #43 /mysite/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object(Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent), 'kernel.view', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher)) #44 /mysite/vendor/symfony/http-kernel/HttpKernel.php(149): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.view', Object(Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent)) #45 /mysite/vendor/symfony/http-kernel/HttpKernel.php(64): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #46 /mysite/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #47 /mysite/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #48 /mysite/core/modules/page_cache/src/StackMiddleware/PageCache.php(99): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #49 /mysite/core/modules/page_cache/src/StackMiddleware/PageCache.php(78): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #50 /mysite/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #51 /mysite/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(50): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #52 /mysite/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #53 /mysite/core/lib/Drupal/Core/DrupalKernel.php(656): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #54 /mysite/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #55 {main}.

maxilein’s picture

Most of my nodes do not have DS Layout enabled.
If I try to follow the advice to enable one column layout: it just increases the number f leaked html like:

< data-history-node-id="329" data-quickedit-entity-id="node/329" class="contextual-region ds-2col-stacked-fluid clearfix">
<> <>
< data-history-node-id="328" data-quickedit-entity-id="node/328" class="contextual-region ds-1col clearfix">
< data-history-node-id="327" data-quickedit-entity-id="node/327" class="contextual-region ds-2col-stacked-fluid clearfix">
<> <>
< data-history-node-id="326" data-quickedit-entity-id="node/326" class="contextual-region ds-1col clearfix">
< data-history-node-id="325" data-quickedit-entity-id="node/325" class="contextual-region ds-1col clearfix">
< data-history-node-id="324" data-quickedit-entity-id="node/324" class="contextual-region ds-1col clearfix"> 
maxilein’s picture

So I tracked it down: it is not related to content type layouts, but to block fields.
I am using "block fields" which attach a view to a node type display.
They all use contextual filters nid from the url.

Let me mention again: this is D8.3 with DS 8.2.6
I am collecting only symptoms here. I want to upgrade to DS 8.3 which fails with the above error in apache2 log.

Utilvideo’s picture

Hello, i update my project from 2.8. to 3.0

1)Suggestion, update all modules that use layout_plugin, panels,panelizer, ds
2) Do not run cache clear, go to extend and uninstall layout_plugin
3) After start uninstall upper error with layout_discovery, not found service.(But layout_plugin is uninstalled with success )
4) drush en layout_discovery, update succes

rwam’s picture

Patch #12 worked for me. Thanks @hanoii.

bahuma20’s picture

Patch [#12] worked for me too. Applied it before running update.php

hanoii’s picture

@maxilein the patch should work, have you run update.php again after using the patch.

DS 2.6 will simply not work with 8.3.0, so probably not related to this particular issue.

maxilein’s picture

@Regnoy you are the man!

#21 solved my problem!

1) Did exactly like that. I don't use panelizer oder panels just DS
2) I did that - although I did not expect this to work since DS was still installed. (I only exchanged the module's files with the 8.3 version.
3) error appeared!
4) Magic bullet!

Thanks a lot!

Ron Collins’s picture

Patch #12 worked for me. I applied it both from a pre-updated Drupal 8.2.x site and a site that was broken after the the Drupal 8.3.0 update.

Ron Collins’s picture

Status: Needs review » Reviewed & tested by the community

  • aspilicious committed b331196 on 8.x-3.x authored by hanoii
    Issue #2867499 by hanoii, maxilein: Updating to 3.0 broked my site
    
aspilicious’s picture

Thanks all, sorry for all the problems. Made a new release!

aspilicious’s picture

Status: Reviewed & tested by the community » Fixed
Ron Collins’s picture

Just to close the loop on this, I just installed beta2 on another site and it worked as expected. Thanks for turning this around so quickly!

thiagomoraesp’s picture

Thank you for the response, DS is amazing ;)

justkristin’s picture

Even with beta2, I am still site-down. I tried the patch on beta2 and got this result:
patching file ds.install
Hunk #1 succeeded at 68 (offset 9 lines).
But the site is still dead. :( From Apache:

PHP Fatal error: Cannot redeclare ds_update_8004() (previously declared in /var/www/oursite.org/htdocs/modules/ds/ds.install:67) in /var/www/oursite.org/htdocs/modules/ds/ds.install on line 79

justkristin’s picture

Ok, got rid of the duplicate 8004 section in the ds.install file, but now getting:

Symfony\\Component\\DependencyInjection\\Exception\\ServiceNotFoundException: You have requested a non-existent service "plugin.manager.core.layout".

whole site still down. :(

justkristin’s picture

Installed console and tried:

drupal moi layout_discovery

but no luck.

Waen’s picture

Maybe it does not work for you because you're running in the same problem than me: #21 does not work and the patch does not help maybe because you also use bootstrap_layouts? Without to update it I can't remove layout_plugin, but when updating it the site is broken.

Utilvideo’s picture

#36 check all module before start use #21 you must sure that layout_plugin use only ds. If use other module #21 dont work. Before use #21 enter in uninstall module and after start change modules.

cmseasy’s picture

Refressing the error-page you get after update.php restarted the update and solved it for me.
Using beta2

Waen’s picture

Thank you, it worked

Utilvideo’s picture

Try again update to 3.0 other project, same error, with this release, only help me again #25.

schiavone’s picture

I've got layout_plugin uninstalled. Followed instructions in #21 ()
Uninstalled ds
Upgraded ds to beta2
Enabled layout_discover

So far so good

Enable ds

s currently unable to handle this request.

Nothing helpful in weblog

justkristin’s picture

I wish I knew how to help more with this thing... We are close to done with a D8 site that uses ds heavily, and cannot upgrade (again) to 8.3 because it kills things :(

aspilicious’s picture

The upgrade path works, and without more information I can't help.

I wonder why people are uninstalling DS. In order to upgrade you just need to replace DS 8.2 with DS 8.3 and run update.php (maybe a few times). Uninstalling a module throws away the settings.

schiavone’s picture

I started over. Did not uninstall ds. Followed steps in #21. This time database updates did run. But site is broken. Just in case I switch the theme to bartik to rule out the theme. Here's the errors in the log...

[Tue Apr 18 09:40:52.427549 2017] [:error] [pid 21038] [client 127.0.0.1:37066] PHP 33. Drupal\\Core\\Theme\\Registry->get() /var/www/html/local.dev/core/lib/Drupal/Core/Utility/ThemeRegistry.php:86
[Tue Apr 18 09:40:52.427560 2017] [:error] [pid 21038] [client 127.0.0.1:37066] PHP 34. Drupal\\Core\\Theme\\Registry->build() /var/www/html/local.dev/core/lib/Drupal/Core/Theme/Registry.php:232
[Tue Apr 18 09:40:52.427570 2017] [:error] [pid 21038] [client 127.0.0.1:37066] PHP 35. Drupal\\Core\\Extension\\ModuleHandler->alter() /var/www/html/local.dev/core/lib/Drupal/Core/Theme/Registry.php:365
[Tue Apr 18 09:40:52.427594 2017] [:error] [pid 21038] [client 127.0.0.1:37066] PHP 36. ds_theme_registry_alter() /var/www/html/local.dev/core/lib/Drupal/Core/Extension/ModuleHandler.php:501
[Tue Apr 18 09:40:52.427605 2017] [:error] [pid 21038] [client 127.0.0.1:37066] PHP 37. is_a() /var/www/html/local.dev/modules/contrib/ds/ds.module:81
[Tue Apr 18 09:40:52.427616 2017] [:error] [pid 21038] [client 127.0.0.1:37066] PHP 38. spl_autoload_call() /var/www/html/local.dev/modules/contrib/ds/ds.module:81
[Tue Apr 18 09:40:52.427627 2017] [:error] [pid 21038] [client 127.0.0.1:37066] PHP 39. Composer\\Autoload\\ClassLoader->loadClass() /var/www/html/local.dev/modules/contrib/ds/ds.module:81
[Tue Apr 18 09:40:52.427649 2017] [:error] [pid 21038] [client 127.0.0.1:37066] PHP 40. Composer\\Autoload\\includeFile() /var/www/html/local.dev/vendor/composer/ClassLoader.php:322
[Tue Apr 18 09:40:52.427658 2017] [:error] [pid 21038] [client 127.0.0.1:37066] PHP 41. include() /var/www/html/local.dev/vendor/composer/ClassLoader.php:444

schiavone’s picture

Looks like my issue is not a Display Suite problem. I uninstalled zurb foundation and it's subtheme and enabled bartik and the site comes up. I'm going to move to the zurb_foundation queue where there's a patch in the works here --> https://www.drupal.org/node/2867688.

Thanks for lending an ear.

s427’s picture

I'm having the same issue.

  • I have upgraded Drupal to v.8.3.0 successfully, including database updates (no errors).
  • I have replaced the "ds" 2.6 folder with the ds 3.0-beta2 folder (I haven't uninstalled ds)
  • But then when I try to run update.php, I get "The website encountered an unexpected error. Please try again later." I tried hitting refresh several times on that page, always with the same result.

I am still able to access the admin pages, so checking the "Recent log messages" page, I find the following error:

Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "plugin.manager.core.layout". in Symfony\Component\DependencyInjection\ContainerBuilder->getDefinition() (line 816 of /var/www/vhosts/mysite.com/www/http/vendor/symfony/dependency-injection/ContainerBuilder.php) #0 /var/www/vhosts/mysite.com/www/http/vendor/symfony/dependency-injection/ContainerBuilder.php(456): Symfony\Component\DependencyInjection\ContainerBuilder->getDefinition('plugin.manager....') #1 /var/www/vhosts/mysite.com/www/http/core/lib/Drupal.php(158): Symfony\Component\DependencyInjection\ContainerBuilder->get('plugin.manager....') #2 /var/www/vhosts/mysite.com/www/http/modules/ds/src/Ds.php(93): Drupal::service('plugin.manager....') #3 /var/www/vhosts/mysite.com/www/http/modules/ds/ds.module(77): Drupal\ds\Ds::getLayouts() #4 /var/www/vhosts/mysite.com/www/http/core/lib/Drupal/Core/Extension/ModuleHandler.php(501): ds_theme_registry_alter(Array, NULL, NULL) #5 /var/www/vhosts/mysite.com/www/http/core/lib/Drupal/Core/Theme/Registry.php(365): Drupal\Core\Extension\ModuleHandler->alter('theme_registry', Array) #6 /var/www/vhosts/mysite.com/www/http/core/lib/Drupal/Core/Theme/Registry.php(232): Drupal\Core\Theme\Registry->build() #7 /var/www/vhosts/mysite.com/www/http/core/lib/Drupal/Core/Utility/ThemeRegistry.php(86): Drupal\Core\Theme\Registry->get() #8 /var/www/vhosts/mysite.com/www/http/core/lib/Drupal/Core/Utility/ThemeRegistry.php(67): Drupal\Core\Utility\ThemeRegistry->initializeRegistry() #9 /var/www/vhosts/mysite.com/www/http/core/lib/Drupal/Core/Theme/Registry.php(252): Drupal\Core\Utility\ThemeRegistry->__construct('theme_registry:...', Object(Drupal\Core\Cache\DatabaseBackend), Object(Drupal\Core\ProxyClass\Lock\DatabaseLockBackend), Array, true) #10 /var/www/vhosts/mysite.com/www/http/core/lib/Drupal/Core/Theme/ThemeManager.php(142): Drupal\Core\Theme\Registry->getRuntime() #11 /var/www/vhosts/mysite.com/www/http/core/lib/Drupal/Core/Render/Renderer.php(435): Drupal\Core\Theme\ThemeManager->render('html', Array) #12 /var/www/vhosts/mysite.com/www/http/core/lib/Drupal/Core/Render/Renderer.php(195): Drupal\Core\Render\Renderer->doRender(Array, true) #13 /var/www/vhosts/mysite.com/www/http/core/lib/Drupal/Core/Render/Renderer.php(139): Drupal\Core\Render\Renderer->render(Array, true) #14 /var/www/vhosts/mysite.com/www/http/core/lib/Drupal/Core/Render/Renderer.php(574): Drupal\Core\Render\Renderer->Drupal\Core\Render\{closure}() #15 /var/www/vhosts/mysite.com/www/http/core/lib/Drupal/Core/Render/Renderer.php(140): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #16 /var/www/vhosts/mysite.com/www/http/core/lib/Drupal/Core/Render/BareHtmlPageRenderer.php(66): Drupal\Core\Render\Renderer->renderRoot(Array) #17 /var/www/vhosts/mysite.com/www/http/core/lib/Drupal/Core/ProxyClass/Render/BareHtmlPageRenderer.php(76): Drupal\Core\Render\BareHtmlPageRenderer->renderBarePage(Array, Object(Drupal\Core\StringTranslation\TranslatableMarkup), 'maintenance_pag...', Array) #18 /var/www/vhosts/mysite.com/www/http/core/modules/system/src/Controller/DbUpdateController.php(196): Drupal\Core\ProxyClass\Render\BareHtmlPageRenderer->renderBarePage(Array, Object(Drupal\Core\StringTranslation\TranslatableMarkup), 'maintenance_pag...', Array) #19 [internal function]: Drupal\system\Controller\DbUpdateController->handle('info', Object(Symfony\Component\HttpFoundation\Request)) #20 /var/www/vhosts/mysite.com/www/http/core/lib/Drupal/Core/Update/UpdateKernel.php(110): call_user_func_array(Array, Array) #21 /var/www/vhosts/mysite.com/www/http/core/lib/Drupal/Core/Update/UpdateKernel.php(73): Drupal\Core\Update\UpdateKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request)) #22 /var/www/vhosts/mysite.com/www/http/update.php(28): Drupal\Core\Update\UpdateKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #23 {main}.

I can't install the Layout Discovery module, because Layout Plugin is already installed.
I can't uninstall the Layout Plugin module, because it's required by Display Suite.

Unfortunately, it's on a server that doesn't have drush, so I can't test suggestion #21. (After step 2, the admin pages aren't accessible anymore, so I can't enable the Layout Discovery module...)

Reverting the "ds" folder to version 2.6 makes the problem go away, except that, obviously, most fields that rely on ds are completely broken (empty and/or leaking HTML), which is obviously not acceptable.

For now I have no choice but to completely revert the database and files to Drupal 8.2.7. :(

aspilicious’s picture

@s427, can you please test the patch in https://www.drupal.org/node/2868755

s427’s picture

@aspilicious: yes, that did it, thanks! I was able to update to Drupal 8.3.1 and then DS 3.0-beta3 without problem this time.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

justkristin’s picture

Sorry - I am still struggling with this. Just reverted to our D8.27 (successfully using DS, Adaptive Theme, etc.), did a manual upgrade to D8.3.2 and ds3, as suggested elsewhere, cleared cache, did update.php. No love. Tried applying ds-make_sure_enable_layout_discovery-2867499-12.patch; didn't help. Tried 2868755-11.patch; also succeeded in applying, but didn't help. Still endless lines of this in Apache error log:

Error: Cannot use object of type Drupal\\Core\\Layout\\LayoutDefinition as array in /var/www/oursite.org/htdocs/themes/contrib/adaptivetheme/at_core/includes/misc.inc on line 106 #0 /var/www/oursite.org/htdocs/themes/contrib/adaptivetheme/at_core/includes/preprocess.inc(928): _at_core_layout_plugin_attributes(Array)\n#1 /var/www/oursite.org/htdocs/core/lib/Drupal/Core/Theme/ThemeManager.php(287): at_core_preprocess_at_layout(Array, 'ds_1col', Array)\n#2 /var/www/oursite.org/htdocs/core/lib/Drupal/Core/Render/Renderer.php(435): Drupal\\Core\\Theme\\ThemeManager->render('ds_1col', Array)\n#3 /var/www/oursite.org/htdocs/core/lib/Drupal/Core/Render/Renderer.php(195): Drupal\\Core\\Render\\Renderer->doRender(Array, false)\n#4 /var/www/oursite.org/htdocs/core/lib/Drupal/Core/Template/TwigExtension.php(490): Drupal\\Core\\Render\\Renderer->render(Array)\n#5 /var/www/oursite.org/htdocs/vendor/twig/twig/lib/Twig/Environment.php(462) : eval()'d code(43): Drupal\\Core\\Template\\TwigExtension->escapeFilter(Object(Drupal\\Core\\Template\\TwigEnvironment), Array, 'html', NULL, true)\n#6 /var/www/oursite.org/htdocs/vendor/twig/twig/lib/Twig/Template.php(432): __TwigTemplate_186b9b7784943b1cb66dfc04a8b253430787088f9663b1bc2cba32f37c47f1d8->doDisplay(Array, Array)\n#7 /var/www/oursite.org/htdocs/vendor/twig/twig/lib/Twig/Template.php(403): Twig_Template->displayWithErrorHandling(Array, Array)\n#8 /var/www/oursite.org/htdocs/vendor/twig/twig/lib/Twig/Template.php(411): Twig_Template->display(Array)\n#9 /var/www/oursite.org/htdocs/core/themes/engines/twig/twig.engine(64): Twig_Template->render(Array)\n#10 /var/www/oursite.org/htdocs/core/lib/Drupal/Core/Theme/ThemeManager.php(384): twig_render_template('modules/ds/temp...', Array)\n#11 /var/www/oursite.org/htdocs/core/lib/Drupal/Core/Render/Renderer.php(435): Drupal\\Core\\Theme\\ThemeManager->render('ds_entity_view', Array)\n#12 /var/www/oursite.org/htdocs/core/lib/Drupal/Core/Render/Renderer.php(195): Drupal\\Core\\Render\\Renderer->doRender(Array, false)\n#13 /var/www/oursite.org/htdocs/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(226): Drupal\\Core\\Render\\Renderer->render(Array, false)\n#14 /var/www/oursite.org/htdocs/core/lib/Drupal/Core/Render/Renderer.php(574): Drupal\\Core\\Render\\MainContent\\HtmlRenderer->Drupal\\Core\\Render\\MainContent\\{closure}()\n#15 /var/www/oursite.org/htdocs/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(227): Drupal\\Core\\Render\\Renderer->executeInRenderContext(Object(Drupal\\Core\\Render\\RenderContext), Object(Closure))\n#16 /var/www/oursite.org/htdocs/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(117): Drupal\\Core\\Render\\MainContent\\HtmlRenderer->prepare(Array, Object(Symfony\\Component\\HttpFoundation\\Request), Object(Drupal\\Core\\Routing\\CurrentRouteMatch))\n#17 /var/www/oursite.org/htdocs/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php(90): Drupal\\Core\\Render\\MainContent\\HtmlRenderer->renderResponse(Array, Object(Symfony\\Component\\HttpFoundation\\Request), Object(Drupal\\Core\\Routing\\CurrentRouteMatch))\n#18 /var/www/oursite.org/htdocs/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): Drupal\\Core\\EventSubscriber\\MainContentViewSubscriber->onViewRenderArray(Object(Symfony\\Component\\HttpKernel\\Event\\GetResponseForControllerResultEvent), 'kernel.view', Object(Drupal\\Component\\EventDispatcher\\ContainerAwareEventDispatcher))\n#19 /var/www/oursite.org/htdocs/vendor/symfony/http-kernel/HttpKernel.php(149): Drupal\\Component\\EventDispatcher\\ContainerAwareEventDispatcher->dispatch('kernel.view', Object(Symfony\\Component\\HttpKernel\\Event\\GetResponseForControllerResultEvent))\n#20 /var/www/oursite.org/htdocs/vendor/symfony/http-kernel/HttpKernel.php(64): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw(Object(Symfony\\Component\\HttpFoundation\\Request), 1)\n#21 /var/www/oursite.org/htdocs/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\\Component\\HttpKernel\\HttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#22 /var/www/oursite.org/htdocs/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\\Core\\StackMiddleware\\Session->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#23 /var/www/oursite.org/htdocs/core/modules/page_cache/src/StackMiddleware/PageCache.php(99): Drupal\\Core\\StackMiddleware\\KernelPreHandle->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#24 /var/www/oursite.org/htdocs/core/modules/page_cache/src/StackMiddleware/PageCache.php(78): Drupal\\page_cache\\StackMiddleware\\PageCache->pass(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#25 /var/www/oursite.org/htdocs/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\\page_cache\\StackMiddleware\\PageCache->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#26 /var/www/oursite.org/htdocs/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(50): Drupal\\Core\\StackMiddleware\\ReverseProxyMiddleware->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#27 /var/www/oursite.org/htdocs/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\\Core\\StackMiddleware\\NegotiationMiddleware->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#28 /var/www/oursite.org/htdocs/core/lib/Drupal/Core/DrupalKernel.php(656): Stack\\StackedHttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#29 /var/www/oursite.org/htdocs/index.php(19): Drupal\\Core\\DrupalKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request))\n#30 {main}

I am following - and trying the solutions in - every post I can find about this issue, but with no luck. Can anyone give me some tips? I am well out of my wheelhouse... :(

aspilicious’s picture

Seems like An issue with adaptive theme, can you look at their issue queue? Maybe they have a new version to.

dxvargas’s picture

Hello, just wanna say that I was getting this error without ds (I'm using panels and page_manager).
I've followed the inspiration of patch #12 and solved the problem by manually enabling "layout_discovery".
Thanks.

remyyyyy’s picture

HeLLo all,

1 - Moove "drupal/core": "~8.3" from require in place of replace on composer.json file (in root directory of your drupal).

2 - composer update

3 - drush upc && drush updatedb

4 – drush dl ds

5 – drush pmu layout_plugin

6 – drush en layout_discovery ds

7 - drush updatedb

6 – drush cr

And you're back in business !

Cheers ;)

hassebasse’s picture

drush dl ds-8.x-3.1 made it for me