访问自定义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
答案 0 :(得分:0)
我在app/config/domain.yml
来自
multi_domain:
hosts:
staging.wisher.com:
收件人
multi_domain:
hosts:
localhost: