升级后无法访问 Drupal /admin/modules 或 /admin/people 9.2.15 -> 9.3.15



就像标题所说的,一切都像预期的那样工作,直到我从9.2.15升级到9.3.15。

当我尝试访问其中一个路径时第一个给了我这个

网站遇到意外错误。请稍后再试。

SymfonyComponentRoutingExceptionRouteNotFoundException: Route "user.admin_permissions.module"不存在。在DrupalCoreRoutingRouteProvider->getRouteByName() (Core/lib/Drupal/Core/Routing/RouteProvider.php第206行).

people选项给了我这个:

The website encountered an unexpected error. Please try again later.
SymfonyComponentRoutingExceptionRouteNotFoundException: Route "user.role.settings" does not exist. in DrupalCoreRoutingRouteProvider->getRouteByName() (line 206 of core/lib/Drupal/Core/Routing/RouteProvider.php).

在composer上没有错误,在任何日志中都没有错误,尽管这出现在我的access.log

- [06/Jun/2022:15:06:56 +0000] "GET /admin/people/permissions HTTP/1.0" 500 3053 "https://d9d.text-based.net/admin/people/permissions/administrator" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:99.0) Gecko/20100101 Firefox/99.0"

下面是显示在页面上的完整错误:

The website encountered an unexpected error. Please try again later.
SymfonyComponentRoutingExceptionRouteNotFoundException: Route "user.role.settings" does not exist. in DrupalCoreRoutingRouteProvider->getRouteByName() (line 206 of core/lib/Drupal/Core/Routing/RouteProvider.php).
DrupalCoreMenuLocalTaskDefault->getRouteParameters() (Line: 310)
DrupalCoreMenuLocalTaskManager->getTasksBuild() (Line: 358)
DrupalCoreMenuLocalTaskManager->getLocalTasks() (Line: 95)
DrupalCoreMenuPluginBlockLocalTasksBlock->build() (Line: 171)
DrupalblockBlockViewBuilder::preRender()
call_user_func_array() (Line: 101)
DrupalCoreRenderRenderer->doTrustedCallback() (Line: 772)
DrupalCoreRenderRenderer->doCallback() (Line: 363)
DrupalCoreRenderRenderer->doRender() (Line: 435)
DrupalCoreRenderRenderer->doRender() (Line: 201)
DrupalCoreRenderRenderer->render() (Line: 463)
DrupalCoreTemplateTwigExtension->escapeFilter() (Line: 43)
__TwigTemplate_00188c1691be8aad1e9679a8355ec8b1aad8fb0e1a0552901f64354cc31fc535->doDisplay() (Line: 405)
TwigTemplate->displayWithErrorHandling() (Line: 378)
TwigTemplate->display() (Line: 390)
TwigTemplate->render() (Line: 55)
twig_render_template() (Line: 384)
DrupalCoreThemeThemeManager->render() (Line: 422)
DrupalCoreRenderRenderer->doRender() (Line: 201)
DrupalCoreRenderRenderer->render() (Line: 463)
DrupalCoreTemplateTwigExtension->escapeFilter() (Line: 86)
__TwigTemplate_52bf370994174cae6411a160df9bc52e747d5a7e02be204f64e1e34dad454a33->doDisplay() (Line: 405)
TwigTemplate->displayWithErrorHandling() (Line: 378)
TwigTemplate->display() (Line: 390)
TwigTemplate->render() (Line: 55)
twig_render_template() (Line: 384)
DrupalCoreThemeThemeManager->render() (Line: 422)
DrupalCoreRenderRenderer->doRender() (Line: 201)
DrupalCoreRenderRenderer->render() (Line: 162)
DrupalCoreRenderMainContentHtmlRenderer->DrupalCoreRenderMainContent{closure}() (Line: 564)
DrupalCoreRenderRenderer->executeInRenderContext() (Line: 163)
DrupalCoreRenderMainContentHtmlRenderer->renderResponse() (Line: 90)
DrupalCoreEventSubscriberMainContentViewSubscriber->onViewRenderArray()
call_user_func() (Line: 142)
DrupalComponentEventDispatcherContainerAwareEventDispatcher->dispatch() (Line: 163)
SymfonyComponentHttpKernelHttpKernel->handleRaw() (Line: 80)
SymfonyComponentHttpKernelHttpKernel->handle() (Line: 58)
DrupalCoreStackMiddlewareSession->handle() (Line: 48)
DrupalCoreStackMiddlewareKernelPreHandle->handle() (Line: 48)
DrupalCoreStackMiddlewareReverseProxyMiddleware->handle() (Line: 51)
DrupalCoreStackMiddlewareNegotiationMiddleware->handle() (Line: 23)
StackStackedHttpKernel->handle() (Line: 708)
DrupalCoreDrupalKernel->handle() (Line: 19)

Composer在更新时没有显示错误,我也通过rush更新了db。日志中也没有错误

不能100%确定是什么修复了它,但我从备份中恢复并从8.9.18重新启动并清理了我的模块文件夹。有些模块是通过drupal UI安装的,只是在我的模块文件夹中,而不是在modules/contrib中,所以我卸载了这些模块,并将它们从模块文件夹中删除,然后通过composer重新安装并启用它们。之后,我清理缓存,并做了一个快速升级,并继续升级到9,就像我以前做的那样。然后就成功了。

相关内容

  • 没有找到相关文章

最新更新