搜尋

首頁  >  問答  >  主體

升級 9.2.15 -> 9.3.15 後無法存取 Drupal /admin/modules 或 /admin/people

就像標題所說,一切都按預期工作,直到我從 9.2.15 升級到 9.3.15 它是基於作曲家的安裝。

當我嘗試存取其中一個路徑時,第一個路徑給了我這個

網站遇到意外錯誤。請稍後重試。

SymfonyComponentRoutingExceptionRouteNotFoundException:路由「user.admin_permissions.module」不存在。在 DrupalCoreRoutingRouteProvider->getRouteByName() 中(core/lib/Drupal/Core/Routing/RouteProvider.php 第 206 行)。

人員選項給了我這個:

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).

作曲家沒有錯誤,任何日誌中都沒有錯誤,儘管這出現在我的 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 在更新時沒有顯示錯誤,我還透過 drush 更新了資料庫。任何日誌中也沒有錯誤。

P粉463840170P粉463840170368 天前565

全部回覆(1)我來回復

  • P粉883223328

    P粉8832233282023-12-12 10:05:30

    不是 100% 確定是什麼修復了它,但我從備份中恢復並從 8.9.18 重新啟動並清理了我的模組資料夾。有些模組是透過drupal UI 安裝的,僅在我的模組資料夾中,而不是在module/contrib 中,因此我卸載了這些模組並將它們從模組資料夾中刪除,然後透過Composer 重新安裝並啟用它們。之後,我清理了快取並執行了 drush updb,然後像之前一樣繼續升級到 9。然後就成功了。

    回覆
    0
  • 取消回覆