title: Uncaught SmartyCompilerException: Syntax Error in template in server migration
body: <p>I'm transfering a Prestashop server to another server. The origin server is a CentOS with Apache and the destination is a Ubuntu with Nginx. </p>
  
  <p>The problem is that I got this error when I open a product link in Prestashop:</p>
  
  <blockquote>
    <p>Fatal error: Uncaught SmartyCompilerException: Syntax Error in
    template
    &quot;/var/www/loja/themes/default-bootstrap/product.tpl&quot; on line
    48 &quot;{/addJsDefL}{/strip}{/if}&quot; unexpected closing tag in
    /var/www/loja/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php:667
    Stack trace: #0
    /var/www/loja/tools/smarty/sysplugins/smarty_internal_compilebase.php(170):
    Smarty_Internal_TemplateCompilerBase->trigger_template_error('unexpected
    clos...', 48) #1
    /var/www/loja/tools/smarty/sysplugins/smarty_internal_compile_private_registered_block.php(85):
    Smarty_Internal_CompileBase->closeTag(Object(Smarty_Internal_SmartyTemplateCompiler), 'addJsDefL') #2
    /var/www/loja/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php(475):
    Smarty_Internal_Compile_Private_Registered_Block->compile(Array,
    Object(Smarty_Internal_SmartyTemplateCompiler), Array,
    'addJsDefLclose', NULL) #3
    /var/www/loja/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php(417):
    Smarty_Internal_TemplateCompilerBase->callTagC in
    /var/www/loja/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php
    on line 667</p>
  </blockquote>
  
  <p>It seems that, for example, the code "{/addJsDefL}" need to have spaces like this "{ /addJsDefL }"</p>
  
  <p>But in the old server the code "{/addJsDefL}" works without any problems.</p>
  
  <p>So, is there a way to make the new server work with the old way? Maybe a parameter in the server?</p>
  
  <p>Thanks in advance,</p>