Jump to content

Page blanche : var priceDisplayPrecision


Recommended Posts

Bonjour à tous,

 

Depuis aujourd'hui j'ai un problème de page blanche sur ma boutique Prestashop.

 

Pourtant j'ai effectué aucune mise à jour, aucun bidouillage depuis plusieurs mois car tout fonctionne nickel depuis plus de 2 ans.

 

Voilà ce que me dit le navigateur : 

 

Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/home/boutiqueqo/www/themes/dm-free-black14/header.tpl" on line 49 "var priceDisplayPrecision = {$priceDisplayPrecision*$currency-&gt;decimals};" - Unexpected "&"' in /home/boutiqueqo/www/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php:431 Stack trace: #0 /home/boutiqueqo/www/tools/smarty/sysplugins/smarty_internal_templateparser.php(2855): Smarty_Internal_TemplateCompilerBase->trigger_template_error() #1 /home/boutiqueqo/www/tools/smarty/sysplugins/smarty_internal_templateparser.php(2920): Smarty_Internal_Templateparser->yy_syntax_error(39, '&') #2 /home/boutiqueqo/www/tools/smarty/sysplugins/smarty_internal_smartytemplatecompiler.php(51): Smarty_Internal_Templateparser->doParse(39, '&') #3 /home/boutiqueqo/www/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php(82): Smarty_Internal_SmartyTemplateCompiler->doCompile('<head>??<meta h...') #4 /home/boutiqueqo/www/tools/smarty/sysplugins/smar in /home/boutiqueqo/www/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 431

Merci de vos réponses

Edited by Lorks-Sub (see edit history)
Link to comment
Share on other sites

Personne a une idée ??

 

 

PS : quand je change de thème tout redevient normal mais j'aimerai garder mon thème de départ avec toutes les modifs que j'ai effectuées dessus

comprends toujours pas du jour au lendemain j'ai eu cette erreur sans toucher aux fichiers du thème ou prestashop...

Link to comment
Share on other sites

Merci pour ta réponse 2FR3

 

Alors j'ai prestashop 1.4.3

 

j'ai mis le cache smarty : Forcer la compilation : On et Cache : NON

 

et j'ai effacé manuellement via FTP le répertoire cache et compile du répertoire Smarty

 

Bilan : toujours pareil même erreur avec un autre thème cela fonctionne correctement :(

Link to comment
Share on other sites

Bonjour, 

 

Vous avez une erreur de frappe certainement dans votre code

"/home/boutiqueqo/www/themes/dm-free-black14/header.tpl" on line 49 "var priceDisplayPrecision = {$priceDisplayPrecision*$currency-&gt;decimals};" - Unexpected "&"' in 

Référez vous à votre code au lieux de mettre  

$currency->decimals

 vous avez mis  

$currency-$>decimals
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...