Symfony 2.0=>;Symfony 2.1:Twig_Error_Runtime-注意:Translator.php第130行中的数组到字符串转换

Symfony 2.0=>;Symfony 2.1:Twig_Error_Runtime-注意:Translator.php第130行中的数组到字符串转换,twig,symfony-2.1,Twig,Symfony 2.1,将symfony应用程序从2.0.19版升级到2.1.8版时出错 我刚刚提交了一份联系人表格,我有以下错误: Twig_Error_Runtime: An exception has been thrown during the rendering of a template ("Notice: Array to string conversion in /vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.ph

将symfony应用程序从2.0.19版升级到2.1.8版时出错

我刚刚提交了一份联系人表格,我有以下错误:

Twig_Error_Runtime: An exception has been thrown during the rendering of a template ("Notice: Array to string conversion in /vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php line 130") in "AppBundle:Contact:index.html.twig".

at Twig_Template->displayWithErrorHandling(array(entities))
请注意,如果刷新页面,则不会出现错误

请帮忙,我快疯了

谢谢


山姆

酷,我找到了解决办法:-)

这是因为我试图转换非字符串值。flashbag值现在是数组而不是字符串

希望它能帮助一些人:-)


山姆:这有什么帮助吗?如果没有,请显示一些代码:)谢谢您的帮助。明天我会给你所有的错误,因为不幸的是这对我没有帮助