Problem/Motivation

After upgrading to v3.0.1, the all non admin nodes display the error: he website encountered an unexpected error

The message in the console is:
Error: Call to undefined function Drupal\gin\_gin_module_is_active() in Drupal\gin\GinNavigation->getNavigationAdminMenuItems() (line 70 of /home/USER/public_html/web/themes/contrib/gin/src/GinNavigation.php).

The backtrace mentions:

#0 /home/USER/public_html/web/themes/contrib/gin/src/GinNavigation.php(333): Drupal\gin\GinNavigation->getNavigationAdminMenuItems()
#1 /home/USER/public_html/web/modules/contrib/gin_toolbar/gin_toolbar.module(82): Drupal\gin\GinNavigation->getNavigationStructure()
#2 /home/USER/public_html/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(367): gin_toolbar_preprocess_html()
#3 /home/USER/public_html/web/core/lib/Drupal/Core/Theme/ThemeManager.php(304): Drupal\Core\Extension\ModuleHandler->invoke()
#4 /home/USER/public_html/web/core/lib/Drupal/Core/Render/Renderer.php(492): Drupal\Core\Theme\ThemeManager->render()
#5 /home/USER/public_html/web/core/lib/Drupal/Core/Render/Renderer.php(222): Drupal\Core\Render\Renderer->doRender()
#6 /home/USER/public_html/web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(162): Drupal\Core\Render\Renderer->render()
#7 /home/USER/public_html/web/core/lib/Drupal/Core/Render/Renderer.php(622): Drupal\Core\Render\MainContent\HtmlRenderer->{closure:Drupal\Core\Render\MainContent\HtmlRenderer::renderResponse():157}()
#8 /home/USER/public_html/web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(157): Drupal\Core\Render\Renderer->executeInRenderContext()
#9 /home/USER/public_html/web/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php(90): Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse()
#10 /home/USER/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php(246): Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray()
#11 /home/USER/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php(206): Symfony\Component\EventDispatcher\EventDispatcher::{closure:Symfony\Component\EventDispatcher\EventDispatcher::optimizeListeners():241}()
#12 /home/USER/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php(56): Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
#13 /home/USER/public_html/vendor/symfony/http-kernel/HttpKernel.php(188): Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
#14 /home/USER/public_html/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#15 /home/USER/public_html/web/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle()
#16 /home/USER/public_html/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#17 /home/USER/public_html/web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#18 /home/USER/public_html/web/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle()
#19 /home/USER/public_html/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(116): Drupal\big_pipe\StackMiddleware\ContentLength->handle()
#20 /home/USER/public_html/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(90): Drupal\page_cache\StackMiddleware\PageCache->pass()
#21 /home/USER/public_html/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle()
#22 /home/USER/public_html/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#23 /home/USER/public_html/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(53): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#24 /home/USER/public_html/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle()
#25 /home/USER/public_html/web/core/lib/Drupal/Core/DrupalKernel.php(715): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
#26 /home/USER/public_html/web/index.php(19): Drupal\Core\DrupalKernel->handle()
#27 {main}

Steps to reproduce

Upgrade from v3.0.0 to v3.0.1

Comments

gillesbailleux created an issue. See original summary.

gillesbailleux’s picture

Issue summary: View changes
jurgenhaas’s picture

Project: Gin Toolbar » Gin Admin Theme
Version: 3.0.1 » 5.0.x-dev

Sorry for that, this is actually a Gin thing, not Gin Toolbar. Moved it and will fix right away.

  • jurgenhaas committed 89758ee6 on 5.0.x
    Issue #3531301 by gillesbailleux, jurgenhaas: PHP error after upgrading...
jurgenhaas’s picture

Status: Active » Fixed

Fixed and published 5.0.2

gillesbailleux’s picture

Upgrading to Gin 5.0.2 fixes the issue. Once again, thank you very much for your quick answser.

Status: Fixed » Closed (fixed)

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