Site crash with authenticated user

Created on 31 October 2023, about 1 year ago
Updated 9 November 2023, about 1 year ago

Problem/Motivation

Site crashes for authenticated users after installing

Steps to reproduce

Install and enable gin_toolbar_custom_menu.
Configure a menu, role and an icon for the new custom menu
Save configuration.
Login with a regular user acount.

Warning: Undefined array key "#items" in Drupal\gin_toolbar_custom_menu\Render\Element\GinToolbarCustomMenu::preRenderTray() (line 81 of D:\wwwroot\bhs_invoice\web\modules\contrib\gin_toolbar_custom_menu\src\Render\Element\GinToolbarCustomMenu.php)
#0 D:\wwwroot\bhs_invoice\web\core\includes\bootstrap.inc(347): _drupal_error_handler_real()
#1 D:\wwwroot\bhs_invoice\web\modules\contrib\gin_toolbar_custom_menu\src\Render\Element\GinToolbarCustomMenu.php(81): _drupal_error_handler()
#2 [internal function]: Drupal\gin_toolbar_custom_menu\Render\Element\GinToolbarCustomMenu::preRenderTray()
#3 D:\wwwroot\bhs_invoice\web\core\lib\Drupal\Core\Security\DoTrustedCallbackTrait.php(101): call_user_func_array()
#4 D:\wwwroot\bhs_invoice\web\core\lib\Drupal\Core\Render\Renderer.php(788): Drupal\Core\Render\Renderer->doTrustedCallback()
#5 D:\wwwroot\bhs_invoice\web\core\lib\Drupal\Core\Render\Renderer.php(374): Drupal\Core\Render\Renderer->doCallback()
#6 D:\wwwroot\bhs_invoice\web\core\lib\Drupal\Core\Render\Renderer.php(446): Drupal\Core\Render\Renderer->doRender()
#7 D:\wwwroot\bhs_invoice\web\core\lib\Drupal\Core\Render\Renderer.php(446): Drupal\Core\Render\Renderer->doRender()
#8 D:\wwwroot\bhs_invoice\web\core\lib\Drupal\Core\Render\Renderer.php(204): Drupal\Core\Render\Renderer->doRender()
#9 D:\wwwroot\bhs_invoice\web\core\modules\toolbar\toolbar.module(94): Drupal\Core\Render\Renderer->render()
#10 [internal function]: template_preprocess_toolbar()
#11 D:\wwwroot\bhs_invoice\web\core\lib\Drupal\Core\Theme\ThemeManager.php(287): call_user_func_array()
#12 D:\wwwroot\bhs_invoice\web\core\lib\Drupal\Core\Render\Renderer.php(433): Drupal\Core\Theme\ThemeManager->render()
#13 D:\wwwroot\bhs_invoice\web\core\lib\Drupal\Core\Render\Renderer.php(446): Drupal\Core\Render\Renderer->doRender()
#14 D:\wwwroot\bhs_invoice\web\core\lib\Drupal\Core\Render\Renderer.php(204): Drupal\Core\Render\Renderer->doRender()
#15 D:\wwwroot\bhs_invoice\web\core\lib\Drupal\Core\Template\TwigExtension.php(479): Drupal\Core\Render\Renderer->render()
#16 D:\wwwroot\bhs_invoice\web\sites\default\files\php\twig\654107214caac_html.html.twig_1VyrLOsMRY3iJuWOcXk121CQM\099AIvWjYG3tgjtONUcb_hTAGecHyBw_hulObNmMi4o.php(83): Drupal\Core\Template\TwigExtension->escapeFilter()
#17 D:\wwwroot\bhs_invoice\vendor\twig\twig\src\Template.php(405): __TwigTemplate_d42d24c5a923f22e8faff0f3feeb3b4c8d75aa9ab79ace7f0871329e9a68c3e9->doDisplay()
#18 D:\wwwroot\bhs_invoice\vendor\twig\twig\src\Template.php(378): Twig\Template->displayWithErrorHandling()
#19 D:\wwwroot\bhs_invoice\vendor\twig\twig\src\Template.php(390): Twig\Template->display()
#20 D:\wwwroot\bhs_invoice\web\core\themes\engines\twig\twig.engine(55): Twig\Template->render()
#21 D:\wwwroot\bhs_invoice\web\core\lib\Drupal\Core\Theme\ThemeManager.php(384): twig_render_template()
#22 D:\wwwroot\bhs_invoice\web\core\lib\Drupal\Core\Render\Renderer.php(433): Drupal\Core\Theme\ThemeManager->render()
#23 D:\wwwroot\bhs_invoice\web\core\lib\Drupal\Core\Render\Renderer.php(204): Drupal\Core\Render\Renderer->doRender()
#24 D:\wwwroot\bhs_invoice\web\core\lib\Drupal\Core\Render\MainContent\HtmlRenderer.php(162): Drupal\Core\Render\Renderer->render()
#25 D:\wwwroot\bhs_invoice\web\core\lib\Drupal\Core\Render\Renderer.php(580): Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}()
#26 D:\wwwroot\bhs_invoice\web\core\lib\Drupal\Core\Render\MainContent\HtmlRenderer.php(163): Drupal\Core\Render\Renderer->executeInRenderContext()
#27 D:\wwwroot\bhs_invoice\web\core\lib\Drupal\Core\EventSubscriber\MainContentViewSubscriber.php(90): Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse()
#28 [internal function]: Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray()
#29 D:\wwwroot\bhs_invoice\web\core\lib\Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher.php(142): call_user_func()
#30 D:\wwwroot\bhs_invoice\vendor\symfony\http-kernel\HttpKernel.php(174): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()
#31 D:\wwwroot\bhs_invoice\vendor\symfony\http-kernel\HttpKernel.php(81): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#32 D:\wwwroot\bhs_invoice\web\core\lib\Drupal\Core\StackMiddleware\Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
#33 D:\wwwroot\bhs_invoice\web\core\lib\Drupal\Core\StackMiddleware\KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#34 D:\wwwroot\bhs_invoice\web\core\modules\page_cache\src\StackMiddleware\PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#35 D:\wwwroot\bhs_invoice\web\core\modules\page_cache\src\StackMiddleware\PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
#36 D:\wwwroot\bhs_invoice\web\core\modules\ban\src\BanMiddleware.php(50): Drupal\page_cache\StackMiddleware\PageCache->handle()
#37 D:\wwwroot\bhs_invoice\web\core\lib\Drupal\Core\StackMiddleware\ReverseProxyMiddleware.php(48): Drupal\ban\BanMiddleware->handle()
#38 D:\wwwroot\bhs_invoice\web\core\lib\Drupal\Core\StackMiddleware\NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#39 D:\wwwroot\bhs_invoice\vendor\stack\builder\src\Stack\StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#40 D:\wwwroot\bhs_invoice\web\core\lib\Drupal\Core\DrupalKernel.php(718): Stack\StackedHttpKernel->handle()
#41 D:\wwwroot\bhs_invoice\web\index.php(19): Drupal\Core\DrupalKernel->handle()
#42 {main}

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇺🇸United States goose2000

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

Comments & Activities

Production build 0.71.5 2024