SkyHiRider Posted March 8, 2014 Share Posted March 8, 2014 (edited) I've made some changes to my prestashop according to this bug report: and my footer stopped showing. Noticed it today after realizing that I had zero views in clicktale (the monitoring code is in the footer). Could any of the changes mentioned in the bug report break the footer? www.peciatky.sk [Sat Mar 08 19:33:04.823809 2014] [-:error] [pid 6662] [client 157.56.92.174:47558] PHP Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template ".../themes/vp_beststore/footer.tpl" on line 75 "f=false,d=document;return{use_existing_jquery:function(){return use_existing_jquery;},library_tolerance:function(){return library_tolerance;},finish:function(){if(!f){f=true;var a=d.getElementById('_vis_opt_path_hides');if(a)a.parentNode.removeChild(a);[spam-filter],finished:function(){return f;},load:function(a){var b=d.createElement('script');b.src=a;b.type='text/javascript';b.innerText;b.onerror=function(){_vwo_code.finish();};d.getElementsByTagName('head')[0].appendChild(;},init:function(){settings_timer=setTimeout('_vwo_code.finish()',settings_tolerance);this.load('//dev.visualwebsiteoptimizer.com/j.php?a='+account_id+'&u='+encodeURIComponent(d.URL)+'&r='+Math.random());var a=d.createElement('style'),b='body{opacity:0 !important;filter:alpha(opacity=0) !important;background:none !important;}',h=d. in .../tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 656 Edited March 8, 2014 by SkyHiRider (see edit history) Link to comment Share on other sites More sharing options...
SkyHiRider Posted March 8, 2014 Author Share Posted March 8, 2014 Nevermind, fixed by removing this code: <!-- Start Visual Website Optimizer Asynchronous Code --> <script type='text/javascript'> var _vwo_code=(function(){ var account_id=65517, settings_tolerance=2000, library_tolerance=2500, use_existing_jquery=false, // DO NOT EDIT BELOW THIS LINE f=false,d=document;return{use_existing_jquery:function(){return use_existing_jquery;},library_tolerance:function(){return library_tolerance;},finish:function(){if(!f){f=true;var a=d.getElementById('_vis_opt_path_hides');if(a)a.parentNode.removeChild(a);[spam-filter],finished:function(){return f;},load:function(a){var b=d.createElement('script');b.src=a;b.type='text/javascript';b.innerText;b.onerror=function(){_vwo_code.finish();};d.getElementsByTagName('head')[0].appendChild(;},init:function(){settings_timer=setTimeout('_vwo_code.finish()',settings_tolerance);this.load('//dev.visualwebsiteoptimizer.com/j.php?a='+account_id+'&u='+encodeURIComponent(d.URL)+'&r='+Math.random());var a=d.createElement('style'),b='body{opacity:0 !important;filter:alpha(opacity=0) !important;background:none !important;}',h=d.getElementsByTagName('head')[0];a.setAttribute('id','_vis_opt_path_hides');a.setAttribute('type','text/css');if(a.styleSheet)a.styleSheet.cssText=b;else a.appendChild(d.createTextNode();h.appendChild(a);return settings_timer;[spam-filter];}());_vwo_settings_timer=_vwo_code.init(); </script> <!-- End Visual Website Optimizer Asynchronous Code --> Which character in there conflicts with smarty? Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted March 8, 2014 Share Posted March 8, 2014 Where did you add this code? Most likely you failed to wrap the script in {literal}your code{/literal}. Marty Shue 1 Link to comment Share on other sites More sharing options...
Recommended Posts