|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
Patje1970 Smarty n00b
Joined: 19 Jul 2013 Posts: 1
|
Posted: Fri Jul 19, 2013 4:17 pm Post subject: Help with error |
|
|
Hi, I'm a newby with Smarty... I got a website of a friend of mine who has an error on the website... i looked at all the website templates but cannot find the error.
Can anyone maybe help me with the error as written down below?
Thank you in advance.
Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "templates/block/tweet.tpl" on line 3 "{php}" unknown tag "php"' in /var/www/virtual/nietschieten.nl/htdocs/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php:431 Stack trace: #0 /var/www/virtual/nietschieten.nl/htdocs/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php(253): Smarty_Internal_TemplateCompilerBase->trigger_template_error('unknown tag "ph...', 3) #1 /var/www/virtual/nietschieten.nl/htdocs/smarty/libs/sysplugins/smarty_internal_templateparser.php(2322): Smarty_Internal_TemplateCompilerBase->compileTag('php', Array) #2 /var/www/virtual/nietschieten.nl/htdocs/smarty/libs/sysplugins/smarty_internal_templateparser.php(2812): Smarty_Internal_Templateparser->yy_r36() #3 /var/www/virtual/nietschieten.nl/htdocs/smarty/libs/sysplugins/smarty_internal_templateparser.php(2912): Smarty_Internal_Templateparser->yy_reduce(36) #4 /var/www/virtual/nietschieten.nl/htdocs/smarty/libs/sysplugins/smarty_inte in /var/www/virtual/nietschieten.nl/htdocs/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 431 |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Fri Jul 19, 2013 6:51 pm Post subject: |
|
|
is $security enabled? if so, smarty will not allow {php} tags (by default) |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Fri Jul 19, 2013 6:52 pm Post subject: |
|
|
See http://www.smarty.net/docs/en/language.function.php.tpl
The {php} tag is depricated in Smarty 3 because it's bad praxis to put PHP code in templates and it could cause security porblems.
To enable it you must load SmartyBC.class.php and instance SmartyBC instead of Smarty. |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Fri Jul 19, 2013 7:02 pm Post subject: |
|
|
Hmm there was no notice that an upgrade had occurred |
|
Back to top |
|
|
|
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
|