- Issue created by @enimae1
In the short-term have you tried turning xdebug off? Are there any core patches installed on the site?
This could be the same as 🐛 Aggregation changes in 10.1 break xdebug Postponed: needs info .
I don't have any core patches, and I tried to turning xdebug off but I got probably the same error :
Service Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
you can find below the entire log error
The website encountered an unexpected error. Try again later. Error: Xdebug has detected a possible infinite loop, and aborted your script with a stack depth of '512' frames in Drupal\Core\Cache\Context\CacheContextsManager->optimizeTokens() (line 164 of core/lib/Drupal/Core/Cache/Context/CacheContextsManager.php). Drupal\Core\Cache\Context\CacheContextsManager->convertTokensToKeys() (Line: 242) Drupal\Core\Cache\VariationCache->createCacheIdFast() (Line: 173) Drupal\Core\Cache\VariationCache->getRedirectChain() (Line: 35) Drupal\Core\Cache\VariationCache->get() (Line: 80) Drupal\Core\Session\AccessPolicyProcessor->processAccessPolicies() (Line: 23) Drupal\Core\Session\PermissionChecker->hasPermission() (Line: 129) Drupal\Core\Session\UserSession->hasPermission() (Line: 121) Drupal\Core\Session\AccountProxy->hasPermission() (Line: 154) Drupal\Core\Access\AccessResult::allowedIfHasPermissions() (Line: 43) Drupal\user\Access\PermissionAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 106) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->hasAccessToChildMenuItems() (Line: 79) Drupal\system\Access\SystemAdminMenuBlockAccessCheck->access() call_user_func_array() (Line: 160) Drupal\Core\Access\AccessManager->performCheck() (Line: 136) Drupal\Core\Access\AccessManager->check() (Line: 93) Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 218) Drupal\Core\Menu\DefaultMenuLinkTreeManipulators->menuLinkCheckAccess() (Line: 107) Drupal\Core\Menu\DefaultMenuLinkTreeManipulators->checkAccess() call_user_func() (Line: 153) Drupal\Core\Menu\MenuLinkTree->transform() (Line: 124) Drupal\toolbar\Controller\ToolbarController::preRenderGetRenderedSubtrees() call_user_func_array() (Line: 113) Drupal\Core\Render\Renderer->doTrustedCallback() (Line: 870) Drupal\Core\Render\Renderer->doCallback() (Line: 432) Drupal\Core\Render\Renderer->doRender() (Line: 248) Drupal\Core\Render\Renderer->render() (Line: 283) {closure}() (Line: 638) Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 282) toolbar_get_rendered_subtrees() (Line: 295) _toolbar_get_subtrees_hash() (Line: 168) toolbar_toolbar() (Line: 53) Drupal\hook_event_dispatcher\HookEventDispatcherModuleHandler::Drupal\hook_event_dispatcher\{closure}() (Line: 395) Drupal\Core\Extension\ModuleHandler->invokeAllWith() (Line: 68) Drupal\hook_event_dispatcher\HookEventDispatcherModuleHandler->invokeAllWith() (Line: 52) Drupal\hook_event_dispatcher\HookEventDispatcherModuleHandler->invokeAll() (Line: 78) Drupal\toolbar\Element\Toolbar::preRenderToolbar() call_user_func_array() (Line: 113) Drupal\Core\Render\Renderer->doTrustedCallback() (Line: 870) Drupal\Core\Render\Renderer->doCallback() (Line: 432) Drupal\Core\Render\Renderer->doRender() (Line: 504) Drupal\Core\Render\Renderer->doRender() (Line: 248) Drupal\Core\Render\Renderer->render() (Line: 475) Drupal\Core\Template\TwigExtension->escapeFilter() (Line: 77) __TwigTemplate_24fac3dae8c1b7d00e1c3b78d133fc00->doDisplay() (Line: 360) Twig\Template->yield() (Line: 335) Twig\Template->render() (Line: 38) Twig\TemplateWrapper->render() (Line: 33) twig_render_template() (Line: 348) Drupal\Core\Theme\ThemeManager->render() (Line: 491) Drupal\Core\Render\Renderer->doRender() (Line: 248) Drupal\Core\Render\Renderer->render() (Line: 158) Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 638) Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 153) Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse() (Line: 90) Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray() call_user_func() (Line: 111) Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (Line: 186) Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76) Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 53) Drupal\Core\StackMiddleware\Session->handle() (Line: 48) Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28) Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 106) Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85) Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48) Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51) Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 36) Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51) Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 741) Drupal\Core\DrupalKernel->handle() (Line: 19)
Which core and contributed modules are installed in this site and what are their versions?
- 🇬🇷Greece vensires
I experience the same issue in a website with Drupal 10.3, Groups 3.2.x, Flexible Permissions 1.x and VariationCache 8.x-1.5.
@enimae1, might you have the same setup?
- 🇬🇷Greece vensires
Added issue which might be related. It was created to fix 🐛 Restrict access to empty top level administration pages Fixed and is the last change in the SystemAdminMenuBlockAccessCheck.php file.
- 🇬🇷Greece vensires
Seems I was too fast to blame the previous issue or my set of contrib modules installed.
In a custom module I had the following
mymodule.links.menu.yml
file:mymodule.admin: title: Administrative Users route_name: system.admin weight: 0 parent: system.admin
Having the same parent and route_name is not necessarily bad in logic but does cause the recursion in SystemAdminMenuBlockAccessCheck::hasAccessToChildMenuItems() seen above.
@enimae1, might you have have some relative in your own installation?