|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
pipooze Smarty n00b
Joined: 13 Jul 2015 Posts: 1
|
Posted: Mon Jul 13, 2015 2:06 pm Post subject: erreur sous prestashop |
|
|
Salut à toutes et tous,
J'ai une erreur sur mon site sous presta qui est venue d'un coup, sans rien faire
Je suis assez perdu
Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "/home/lemaire/web/themes/theme1030/footer.tpl" on line 24 "(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){" - Unexpected "[", expected one of: "}" <-- thrown in /home/lemaire/web/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 24
alors la ligne 24 de footer.tpl c'est celle ci :
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
Et la 24 du fichier smarty c'est juste ça */
Merci d'avance si vous pouvez me filer un coup de main
Pipooze |
|
Back to top |
|
ym57 Smarty n00b
Joined: 21 Jul 2015 Posts: 1
|
Posted: Tue Jul 21, 2015 12:50 am Post subject: |
|
|
hello
d'apres ce que je vois, il te manque un } a ta ligne
verifie que tu as bien cela
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga'); |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|