Jump to content

Smarty Compiler Exception - with message Syntax Error in template


Recommended Posts

When i make a new order on my website, as a logged in user, in 1st step after i put my address for purchase, it keeps giving me this error:

Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/var/www/vhosts/taxco.com.ve/httpdocs/themes/taxco/order-address.tpl" on line 88 "{if !$smarty.foreach.inv_loop.first},{/if}{$field_name|json_encode}" unknown modifier "json_encode"' in /var/www/vhosts/taxco.com.ve/httpdocs/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php:667 Stack trace: #0 /var/www/vhosts/taxco.com.ve/httpdocs/tools/smarty/sysplugins/smarty_internal_compile_private_modifier.php(132): Smarty_Internal_TemplateCompilerBase->trigger_template_error('unknown modifie...', 88) #1 /var/www/vhosts/taxco.com.ve/httpdocs/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php(475): Smarty_Internal_Compile_Private_Modifier->compile(Array, Object(Smarty_Internal_SmartyTemplateCompiler), Array, NULL, NULL) #2 /var/www/vhosts/taxco.com.ve/httpdocs/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php(259): Smarty_Internal_TemplateCompilerBase->callTagCompil in /var/www/vhosts/taxco.com.ve/httpdocs/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 667

Seems like there is an error in order-address.tpl, i looked for any error there, but seems it is just the code that raise the exception, because of other error,s i'm new into PS and i can't really figure out why is this happening.

 

I'm using 'Venezuela' localization and PS version 1.5.6.0

 

This is the link to the error:

 

http://www.taxco.com.ve/index.php?controller=order&step=1

 

Any ideas? Thanks in advance!

Link to comment
Share on other sites

  • 2 months later...
  • 1 month later...

I am also having the same problem.

 

Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/home/cybersho/public_html/modules/homeslider/views/templates/hook/header.tpl" on line 2 "{addJsDef homeslider_loop=$homeslider.loop}" unknown tag "addJsDef"' in /home/cybersho/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php:667 Stack trace: #0 /home/cybersho/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php(453): Smarty_Internal_TemplateCompilerBase->trigger_template_error('unknown tag "ad...', 2) #1 /home/cybersho/public_html/tools/smarty/sysplugins/smarty_internal_templateparser.php(2388): Smarty_Internal_TemplateCompilerBase->compileTag('addJsDef', Array) #2 /home/cybersho/public_html/tools/smarty/sysplugins/smarty_internal_templateparser.php(3101): Smarty_Internal_Templateparser->yy_r36() #3 /home/cybersho/public_html/tools/smarty/sysplugins/smarty_internal_templateparser.php(3201): Smarty_Internal_Templateparser->yy_reduce(36) #4 /hom in /home/cybersho/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 667

Has anyone a solution? I can still get into the admin page and make changes but the site doesn't come up.

Link to comment
Share on other sites

  • 2 months later...

Hi,

 

I had a similar problem. Mine was solved after tweaking mb string configurations in php.ini. I am not exactly sure what was causing problem due to short time. But you may try it.

 

Muktadir

When i make a new order on my website, as a logged in user, in 1st step after i put my address for purchase, it keeps giving me this error:

Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/var/www/vhosts/taxco.com.ve/httpdocs/themes/taxco/order-address.tpl" on line 88 "{if !$smarty.foreach.inv_loop.first},{/if}{$field_name|json_encode}" unknown modifier "json_encode"' in /var/www/vhosts/taxco.com.ve/httpdocs/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php:667 Stack trace: #0 /var/www/vhosts/taxco.com.ve/httpdocs/tools/smarty/sysplugins/smarty_internal_compile_private_modifier.php(132): Smarty_Internal_TemplateCompilerBase->trigger_template_error('unknown modifie...', 88) #1 /var/www/vhosts/taxco.com.ve/httpdocs/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php(475): Smarty_Internal_Compile_Private_Modifier->compile(Array, Object(Smarty_Internal_SmartyTemplateCompiler), Array, NULL, NULL) #2 /var/www/vhosts/taxco.com.ve/httpdocs/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php(259): Smarty_Internal_TemplateCompilerBase->callTagCompil in /var/www/vhosts/taxco.com.ve/httpdocs/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 667

Seems like there is an error in order-address.tpl, i looked for any error there, but seems it is just the code that raise the exception, because of other error,s i'm new into PS and i can't really figure out why is this happening.

 

I'm using 'Venezuela' localization and PS version 1.5.6.0

 

This is the link to the error:

 

http://www.taxco.com.ve/index.php?controller=order&step=1

 

Any ideas? Thanks in advance!

 

Link to comment
Share on other sites

  • 10 months later...

Hi i've got a similar problem with my BO

 

Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "/home/prestashop/www/admin42/themes/default/template/helpers/view/view.tpl" on line 25 "" illegal recursive call of "" <-- thrown in /home/prestashop/www/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 25

 

it show only when I try to go on the order detail page

 

Can you help me?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...