avatar mbabker
mbabker
12 Feb 2017

Tried bumping to Twig 2.0 locally, getting a Twig_Error_Runtime: Accessing Twig_Template attributes is forbidden. in ROOT/templates/tracker/issues.index.twig:47 error message. From a quick search, this is usually related to macros, but in this particular case the error line is using our translation filter ({{ 'Status'|_ }} is the exact issue). Trying to add a filter named translate or using the functions doesn't help matters.

So, something in our setup is causing Twig to bug out. Whether we've hit a core bug with them or it's an issue on our end is to be determined.

avatar mbabker mbabker - open - 12 Feb 2017
avatar mbabker
mbabker - comment - 12 Feb 2017

Nevermind, it was a macros related issue. 2.0 requires macros to be imported in each file, I found the one file that needed this import.

avatar mbabker mbabker - change - 12 Feb 2017
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-02-12 19:32:33
Closed_By mbabker
avatar mbabker mbabker - close - 12 Feb 2017

Add a Comment

Login with GitHub to post a comment