#303 PHP Fatal error: Uncaught exception 'SmartyCompilerException'

closed-fixed
None
1
2015-01-26
2013-11-01
john doe
No

Hi,

At revision 1551 I´ve got the following error by executing http://SERVER/postfixadmin. It´s a database migration to another server from an older svn version. Setup page shows me all are right.

PHP Fatal error:  Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/usr/share/postfixadmin/templates/index.tpl"  on line 26 "<h3>Template not found</h3>({php}print $_SERVER ['PHP_SELF'];{/php})" unknown tag "php"' in /usr/share/postfixadmin/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php:617\nStack trace:\n#0 /usr/share/postfixadmin/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php(402): Smarty_Internal_TemplateCompilerBase->trigger_template_error('unknown tag "ph...', 26)\n#1 /usr/share/postfixadmin/smarty/libs/sysplugins/smarty_internal_templateparser.php(2371): Smarty_Internal_TemplateCompilerBase->compileTag('php', Array)\n#2 /usr/share/postfixadmin/smarty/libs/sysplugins/smarty_internal_templateparser.php(3064): Smarty_Internal_Templateparser->yy_r36()\n#3 /usr/share/postfixadmin/smarty/libs/sysplugins/smarty_internal_templateparser.php(3164): Smarty_Internal_Templateparser->yy_reduce(36)\n#4 /usr/share/postfixadmin/smarty/libs/sysplugins/smarty_inter in /usr/share/postfixadmin/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 617

Thanks,
JD

Discussion

  • Christian Boltz

    Christian Boltz - 2013-11-01
    • status: open --> closed-fixed
     
  • Christian Boltz

    Christian Boltz - 2013-11-01

    It seems I overlooked a {php} when switching from SmartyBC to smarty.

    Fixed in SVN r1552 - thanks for the report!

    That said - I'm surprised that you hit this code section - it's for "Template not found" (strictly speaking, it should be "$smarty_template not set"). If you get the "Template not found" message, feel free to open another bugreport and include a short reproducer.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks