Skip to content
Advertisement

Drupal Error 502 bad gateway. When I Access TabPages inside of Content

I’m having this issue with Drupal after an update from Drupal 7 to Drupal 8.

The error is the following, when I go to the admin page, I go to content -> filter by -> tab pages -> and try to access a tab page a 502 bad gateway error presents.

My question is, someone has encounter with this particular error? You have any idea how can to solve it?

I never use Drupal, this project came to me through my company

Thank you!

Error: Call to a member function setDisplay() on null in Drupaltwig_viewsTwigRenderView::renderViewWithTitle() (line 59 of /var/www/drupal/modules/contrib/twig_views/src/Twig/RenderView.php)
#0 /var/www/drupal/sites/default/files/php/twig/61feb32897263_page--node--tab-pages.htm_hLYAbaj1Mcn9LHSkwCDf8ZbIY/xcq3DAem6ZT2uZs-Kb3Gn7rZluiRQRmG__g4ETTayds.php(130): Drupaltwig_viewsTwigRenderView::renderViewWithTitle()
#1 /var/www/drupal/vendor/twig/twig/src/Template.php(455): __TwigTemplate_827f20d5d2f1c354e33f539028960e11adcc66cb1f8d12dddbb1dcb48a017905->doDisplay()
#2 /var/www/drupal/vendor/twig/twig/src/Template.php(422): TwigTemplate->displayWithErrorHandling()
#3 /var/www/drupal/vendor/twig/twig/src/Template.php(434): TwigTemplate->display()
#4 /var/www/drupal/core/themes/engines/twig/twig.engine(64): TwigTemplate->render()
#5 /var/www/drupal/core/lib/Drupal/Core/Theme/ThemeManager.php(384): twig_render_template()
#6 /var/www/drupal/core/lib/Drupal/Core/Render/Renderer.php(431): DrupalCoreThemeThemeManager->render()
#7 /var/www/drupal/core/lib/Drupal/Core/Render/Renderer.php(200): DrupalCoreRenderRenderer->doRender()
#8 /var/www/drupal/core/lib/Drupal/Core/Template/TwigExtension.php(501): DrupalCoreRenderRenderer->render()
#9 /var/www/drupal/sites/default/files/php/twig/61feb32897263_html.html.twig_kaa8ME2Dkk82q-sPQZLCsSAsP/9-CkZxCTZaBASgY3GcbELndOM5DYZkgNaMvxIM5XsDc.php(118): DrupalCoreTemplateTwigExtension->escapeFilter()
#10 /var/www/drupal/vendor/twig/twig/src/Template.php(455): __TwigTemplate_f599ebce244696485f15c3f1883c62b8ba60d77b9f9eb7c31be207d98bac4f5c->doDisplay()
#11 /var/www/drupal/vendor/twig/twig/src/Template.php(422): TwigTemplate->displayWithErrorHandling()
#12 /var/www/drupal/vendor/twig/twig/src/Template.php(434): TwigTemplate->display()
#13 /var/www/drupal/core/themes/engines/twig/twig.engine(64): TwigTemplate->render()
#14 /var/www/drupal/core/lib/Drupal/Core/Theme/ThemeManager.php(384): twig_render_template()
#15 /var/www/drupal/core/lib/Drupal/Core/Render/Renderer.php(431): DrupalCoreThemeThemeManager->render()
#16 /var/www/drupal/core/lib/Drupal/Core/Render/Renderer.php(200): DrupalCoreRenderRenderer->doRender()
#17 /var/www/drupal/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(147): DrupalCoreRenderRenderer->render()
#18 /var/www/drupal/core/lib/Drupal/Core/Render/Renderer.php(573): DrupalCoreRenderMainContentHtmlRenderer->DrupalCoreRenderMainContent{closure}()
#19 /var/www/drupal/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(148): DrupalCoreRenderRenderer->executeInRenderContext()
#20 /var/www/drupal/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php(90): DrupalCoreRenderMainContentHtmlRenderer->renderResponse()
#21 [internal function]: DrupalCoreEventSubscriberMainContentViewSubscriber->onViewRenderArray()
#22 /var/www/drupal/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func()
#23 /var/www/drupal/vendor/symfony/http-kernel/HttpKernel.php(156): DrupalComponentEventDispatcherContainerAwareEventDispatcher->dispatch()
#24 /var/www/drupal/vendor/symfony/http-kernel/HttpKernel.php(68): SymfonyComponentHttpKernelHttpKernel->handleRaw()
#25 /var/www/drupal/core/lib/Drupal/Core/StackMiddleware/Session.php(57): SymfonyComponentHttpKernelHttpKernel->handle()
#26 /var/www/drupal/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): DrupalCoreStackMiddlewareSession->handle()
#27 /var/www/drupal/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): DrupalCoreStackMiddlewareKernelPreHandle->handle()
#28 /var/www/drupal/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): DrupalCoreStackMiddlewareReverseProxyMiddleware->handle()
#29 /var/www/drupal/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): DrupalCoreStackMiddlewareNegotiationMiddleware->handle()
#30 /var/www/drupal/core/lib/Drupal/Core/DrupalKernel.php(708): StackStackedHttpKernel->handle()
#31 /var/www/drupal/index.php(19): DrupalCoreDrupalKernel->handle()
#32 {main}

Advertisement

Answer

Is “Tab Pages” a Content Type in your filter?

Have you tried running the Update Database job and clearing Drupal’s cache?

If that doesn’t sort it out. I would then try installing the Twig Tweak Module. Then locate the server folder of the theme in use at: /web/themes/custom/…

Inside there, it seems you might have a custom template utilizing the Twig function:

{{ render_view('view_machine_name', 'display_machine_name', $arg1, $arg2, ...) }}

If you locate that, then try updating that function with the one provided by Twig Tweak.

{{ drupal_view('view_machine_name', 'display_machine_name') }}

Then clear Drupal’s cache.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement