All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Variables wrapped in plugin tags appended by garbage

Derek 30 Jul 2014 14:36 problem, rejected

Hey Low - EE 2.9.0, LV 2.5.0.

I have several text variables set to parse early, which I then wrap in plugin tags in my templates. e.g.

{exp:markdown}{lv_footer_blurb}{/exp:markdown}


This worked just dandy under EE 2.8.1, but after upgrading to 2.9.0 in dev, I'm seeing this appended to my output in these circumstances.

{!--ra:00000000613a305c000000002fc18a90 --}


Strangely this only happens when I have one or more line breaks in my variables.

If I replace the variables with the exact same text between the plugin tags inside the template, the string does not appear.

This same thing happens with other plugins, not just Markdown.

Also worth noting is that the plugin formatting is being applied to this string of garbage (for example, a double-dash is being converted to an em dash).

I suspect this is some EE 2.9.0 bug, but this info may lead you to report it in a more informative fashion than I can?

Replies

  1. Low 30 Jul 2014 16:58

    I can see the behaviour, yes. And apparently, it also happens with native Snippets instead of early parsed vars, definitely making this an EE bug.

    To work around it, you can also try this syntax, if the vars in question are Textarea vars:

    {exp:low_variables:single var="lv_footer_blurb" formatting="markdown"}
    The var doesn't need to be early parsed in that case.

    Low 30 Jul 2014 17:01

    FYI, the code responsible for creating those comments is here:

    system/EllisLab/ExpressionEngine/Library/Template/Annotation/Runtime.php#65

    ...added in 2.9.

    Derek 30 Jul 2014 17:16

    Thanks Low!