当我访问自定义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
发布于 2018-07-20 02:14:27
我在app/config/domain.yml中更改了以下行
从…
multi_domain:
hosts:
staging.wisher.com:至
multi_domain:
hosts:
localhost:https://stackoverflow.com/questions/51413640
复制相似问题