微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

关于容器未初始化的 Drupal 意外错误

如何解决关于容器未初始化的 Drupal 意外错误

一位朋友在安装 Drupal 时遇到问题。

这是错误及其详细输出

The website encountered an unexpected error. Please try again later.
Drupal\Core\DependencyInjection\ContainernotinitializedException: \Drupal::$container is not initialized yet. \Drupal::setContainer() must be called with a real container. in Drupal::getContainer() (line 130 of /var/www/vhosts/domain/httpdocs/core/lib/Drupal.PHP).
Drupal::getContainer() (Line: 158)
Drupal::service('extension.list.module') (Line: 271)
drupal_get_filename('module','auth0') (Line: 310)
drupal_get_path('module','auth0') (Line: 5)
include('/var/www/vhosts/domain/httpdocs/modules/gtms/src/Authentication/Provider/Auth0Auth.PHP') (Line: 444)
Composer\Autoload\includeFile('/var/www/vhosts/domain/httpdocs/modules/gtms/src/Authentication/Provider/Auth0Auth.PHP') (Line: 322)
Composer\Autoload\ClassLoader->loadClass('Drupal\gtms\Authentication\Provider\Auth0Auth')
spl_autoload_call('Drupal\gtms\Authentication\Provider\Auth0Auth')
is_subclass_of('Drupal\gtms\Authentication\Provider\Auth0Auth','Drupal\Core\Authentication\AuthenticationProviderInterface') (Line: 163)
Drupal\Core\DependencyInjection\Compiler\TaggedHandlersPass->processServiceCollectorPass(Array,'authentication_collector',Object) (Line: 97)
Drupal\Core\DependencyInjection\Compiler\TaggedHandlersPass->process(Object) (Line: 140)
Symfony\Component\DependencyInjection\Compiler\Compiler->compile(Object) (Line: 789)
Symfony\Component\DependencyInjection\ContainerBuilder->compile() (Line: 1321)
Drupal\Core\DrupalKernel->compileContainer() (Line: 902)
Drupal\Core\DrupalKernel->initializeContainer() (Line: 477)
Drupal\Core\DrupalKernel->boot() (Line: 693)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

我一直在尝试检查出了什么问题,但没有任何运气,感觉好像他们的网站更新不好,但我不确定,有人能指出我正确的方向吗?老实说,我本人对 Drupal 并不感兴趣,但如果可能的话,我想解决他们的问题,以便他们的网站可以恢复运行。

在有人问之前,不,我无法访问 shell 或 Drush

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。