灾难恢复后访问Drupal 8网站时出现AccessDeniedHttpException

时间:2018-09-10 08:02:23

标签: symfony drupal-8 access-denied

在灾难恢复后访问Drupal 8网站时,我收到此错误消息:

  

网站遇到意外错误。请再试一遍   以后.Symfony \ Component \ HttpKernel \ Exception \ AccessDeniedHttpException:   在Drupal \ Core \ Routing \ AccessAwareRouter-> checkAccess()中   (core / lib / Drupal / Core / Routing / AccessAwareRouter.php的第114行)。

     Drupal \ Core \ Routing \ AccessAwareRouter-> matchRequest(Object)   (行:101)       Symfony \ Component \ HttpKernel \ EventListener \ RouterListener-> onKernelRequest(Object,   'kernel.request',对象)(第108行)       Drupal \ Component \ EventDispatcher \ ContainerAwareEventDispatcher-> dispatch('kernel.request',   对象)(线:129)       Symfony \ Component \ HttpKernel \ HttpKernel-> handleRaw(Object,1)(行:68)       Symfony \ Component \ HttpKernel \ HttpKernel-> handle(Object,1,1)(第57行)       Drupal \ Core \ StackMiddleware \ Session-> handle(Object,1,1)(第47行)       Drupal \ Core \ StackMiddleware \ KernelPreHandle-> handle(Object,1,1)(行:184)       Drupal \ page_cache \ StackMiddleware \ PageCache-> fetch(Object,1,1)(行:121)       Drupal \ page_cache \ StackMiddleware \ PageCache-> lookup(Object,1,1)(第75行)       Drupal \ page_cache \ StackMiddleware \ PageCache-> handle(Object,1,1)(第47行)       Drupal \ Core \ StackMiddleware \ ReverseProxyMiddleware-> handle(对象,   1,1)(行:50)       Drupal \ Core \ StackMiddleware \ NegotiationMiddleware-> handle(对象,   1,1)(第23行)       Stack \ StackedHttpKernel-> handle(Object,1,1)(行:664)       Drupal \ Core \ DrupalKernel-> handle(Object)(第18行)       

通过查看core/lib/Drupal/Core/Routing/AccessAwareRouter.php,并阅读Drupal和Symfony的文档,它指出了当前用户的身份验证可能出问题的方向。为找出问题的根本原因,我应该怎么做?

0 个答案:

没有答案