Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

erreur sous prestashop

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: French
View previous topic :: View next topic  
Author Message
pipooze
Smarty n00b


Joined: 13 Jul 2015
Posts: 1

PostPosted: Mon Jul 13, 2015 2:06 pm    Post subject: erreur sous prestashop Reply with quote

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 Wink

Pipooze
Back to top
View user's profile Send private message
ym57
Smarty n00b


Joined: 21 Jul 2015
Posts: 1

PostPosted: Tue Jul 21, 2015 12:50 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: French All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP