symfony — eDirectory: исключение в файле Settings.php, строка 79: не удается найти локальный хост узла для этой установки eDirectory

Я получаю эту ошибку при посещении любой страницы (http://localhost:8000/config.php) настроенного приложения eDirectory.

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

Решение

Я изменяю следующую строку в app/config/domain.yml

От

multi_domain:
hosts:
staging.wisher.com:

к

multi_domain:
hosts:
localhost:
0

Другие решения

Других решений пока нет …

По вопросам рекламы ammmcru@yandex.ru
Adblock
detector