g4nsta Posted August 24, 2011 Share Posted August 24, 2011 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->getPageLink('cart.php')}?qty=1&id_product={$accessory.id_product|intval}&token={$static_token}&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 More sharing options...
ben chagra Posted January 25, 2012 Share Posted January 25, 2012 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now