erreur sur "smarty_internal_templatecompiler" - Version imprimable +- Forum CMS Made Simple FR (https://www.cmsmadesimple.fr/forum) +-- Forum : Général (https://www.cmsmadesimple.fr/forum/forum-3.html) +--- Forum : Graphisme (https://www.cmsmadesimple.fr/forum/forum-9.html) +--- Sujet : erreur sur "smarty_internal_templatecompiler" (/thread-2689.html) |
erreur sur "smarty_internal_templatecompiler" - PhilP - 09/04/2013 Citation :#~~~~~ DEBUT BLOC A NE PAS SUPPRIMER ~~~~~ Ecrivez votre question ici. Bonjour, J'ai transféré mon site d'un serveur à un autre (celui d'OVH) en le mettant à jour au passage. Mais en terminant l'installation j'obtiens le message d'erreur suivant, que je ne parviens pas du tout à contourner: Error: at line 702 in file /xxx/www/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php: Close Full Trace ↑ #0 /xxx/www/lib/smarty/sysplugins/smarty_internal_compilebase.php(71): Smarty_Internal_TemplateCompilerBase->trigger_template_error('too many shorth...', 108) #1 /xxx/www/lib/smarty/sysplugins/smarty_internal_compile_private_registered_function.php(42): Smarty_Internal_CompileBase->getAttributes(Object(Smarty_Internal_SmartyTemplateCompiler), Array) #2 xxx/www/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php(510): Smarty_Internal_Compile_Private_Registered_Function->compile(Array, Object(Smarty_Internal_SmartyTemplateCompiler), Array, 'Statistics', NULL) #3 /xxx/www/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php(320): Smarty_Internal_TemplateCompilerBase->callTagCompiler('private_registe...', Array, Array, 'Statistics') #4 /xxx/www/lib/smarty/sysplugins/smarty_internal_templateparser.php(2388): Smarty_Internal_TemplateCompilerBase->compileTag('Statistics', Array) #5 /xxx/www/lib/smarty/sysplugins/smarty_internal_templateparser.php(3101): Smarty_Internal_Templateparser->yy_r36() #6 /xxxu/www/lib/smarty/sysplugins/smarty_internal_templateparser.php(3201): Smarty_Internal_Templateparser->yy_reduce(36) #7 /xxx/www/lib/smarty/sysplugins/smarty_internal_smartytemplatecompiler.php(105): Smarty_Internal_Templateparser->doParse(10, ' ') #8 /xxx/www/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php(192): Smarty_Internal_SmartyTemplateCompiler->doCompile('????<body>????<...') #9 /xxx/www/lib/smarty/sysplugins/smarty_internal_template.php(187): Smarty_Internal_TemplateCompilerBase->compileTemplate(Object(Smarty_Internal_Template)) #10 /xxx/www/lib/smarty/sysplugins/smarty_internal_templatebase.php(155): Smarty_Internal_Template->compileTemplateSource() #11 /xxx/www/lib/classes/class.Smarty_CMS.php(323): Smarty_Internal_TemplateBase->fetch('tpl_body:25', 'p15', NULL, NULL, false, false, false) #12 /xxx/www/index.php(238): Smarty_CMS->fetch('tpl_body:25') #13 {main} Syntax Error in template "tpl_body:25" on line 108 "{Statistics params}" too many shorthand attributes Pouvez vous me conseiller? Merci d'avance. PhilP erreur sur "smarty_internal_templatecompiler" - bess - 09/04/2013 en suposant que ce n'est pas un soucis de cache lié à ton déménagement (sinon: vide le cache cmsmadesimple) Citation :Syntax Error in template "tpl_body:25" on line 108 "{Statistics params}" too many shorthand attributes te reste à trouver la ligne 25 de ton gabarit et comprendre pourquoi un tel code : {Statistics params} erreur sur "smarty_internal_templatecompiler" - jissey - 09/04/2013 :| bonjoir, Poir compléter, dans l aide du module statistics il y a un exemple de syntaxe. Params signifie :" mettez ici vos paramètres". Mais ça n a aucune signification syntaxique. Si tu n as pas de paramètre, enlève le. erreur sur "smarty_internal_templatecompiler" - PhilP - 09/04/2013 Bonjour, Merci pour le coup de main. j'ai supprimé {Statistics params} qui se trouvait tout à la fin du gabarit : </body> </html> {Statistics params} Le message d'erreur a disparu, mais un autre à pris la place : Syntax Error in template "tpl_head:25" on line 9 "{stylesheet}" unknown tag "stylesheet" Et là, je ne vois pas... erreur sur "smarty_internal_templatecompiler" - bess - 09/04/2013 utilise le moteur de recherche du forum cette fois et un coup d'oeil au wiki sera pas inutile en complément erreur sur "smarty_internal_templatecompiler" - PhilP - 09/04/2013 A priori résolu... Dans la ligne: Syntax Error in template "tpl_head:25" on line 9 "{stylesheet}" unknown tag "stylesheet" J'ai remplacé {stylesheet} par {cms_stylesheet} et ça marche! Enfin, ça marche pour ce gabarit. mais pas pour d'autres... donc fragile. Question de compatibilité entre les versions sans doute. Il me reste à gérer l'esthétique, vu que le gabarit ne répond pas correctement, peut être pour les mêmes raisons... mais c'est une autre question! |