关于容器未初始化的 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 (将#修改为@)