ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

All expressions in curvy braces are removed from templates

July 05, 2011 4:02am

Subscribe [2]
  • #1 / Jul 05, 2011 4:02am

    timoteus

    25 posts

    Hi!

    After upgrading from 2.1.3 to 2.2.0 my site produced numerous javascript errors - and therefore did not work correctly. An update to 2.2.1 did not change the situation! I examined the problem and found out, that all the expressions in curvy braces e.g. {opacity : 0.5} were removed from the templates (the type was set to ‘javascript’). Even changing the template type to ‘static’ did not change the way the template was parsed.
    After some testing I found out, that ee assumed, that the expressions in curvy braces were global variables - and if there was no suitable global variable registered - the expression was removed from the template - which actually is a big problem. So maybe a change in the way global variables are parsed led to this problem, but at least in templates of the type ‘javascript’ or ‘static’ there should be variable parsing at all.

    I’ve found a workaround: in /system/expressionengine/core/EE_Output.php
    changing var $remove_unparsed_variables (line 31) to FALSE saved the problem!

    I don’t know if this is just a issue on my server, but if somebody can reproduce this, please file a bug report!

  • #2 / Jul 06, 2011 3:18am

    John Henry Donovan

    12339 posts

    timoteus,

    This issue has been resolved

    Follow the instruction on this thread ExpressionEngine Version 2.2.1 Hotfixes and let us know if that solves your issues

  • #3 / Jul 06, 2011 3:29am

    timoteus

    25 posts

    Thanks John,

    the hotfix saves the problem.

  • #4 / Jul 06, 2011 3:40am

    John Henry Donovan

    12339 posts

    Glad you are up and running again.Feel free to start a new thread if you have any more questions

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases