Jump to content

Erreur smarty étrange


g4nsta

Recommended Posts

Bonjour,

 

Je rencontre une erreur smarty sur la plupart des fichiers .tpl du site.

 

     

Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "C:\wamp\www\prestashop/themes/mytheme/product.tpl" 
on line 457 "<a class="exclusive button ajax_add_to_cart_button" href="../Copie de prestashop/{$link-&gt;getPageLink('cart.php')}?qty=1&amp;id_product={$accessory.id_product|intval}&amp;token={$static_token}&amp;add" rel="ajax_id_product_{$accessory.id_product|intval}" title="{l s='Add to cart'}">{l s='Add to cart'}</a>"
- Unexpected "&"' in C:\wamp\www\prestashop\tools\smarty\sysplugins\smarty_internal_templatecompilerbase.php:431 
Stack trace: #0 C:\wamp\www\prestashop\tools\smarty\sysplugins\smarty_internal_templateparser.php(2855): Smarty_Internal_TemplateCompilerBase->trigger_template_error() 
#1 C:\wamp\www\prestashop\tools\smarty\sysplugins\smarty_internal_templateparser.php(2920): Smarty_Internal_Templateparser->yy_syntax_error(39, '&') 
#2 C:\wamp\www\prestashop\tools\smarty\sysplugins\smarty_internal_ in C:\wamp\www\prestashop\tools\smarty\sysplugins\smarty_internal_templatecompilerbase.php on line 431

 

Le caractère "&" qui cause l'erreur est l'html entity de "<", de la balise '<a '...

Je ne comprend pas pourquoi j'ai une telle erreur, et biensur elle disparait si j'enleve tout le bloc {if}{else}{/if}

 

Je précise que "forcer la compilation" est à oui et que le cache est désactivé.

 

Merci d'avance

Link to comment
Share on other sites

  • 5 months later...

lors de l'installation module blog :

 

Fatal error: Smarty error: [in C:\wamp\www\boutiquedeteste/modules/plblog/frontent/tpl/Blog_l.tpl line 10]: syntax error: unrecognized tag: $plTools->getPostLink($post['id_pl_blog_post'], $post['link_rewrite'], $post['id_pl_blog_category']) (Smarty_Compiler.class.php, line 446) in C:\wamp\www\boutiquedeteste\tools\smarty_v2\Smarty.class.php on line 1095

 

si quelqu'un peux venir a m'aide ??

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...