PHP error after upgrading to v3.0.1 when logged as administrator
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3531301. -->
Reported by: [gillesbailleux](https://www.drupal.org/user/65230)
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>After upgrading to v3.0.1, the all non admin nodes display the error: he website encountered an unexpected error </p>
<p>The message in the console is:<br>
<code>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).</code></p>
<p>The backtrace mentions:</p>
<pre>#0 /home/USER/public_html/web/themes/contrib/gin/src/GinNavigation.php(333): Drupal\gin\GinNavigation->getNavigationAdminMenuItems()<br>#1 /home/USER/public_html/web/modules/contrib/gin_toolbar/gin_toolbar.module(82): Drupal\gin\GinNavigation->getNavigationStructure()<br>#2 /home/USER/public_html/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(367): gin_toolbar_preprocess_html()<br>#3 /home/USER/public_html/web/core/lib/Drupal/Core/Theme/ThemeManager.php(304): Drupal\Core\Extension\ModuleHandler->invoke()<br>#4 /home/USER/public_html/web/core/lib/Drupal/Core/Render/Renderer.php(492): Drupal\Core\Theme\ThemeManager->render()<br>#5 /home/USER/public_html/web/core/lib/Drupal/Core/Render/Renderer.php(222): Drupal\Core\Render\Renderer->doRender()<br>#6 /home/USER/public_html/web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(162): Drupal\Core\Render\Renderer->render()<br>#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}()<br>#8 /home/USER/public_html/web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(157): Drupal\Core\Render\Renderer->executeInRenderContext()<br>#9 /home/USER/public_html/web/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php(90): Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse()<br>#10 /home/USER/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php(246): Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray()<br>#11 /home/USER/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php(206): Symfony\Component\EventDispatcher\EventDispatcher::{closure:Symfony\Component\EventDispatcher\EventDispatcher::optimizeListeners():241}()<br>#12 /home/USER/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php(56): Symfony\Component\EventDispatcher\EventDispatcher->callListeners()<br>#13 /home/USER/public_html/vendor/symfony/http-kernel/HttpKernel.php(188): Symfony\Component\EventDispatcher\EventDispatcher->dispatch()<br>#14 /home/USER/public_html/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()<br>#15 /home/USER/public_html/web/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle()<br>#16 /home/USER/public_html/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()<br>#17 /home/USER/public_html/web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle()<br>#18 /home/USER/public_html/web/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle()<br>#19 /home/USER/public_html/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(116): Drupal\big_pipe\StackMiddleware\ContentLength->handle()<br>#20 /home/USER/public_html/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(90): Drupal\page_cache\StackMiddleware\PageCache->pass()<br>#21 /home/USER/public_html/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle()<br>#22 /home/USER/public_html/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()<br>#23 /home/USER/public_html/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(53): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()<br>#24 /home/USER/public_html/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle()<br>#25 /home/USER/public_html/web/core/lib/Drupal/Core/DrupalKernel.php(715): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()<br>#26 /home/USER/public_html/web/index.php(19): Drupal\Core\DrupalKernel->handle()<br>#27 {main}</pre><h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<p>Upgrade from v3.0.0 to v3.0.1</p>
issue