当我启动(定制的)EDirectory应用程序时,当我访问http://localhost:8000/config.php
时会出现此错误。该参数设置为什么?在哪里设置?
InvalidArgumentException in appDevDebugProjectContainer.php line 9176:
The parameter "alias_faq_url_divisor" must be defined.
in appDevDebugProjectContainer.php line 9176
at appDevDebugProjectContainer->getParameter('alias_faq_url_divisor') in classes.php line 2330
at Router->Symfony\Bundle\FrameworkBundle\Routing\{closure}(array('%alias_faq_url_divisor%', 'alias_faq_url_divisor'))
at preg_replace_callback('/%%|%([^%\s]++)%/', object(Closure), '/%alias_faq_url_divisor%') in classes.php line 2340
at Router->resolve('/%alias_faq_url_divisor%') in classes.php line 2299
at Router->resolveParameters(object(RouteCollection)) in classes.php line 2276
at Router->getRouteCollection() in classes.php line 2056
at Router->getMatcherDumperInstance() in classes.php line 2006
at Router->Symfony\Component\Routing\{closure}(object(ResourceCheckerConfigCache))
at call_user_func(object(Closure), object(ResourceCheckerConfigCache)) in ResourceCheckerConfigCacheFactory.php line 46
at ResourceCheckerConfigCacheFactory->cache('/cygdrive/c/Users/Chloe/workspace/wiseher/edirectory/app/cache/dev/127.0.0.1/appDevDebugProjectContainerUrlMatcher.php', object(Closure)) in classes.php line 2016
at Router->getMatcher() in classes.php line 1980
at Router->matchRequest(object(MultiDomainRequest)) in classes.php line 2772
at RouterListener->onKernelRequest(object(GetResponseEvent), 'kernel.request', object(TraceableEventDispatcher))
at call_user_func(array(object(RouterListener), 'onKernelRequest'), object(GetResponseEvent), 'kernel.request', object(TraceableEventDispatcher)) in WrappedListener.php line 61
at WrappedListener->__invoke(object(GetResponseEvent), 'kernel.request', object(ContainerAwareEventDispatcher))
at call_user_func(object(WrappedListener), object(GetResponseEvent), 'kernel.request', object(ContainerAwareEventDispatcher)) in classes.php line 2544
at EventDispatcher->doDispatch(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.request', object(GetResponseEvent)) in classes.php line 2459
at EventDispatcher->dispatch('kernel.request', object(GetResponseEvent)) in TraceableEventDispatcher.php line 140
at TraceableEventDispatcher->dispatch('kernel.request', object(GetResponseEvent)) in HttpKernel.php line 125
at HttpKernel->handleRaw(object(MultiDomainRequest), '1') in HttpKernel.php line 64
at HttpKernel->handle(object(MultiDomainRequest), '1', true) in ContainerAwareHttpKernel.php line 69
at ContainerAwareHttpKernel->handle(object(MultiDomainRequest), '1', true) in Kernel.php line 185
at Kernel->handle(object(MultiDomainRequest)) in app_dev.php line 32
at require('/cygdrive/c/Users/Chloe/workspace/wiseher/edirectory/web/app_dev.php') in router_dev.php line 40
我也收到此错误(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
我使用composer update
设置了应用程序:
https://symfony.com/doc/2.8/setup.html#installing-an-existing-symfony-application
Symfony 2.8,PHP 5.6.27
答案 0 :(得分:1)
我通过将app/config/domains/domain.route.yml.sample
的内容复制到localhost.route.yml
来解决它。我还添加了<domain>.route.yml
中的以下2行:
alias_forum_module: forum
alias_forum_allcategories_url_divisor: forum