fabpot/Twig — Issue #470: Attribute "data" does not exist for Node "Twig_Node"
Author: djpate
Created: 2011-10-17 12:53:30+00:00
State: open

I just updated twig but now some of my pages dont display anymore.

Here is the error message

PHP Fatal error: Uncaught exception 'Twig_Error_Runtime' with message 'Attribute "data" does not exist for Node "Twig_Node" in "member.html".' in /var/www/.../Kinaf/libs/Twig/lib/Twig/Node.php:142
Stack trace:
#0 /var/www/.../Kinaf/libs/Twig-extensions/lib/Twig/Extensions/Node/Trans.php(121): Twig_Node->getAttribute('data')
#1 /var/www/.../Kinaf/libs/Twig-extensions/lib/Twig/Extensions/Node/Trans.php(34): Twig_Extensions_Node_Trans->compileString(Object(Twig_Node))
#2 /var/www/.../Kinaf/libs/Twig/lib/Twig/Node.php(106): Twig_Extensions_Node_Trans->compile(Object(Twig_Compiler))
#3 /var/www/.../Kinaf/libs/Twig/lib/Twig/Compiler.php(81): Twig_Node->compile(Object(Twig_Compiler))
#4 /var/www/.../Kinaf/libs/Twig/lib/Twig/Node/Block.php(40): Twig_Compiler->subcompile(Object(Twig_Node))
#5 /var/www/.../Kinaf/libs/Twig/lib/Twig/Node.php(106): Twig_Node_Block->compile(Object(Twig_Compiler))
#6 /var/www/.../Kinaf/libs/Twig/lib/Twig/Node.php in /var/www/.../Kinaf/libs/Twig/lib/Twig/Node.php on line 142, referer: http://.../

and the content with trans in member.html

{% set firstname = current_user.firstname %}

{% trans %}
Bienvenue {{ firstname }} !
{% endtrans %}

any idea on what's going on ?

Thanks