Hi there,
I’m quite new using php. I have a php error from using a simple ‘if’ statement:
A PHP Error was encountered
Severity: User Warning
Message: Invalid EE Conditional Variable: {if ""_4 !=""}
Filename: libraries/Functions.php
Line Number: 2843
Here is my code:
{exp:channel:entries channel="news_blog" limit="10" orderby="date" sort="desc" backspace="218" disable="category_fields|categories|member_data|pagination"}
{if link_group_name !=""}
<h2>{link_group_name}</h2>
<p> {/if}<br />
{if links !=""}<br />
{links}<br />
{/if}</p>
<p> {if link_group_name_2 !=""}<br /></p><h2>{link_group_name_2}</h2>
<p> {/if}<br />
{if links_2 !=""}<br />
{links_2}<br />
{/if}<br />
<br />
{if link_group_name_3 !=""}<br /></p><h2>{link_group_name_3}</h2>
<p> {/if}<br />
{if links_3 !=""}<br />
{links_3}<br />
{/if}</p>
<p> {if link_group_name_4 !=""}<br /></p><h2>{link_group_name_4}</h2>
<p> {/if}<br />
{if links_4 !=""}<br />
{links_4}<br />
{/if}</p>
<p> {/exp:channel:entries}I thought it might be because I didn’t have allow php turned on in the templat preferences but I have turned it on and its still the same. I would be greatful for suggestions.
Many Thanks