This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

Can't insert variables in templates


avatar
cosmin 269
From: -
The PHP parser found the following syntax error in the template:

Parse error: syntax error, unexpected T_STRING, expecting ']' in /home/cleahost/public_html/forex/classes/class_templates.php(90) : eval()'d code on line 6
Happens whenever I try to add a variable and with any template.
I got this with

{$insert[''site_block_1'']}
{$insert[''site_block_2'']}
{$insert[''site_block_3'']}

and with
{$insert['site_copyright']}

<!-- Do not remove -->
{$insert['site_notice']}
<!-- Do not remove -->

This happens even with the default template. This goes beyond fixing a mistyped sql table, so I can't fix it on my own.

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: Can't insert variables in templates
avatar
Administrator
1342
From: Austria
The PHP parser found the following syntax error in the template:

Parse error: syntax error, unexpected T_STRING, expecting ']' in /home/cleahost/public_html/forex/classes/class_templates.php(90) : eval()'d code on line 6
Happens whenever I try to add a variable and with any template.
I got this with

{$insert[''site_block_1'']}
{$insert[''site_block_2'']}
{$insert[''site_block_3'']}

The proper syntax is:

{$insert['site_block_1']}
{$insert['site_block_2']}
{$insert['site_block_3']}
1 Re: Can't insert variables in templates
avatar
OP 269
From: -
More specifically, this happens when I try to save any template, after one of contentteller's variables was added. Please don't leave me hanging too long with this, I've already spent two days redoing the design because I thought there was something wrong with my sql backups of the template. Happy Easter!

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.