Diana Hansen Posted June 15, 2016 Share Posted June 15, 2016 (edited) Hello everyone, I am in the process of configuring Amazon payment. Everything was going well until this morning I updated the module. I have to also mention that before doing that I also changed my primary domain from www.ecofreshblooms.com to ecofreshblooms.com because the day before I had changed it to the first one and today my hosting support said it should be without the www Reading the forums, I found I should clear Smarty and my web browser´s cache which I did but it didn't help. Then I turned on Error Reporting and got the following error: Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "/home/ivinggl1/public_html/themes/default-bootstrap/header.tpl" on line 86 "(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){" - Unexpected "[", expected one of: "}" <-- thrown in/home/ivinggl1/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 86 Please help. I don't understand what could have happened to the default theme header.tpl file because I haven't changed anything in it. Edited June 16, 2016 by Diana EFB (see edit history) Link to comment Share on other sites More sharing options...
jetway Posted June 15, 2016 Share Posted June 15, 2016 Hi there, Funny thing is that the same thing happend to me when i updated paypal. The mobile confirmation page went white. What i did to solve the problem was switch the confirm tbl back to the previous version and that fixed my problem for the moment. I don't know how amazon works so that might solve your problem as well...or at least for the moment. Cheers, Link to comment Share on other sites More sharing options...
shokinro Posted June 15, 2016 Share Posted June 15, 2016 Not sure which module you have upgraded, I guess it has messed up the header.tpl file. From the error message, It seems related to "GoogleAnalyticsObject", which is related to payment module. It is better to contact developer of the module to see if they can help. Otherwise you may consider to restore your store from a backup.\ you may try to restore header.tpl only first to see if it fixes. Link to comment Share on other sites More sharing options...
rocky Posted June 16, 2016 Share Posted June 16, 2016 That error is occurring because Smarty is reading the {i in the Google Analytics JavaScript code and then expecting a }, but finding a [ instead. You can fix the problem by adding a space after every { in the JavaScript code or by adding {literal} before the JavaScript code and {/literal} after it. 1 Link to comment Share on other sites More sharing options...
Diana Hansen Posted June 16, 2016 Author Share Posted June 16, 2016 Hello guys! Thank you all for your time and your suggestions. Rocky, I send you a big hug and special thanks because your answer solved my problem! That error is occurring because Smarty is reading the {i in the Google Analytics JavaScript code and then expecting a }, but finding a [ instead. You can fix the problem by adding a space after every { in the JavaScript code or by adding {literal} before the JavaScript code and {/literal} after it. Link to comment Share on other sites More sharing options...
rocky Posted June 16, 2016 Share Posted June 16, 2016 Thank you. I'm happy to help. Please edit your first post and add [sOLVED] to the front of the title. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now