HI, when I customise the default view with a 2 or 3 column layout it fails, see message and log report below.

This also happens when I set a custom block display as well as paragraphs.

If I use a custom view I create in the View modes it works ok, but this is creating a limitation on what I want to do with paragraphs, I want to have several views modes on the same page, two, three and four column, all on default view.

Thanks for any assistance on this.

AlexJ

Drupal core 8.3.4 - Display Suite 8.x-3.1 - AdaptiveTheme 8.x-1.0 - Paragraphs 8.x-1.1

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

Recent log messages

Message:
Error: Cannot use object of type Drupal\Core\Layout\LayoutDefinition as array in _at_core_layout_plugin_attributes() (line 1613 of /home/theplantgf/theplantmedicineschool.com/themes/adaptivetheme/at_core/at_core.theme) #0 /home/theplantgf/theplantmedicineschool.com/themes/adaptivetheme/at_core/at_core.theme(1639): _at_core_layout_plugin_attributes(Array) #1 /home/theplantgf/theplantmedicineschool.com/core/lib/Drupal/Core/Theme/ThemeManager.php(287): at_core_preprocess_at_layout(Array, 'ds_2col_stacked...', Array) #2 /home/theplantgf/theplantmedicineschool.com/core/lib/Drupal/Core/Render/Renderer.php(435): Drupal\Core\Theme\ThemeManager->render('ds_2col_stacked...', Array) #3 /home/theplantgf/theplantmedicineschool.com/core/lib/Drupal/Core/Render/Renderer.php(195): Drupal\Core\Render\Renderer->doRender(Array, false) #4 /home/theplantgf/theplantmedicineschool.com/core/lib/Drupal/Core/Template/TwigExtension.php(490): Drupal\Core\Render\Renderer->render(Array) #5 /home/theplantgf/theplantmedicineschool.com/sites/default/files/php/twig/594b84fb3ddb6_ds-entity-view.html.twig_NObK78Zmg2u5jjbblpe1Xrx5e/rttENtwsa_jNM1jx4QkFzYHTrasuqPS1He43z1Ov-m8.php(43): Drupal\Core\Template\TwigExtension->escapeFilter(Object(Drupal\Core\Template\TwigEnvironment), Array, 'html', NULL, true) #6 /home/theplantgf/theplantmedicineschool.com/vendor/twig/twig/lib/Twig/Template.php(379): __TwigTemplate_7aef3ddf0de43137771c2e2bc422839222321eeead59e7129c5decaf1f1fb04b->doDisplay(Array, Array) #7 /home/theplantgf/theplantmedicineschool.com/vendor/twig/twig/lib/Twig/Template.php(347): Twig_Template->displayWithErrorHandling(Array, Array) #8 /home/theplantgf/theplantmedicineschool.com/vendor/twig/twig/lib/Twig/Template.php(358): Twig_Template->display(Array) #9 /home/theplantgf/theplantmedicineschool.com/core/themes/engines/twig/twig.engine(64): Twig_Template->render(Array) #10 /home/theplantgf/theplantmedicineschool.com/core/lib/Drupal/Core/Theme/ThemeManager.php(384): twig_render_template('modules/ds/temp...', Array) #11 /home/theplantgf/theplantmedicineschool.com/core/lib/Drupal/Core/Render/Renderer.php(435): Drupal\Core\Theme\ThemeManager->render('ds_entity_view', Array) #12 /home/theplantgf/theplantmedicineschool.com/core/lib/Drupal/Core/Render/Renderer.php(195): Drupal\Core\Render\Renderer->doRender(Array, false) #13 /home/theplantgf/theplantmedicineschool.com/core/lib/Drupal/Core/Template/TwigExtension.php(490): Drupal\Core\Render\Renderer->render(Array) #14 /home/theplantgf/theplantmedicineschool.com/sites/default/files/php/twig/594b84fb3ddb6_block.html.twig_KwVcXt5vlU35G38QMK93i-klE/8u0xNEiiMKFNt_abQWbO-3ehAlQiEQHqTf53mvjL10c.php(91): Drupal\Core\Template\TwigExtension->escapeFilter(Object(Drupal\Core\Template\TwigEnvironment), Array, 'html', NULL, true) #15 /home/theplantgf/theplantmedicineschool.com/vendor/twig/twig/lib/Twig/Template.php(186): __TwigTemplate_5f674537ba92ed766ece2d6782ab54923153031be7b7185a816810effe00204a->block_content(Array, Array) #16 /home/theplantgf/theplantmedicineschool.com/sites/default/files/php/twig/594b84fb3ddb6_block.html.twig_KwVcXt5vlU35G38QMK93i-klE/8u0xNEiiMKFNt_abQWbO-3ehAlQiEQHqTf53mvjL10c.php(76): Twig_Template->displayBlock('content', Array, Array) #17 /home/theplantgf/theplantmedicineschool.com/vendor/twig/twig/lib/Twig/Template.php(379): __TwigTemplate_5f674537ba92ed766ece2d6782ab54923153031be7b7185a816810effe00204a->doDisplay(Array, Array) #18 /home/theplantgf/theplantmedicineschool.com/vendor/twig/twig/lib/Twig/Template.php(347): Twig_Template->displayWithErrorHandling(Array, Array) #19 /home/theplantgf/theplantmedicineschool.com/vendor/twig/twig/lib/Twig/Template.php(358): Twig_Template->display(Array) #20 /home/theplantgf/theplantmedicineschool.com/core/themes/engines/twig/twig.engine(64): Twig_Template->render(Array) #21 /home/theplantgf/theplantmedicineschool.com/core/lib/Drupal/Core/Theme/ThemeManager.php(384): twig_render_template('themes/pms__/te...', Array) #22 /home/theplantgf/theplantmedicineschool.com/core/lib/Drupal/Core/Render/Renderer.php(435): Drupal\Core\Theme\ThemeManager->render('block', Array) #23 /home/theplantgf/theplantmedicineschool.com/core/lib/Drupal/Core/Render/Renderer.php(448): Drupal\Core\Render\Renderer->doRender(Array) #24 /home/theplantgf/theplantmedicineschool.com/core/lib/Drupal/Core/Render/Renderer.php(195): Drupal\Core\Render\Renderer->doRender(Array, false) #25 /home/theplantgf/theplantmedicineschool.com/themes/adaptivetheme/at_core/at_core.theme(1015): Drupal\Core\Render\Renderer->render(Array) #26 /home/theplantgf/theplantmedicineschool.com/core/lib/Drupal/Core/Theme/ThemeManager.php(287): at_core_preprocess_page(Array, 'page', Array) #27 /home/theplantgf/theplantmedicineschool.com/core/lib/Drupal/Core/Render/Renderer.php(435): Drupal\Core\Theme\ThemeManager->render('page', Array) #28 /home/theplantgf/theplantmedicineschool.com/core/lib/Drupal/Core/Render/Renderer.php(195): Drupal\Core\Render\Renderer->doRender(Array, false) #29 /home/theplantgf/theplantmedicineschool.com/core/lib/Drupal/Core/Template/TwigExtension.php(490): Drupal\Core\Render\Renderer->render(Array) #30 /home/theplantgf/theplantmedicineschool.com/sites/default/files/php/twig/594b84fb3ddb6_html.html.twig_kOrj3YJgEojb1fOl4aa40REt1/lB9JC1ArF3DZ2M1Z6G7stK-PcUwJEvaxPbcy1VRk3nY.php(162): Drupal\Core\Template\TwigExtension->escapeFilter(Object(Drupal\Core\Template\TwigEnvironment), Array, 'html', NULL, true) #31 /home/theplantgf/theplantmedicineschool.com/vendor/twig/twig/lib/Twig/Template.php(379): __TwigTemplate_e29cad8a5fc13a6ebebd60a5c9abf46a842fd673d05733712434c2dc81dbf4db->doDisplay(Array, Array) #32 /home/theplantgf/theplantmedicineschool.com/vendor/twig/twig/lib/Twig/Template.php(347): Twig_Template->displayWithErrorHandling(Array, Array) #33 /home/theplantgf/theplantmedicineschool.com/vendor/twig/twig/lib/Twig/Template.php(358): Twig_Template->display(Array) #34 /home/theplantgf/theplantmedicineschool.com/core/themes/engines/twig/twig.engine(64): Twig_Template->render(Array) #35 /home/theplantgf/theplantmedicineschool.com/core/lib/Drupal/Core/Theme/ThemeManager.php(384): twig_render_template('themes/pms__/te...', Array) #36 /home/theplantgf/theplantmedicineschool.com/core/lib/Drupal/Core/Render/Renderer.php(435): Drupal\Core\Theme\ThemeManager->render('html', Array) #37 /home/theplantgf/theplantmedicineschool.com/core/lib/Drupal/Core/Render/Renderer.php(195): Drupal\Core\Render\Renderer->doRender(Array, false) #38 /home/theplantgf/theplantmedicineschool.com/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(147): Drupal\Core\Render\Renderer->render(Array) #39 /home/theplantgf/theplantmedicineschool.com/core/lib/Drupal/Core/Render/Renderer.php(574): Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() #40 /home/theplantgf/theplantmedicineschool.com/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(148): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #41 /home/theplantgf/theplantmedicineschool.com/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 /home/theplantgf/theplantmedicineschool.com/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 /home/theplantgf/theplantmedicineschool.com/vendor/symfony/http-kernel/HttpKernel.php(149): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.view', Object(Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent)) #44 /home/theplantgf/theplantmedicineschool.com/vendor/symfony/http-kernel/HttpKernel.php(64): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #45 /home/theplantgf/theplantmedicineschool.com/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #46 /home/theplantgf/theplantmedicineschool.com/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #47 /home/theplantgf/theplantmedicineschool.com/core/modules/page_cache/src/StackMiddleware/PageCache.php(99): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #48 /home/theplantgf/theplantmedicineschool.com/core/modules/page_cache/src/StackMiddleware/PageCache.php(78): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #49 /home/theplantgf/theplantmedicineschool.com/core/modules/ban/src/BanMiddleware.php(50): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #50 /home/theplantgf/theplantmedicineschool.com/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\ban\BanMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #51 /home/theplantgf/theplantmedicineschool.com/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(50): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #52 /home/theplantgf/theplantmedicineschool.com/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #53 /home/theplantgf/theplantmedicineschool.com/core/lib/Drupal/Core/DrupalKernel.php(656): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #54 /home/theplantgf/theplantmedicineschool.com/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #55 {main}.

Comments

AlexJ created an issue. See original summary.

AlexJ’s picture

Issue summary: View changes
AlexJ’s picture

Issue summary: View changes
AlexJ’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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