Symfony $ form-> createView会在浏览器中导致错误代码:ERR_EMPTY_RESPONSE

时间:2014-04-23 19:48:00

标签: php symfony

我们的控制器方法创建一个表单对象,并将$ form-> createView()传递给视图数据。 Monolog捕获一些调试消息,但不会产生错误或响应。

我们正在使用symfony 2.3.12。

问题不会发生在我的本地MAMP环境中,但确实发生在流浪盒和我们的生产/临时服务器上。

我的猜测是它与我们的环境有关,但我希望有人经历过并解决过这个问题。

此要点还包括控制器,模型对象和FormType。 https://gist.github.com/jeremymoore/453edcdbc3236f8e25b8

有什么想法吗?

dev.log或prod.log看起来像这样:

[2014-04-23 15:13:04] request.INFO: Matched route "ir_compare_select" (parameters: "_controller": "IR\CameraBundle\Controller\CompareController::irCompareAction", "_route": "ir_compare_select") [] []
[2014-04-23 15:13:04] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest". [] []
[2014-04-23 15:13:04] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\Security\Http\Firewall::onKernelRequest". [] []
[2014-04-23 15:13:04] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ErrorsLoggerListener::injectLogger". [] []
[2014-04-23 15:13:04] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ErrorsLoggerListener::injectLogger". [] []
[2014-04-23 15:13:04] event.DEBUG: Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController". [] []
[2014-04-23 15:13:04] event.DEBUG: Notified event "kernel.controller" to listener "Symfony\Component\HttpKernel\DataCollector\RequestDataCollector::onKernelController". [] []
[2014-04-23 15:13:04] event.DEBUG: Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ControllerListener::onKernelController". [] []
[2014-04-23 15:13:04] event.DEBUG: Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ParamConverterListener::onKernelController". [] []
[2014-04-23 15:13:04] event.DEBUG: Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\TemplateListener::onKernelController". [] []

在Chrome中看到错误消息: 其他浏览器显示类似的消息

Error Screenshot

0 个答案:

没有答案