I have a conditional statement that checks if anything is selected in a nested Playa field. It worked in EE 2.8.1 but upon upgrading to EE 2.9.2 a parse error occurs:
Error
You have an invalid conditional in your template. Please review your conditionals for an unclosed string, invalid operators, a missing }, or a missing {/if}.
Parser State: Unexpected end of Template “site/.wrapper_page” on line 2; expected ENDIF tag for opening on line 1.
The offending conditional statement is as follows:
{if '{exp:playa:children channel="sidebar_portlets" var_prefix="sidebar"}{sidebar:sidebar-text}{/exp:playa:children}' }
Do Stuff
{if:else}
Do other stuff
{/if}
I have tried alternating the use of single and double quotes, as well as escaping the interior quotes with a "\" as suggested in the EE docs, but to no avail.
I would appreciate any suggestions people may have.
For what it's worth, this conditional starts on line 122 of the template, not line 1 as reported in the parse error above. Not sure if that matters.
Thanks in advance.