提取代码后出现问题[Symfony \ Component \ DependencyInjection \ Exception \ ParameterNotFoundException]

时间:2019-02-11 12:04:23

标签: php symfony

我刚刚在产品环境中提取了一些代码。变化很小(我在html.twig页面之一中添加了{{form_widget(meeting.text)}}。 没什么。

了解服务器何时关闭以及加载页面app_dev.php时出现的错误:


in ParameterBag.php line 84
at ParameterBag->get('kernel.bundles_metadata') in bootstrap.php.cache line 1897
at Container->getParameter('kernel.bundles_metadata') in FrameworkExtension.php line 713
at FrameworkExtension->getValidatorMappingFiles(object(ContainerBuilder)) in FrameworkExtension.php line 665
at FrameworkExtension->registerValidationConfiguration(array('enable_annotations' => true, 'enabled' => true, 'static_method' => array('loadValidatorMetadata'), 'translation_domain' => 'validators', 'strict_email' => false), object(ContainerBuilder), object(XmlFileLoader)) in FrameworkExtension.php line 114
at FrameworkExtension->load(array(array('translator' => array('fallback' => 'en'), 'secret' => '******', 'router' => array('resource' => '/var/www/html/BDLCapital-v3/app/config/routing.yml', 'strict_requirements' => null), 'form' => null, 'csrf_protection' => null, 'validation' => array('enable_annotations' => true), 'templating' => array('engines' => array('twig')), 'default_locale' => 'en', 'trusted_proxies' => null, 'session' => null, 'fragments' => null, 'http_method_override' => true), array('router' => array('resource' => '/var/www/html/myAPP/app/config/routing_dev.yml', 'strict_requirements' => true), 'profiler' => array('only_exceptions' => false))), object(ContainerBuilder)) in MergeExtensionConfigurationPass.php line 59
at MergeExtensionConfigurationPass->process(object(ContainerBuilder)) in MergeExtensionConfigurationPass.php line 39
at MergeExtensionConfigurationPass->process(object(ContainerBuilder)) in Compiler.php line 102
at Compiler->compile(object(ContainerBuilder)) in ContainerBuilder.php line 568
at ContainerBuilder->compile() in bootstrap.php.cache line 2436
at Kernel->initializeContainer() in bootstrap.php.cache line 2215
at Kernel->boot() in bootstrap.php.cache line 2246
at Kernel->handle(object(Request)) in app_dev.php line 22

我在代码中未使用任何parameterbag.php。我什至找不到! kernel.bundles_metadata也是如此。我在代码中找不到它。

这是完整的错误:

  [Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException]
  You have requested a non-existent parameter "kernel.bundles_metadata".

如果您有什么想法对我有很大帮助!

我正在使用symfony 2.7。

编辑:当我尝试执行sudo php应用程序/控制台缓存时:清除,我收到以下消息:

case

感谢您的帮助

0 个答案:

没有答案