eDirectory:Settings.php第79行中的异常:找不到此eDirectory安装的主机本地主机

时间:2018-07-19 02:51:34

标签: php symfony arcasolutions-edirectory

访问自定义eDirectory应用程序的任何页面(http://localhost:8000/config.php)时都会出现此错误。

2/2
Exception in Settings.php line 79:
Cannot find host localhost for this eDirectory installation

in Settings.php line 79
at Settings->setActiveHost('localhost') in Settings.php line 38

具有29行堆栈跟踪。这是第38行

    $domain = $this->container->get("kernel")->getDomain() and $this->setActiveHost($domain);

这是第75-80行

    if (isset($this->hostConfig[$activeHost])) {
        $this->activeHost = $activeHost;
    } else {
        $this->container->get('logger')->critical("[MultiDomain/Settings] - Unable to set Active Host.");
        throw new \Exception(sprintf('Cannot find host %s for this eDirectory installation', $activeHost));
    }

Symfony 2.8,PHP 5.6.27

1 个答案:

答案 0 :(得分:0)

我在app/config/domain.yml

中更改了以下行

来自

multi_domain:
    hosts:
        staging.wisher.com:

收件人

multi_domain:
    hosts:
        localhost: