面临Drupal 8到9转换的pathauto问题?


SymfonyComponentDependencyInjectionExceptionServiceNotFoundException: You have requested a non-existent service "path.alias_manager". Did you mean this: "path_alias.manager"? in DrupalComponentDependencyInjectionContainer->get() (line 156 of core/lib/Drupal/Component/DependencyInjection/Container.php).
Drupal::service('path.alias_manager') (Line: 378)
custom_hreflang_page_attachments_alter(Array, NULL, NULL) (Line: 539)
DrupalCoreExtensionModuleHandler->alter('page_attachments', Array) (Line: 319)
DrupalCoreRenderMainContentHtmlRenderer->invokePageAttachmentHooks(Array) (Line: 288)
DrupalCoreRenderMainContentHtmlRenderer->prepare(Array, Object, Object) (Line: 132)
DrupalCoreRenderMainContentHtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
DrupalCoreEventSubscriberMainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
DrupalComponentEventDispatcherContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 163)
SymfonyComponentHttpKernelHttpKernel->handleRaw(Object, 1) (Line: 80)
SymfonyComponentHttpKernelHttpKernel->handle(Object, 1, 1) (Line: 58)
DrupalCoreStackMiddlewareSession->handle(Object, 1, 1) (Line: 48)
DrupalCoreStackMiddlewareKernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupalpage_cacheStackMiddlewarePageCache->pass(Object, 1, 1) (Line: 85)
Drupalpage_cacheStackMiddlewarePageCache->handle(Object, 1, 1) (Line: 50)
DrupalbanBanMiddleware->handle(Object, 1, 1) (Line: 48)
DrupalCoreStackMiddlewareReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
DrupalCoreStackMiddlewareNegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
StackStackedHttpKernel->handle(Object, 1, 1) (Line: 708)
DrupalCoreDrupalKernel->handle(Object) (Line: 19)

面对这个问题。如何解决这个问题?当我点击用户页面时,打开面对这个问题的内容。

根据我的收集,服务名称应该是" path_alias.manager ";而不是"path.alias_manager"(注意下划线和句号的位置互换了)。

相关内容

  • 没有找到相关文章

最新更新