-
Notifications
You must be signed in to change notification settings - Fork 197
Warning: strtr() expects parameter 1 to be string, object given #75
Comments
HI,
and hence
cached call
$this->fileLinkFormat here is object Symfony\Component\HttpKernel\Debug\FileLinkFormatter I debugged same code with symfony 2.8 But if call this function separately outside block {% macro set_handler..... You can solve temporary this problem by comment this piece of code
|
same problem |
+1 |
Same issue here, seems like 3.2 for twig-bridge has changed the way this is handled and fixes the issue. |
Changed in composer.json to
All works fine. Someone should create a PR... |
Hi,
I've downloaded the skeleton and when I go on the index, I have this error:
[2016-12-03 18:16:20] app.CRITICAL: Twig_Error_Runtime: An exception has been thrown during the rendering of a template ("Warning: strtr() expects parameter 1 to be string, object given") in "@WebProfiler/Collector/request.html.twig" at line 271. (uncaught exception) at C:\wamp\www\sv\vendor\twig\twig\lib\Twig\Template.php line 222 {"exception":"[object] (Twig_Error_Runtime(code: 0): An exception has been thrown during the rendering of a template (\"Warning: strtr() expects parameter 1 to be string, object given\") in \"@WebProfiler/Collector/request.html.twig\" at line 271. at C:\\wamp\\www\\sv\\vendor\\twig\\twig\\lib\\Twig\\Template.php:222, Symfony\\Component\\Debug\\Exception\\ContextErrorException(code: 0): Warning: strtr() expects parameter 1 to be string, object given at C:\\wamp\\www\\sv\\vendor\\symfony\\twig-bridge\\Extension\\CodeExtension.php:197)"} []
I am on Windows 10, php 7.x
Do you have any idea how to fix it please?
Thanks.
The text was updated successfully, but these errors were encountered: