Jump to content

Fatal Error: ... 'smartycompilerexception'


Recommended Posts

Bonjour,

 

j'ai créé un site prestashop sur mon serveur ovh. Le client a choisi finalement de l'héberger chez Gandi. Je viens de faire le transfert et je galère à trouver la solution à diverses erreurs qui se produisent alors que sur l'autre serveur tout allait bien.

  • la version de prestashop est 1.5.3.1
  • le thème est celui par défaut de Prestashop adapté
  • l'hébergement est de type "simple hosting" chez Gandi
  • le site fonctionnait très bien avant transfert ce matin et aucune modification n'a été faite entre temps

Suite au changement de paramètre @ini_set('display_errors', 'on'); j'arrive à afficher des messages d'erreur :

 

La première erreur s'affiche lorsque j'essaie d'afficher une fiche produit :

Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/srv/data/web/vhosts/www.comptoirdesjardins.fr/htdocs/themes/comptoir/product.tpl" on line 574 "{counter start=0 assign='customizationField'}" unknown tag "counter"' in /srv/data/web/vhosts/www.comptoirdesjardins.fr/htdocs/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php:627 Stack trace: #0 /srv/data/web/vhosts/www.comptoirdesjardins.fr/htdocs/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php(406): Smarty_Internal_TemplateCompilerBase->trigger_template_error('unknown tag "co...', 574) #1 /srv/data/web/vhosts/www.comptoirdesjardins.fr/htdocs/tools/smarty/sysplugins/smarty_internal_templateparser.php(2413): Smarty_Internal_TemplateCompilerBase->compileTag('counter', Array) #2 /srv/data/web/vhosts/www.comptoirdesjardins.fr/htdocs/tools/smarty/sysplugins/smarty_internal_templateparser.php(3111): Smarty_Internal_Templateparser->yy_r36() #3 /srv/data/web/vhosts/www.comptoirdesjardins.fr/htdocs/tools/ in /srv/data/web/vhosts/www.comptoirdesjardins.fr/htdocs/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 627

 

J'ai essayé de supprimer les lignes 562 à 623 du fichier product.tpl (concernant les produits customisables et l'erreur disparait mais lorsque j'essaie de passer une commande, le message suivant apparait :

 

Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/srv/data/web/vhosts/www.comptoirdesjardins.fr/htdocs/themes/comptoir/order-address.tpl" on line 54 "{counter start=0 skip=1 assign=address_key_number}" unknown tag "counter"' in /srv/data/web/vhosts/www.comptoirdesjardins.fr/htdocs/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php:627 Stack trace: #0 /srv/data/web/vhosts/www.comptoirdesjardins.fr/htdocs/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php(406): Smarty_Internal_TemplateCompilerBase->trigger_template_error('unknown tag "co...', 54) #1 /srv/data/web/vhosts/www.comptoirdesjardins.fr/htdocs/tools/smarty/sysplugins/smarty_internal_templateparser.php(2413): Smarty_Internal_TemplateCompilerBase->compileTag('counter', Array) #2 /srv/data/web/vhosts/www.comptoirdesjardins.fr/htdocs/tools/smarty/sysplugins/smarty_internal_templateparser.php(3111): Smarty_Internal_Templateparser->yy_r36() #3 /srv/data/web/vhosts/www.comptoirdesjardins.fr/htdo in /srv/data/web/vhosts/www.comptoirdesjardins.fr/htdocs/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 627

 

Bref,.. je n'ai pas testé tout le site encore mais il me semble y avoir un sérieux problème avec Smarty. Est-ce que ça vient de chez Gandi ? ou est-ce que j'ai loupé un truc au moment du transfert ?

 

Merci d'avance pour vos réponses car je n'ai rien trouvé via Google ni sur ce forum qui ressemblait à ce que j'ai.

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