ccollins Posted April 2, 2012 Share Posted April 2, 2012 I add some Jquery to bottom of my contact-form.tpl file in my theme directory. I was working on it getting it to do what I needed when I made a change that stopped the contact form from being displayed. I backed out all of my changes and set it back to the original file and it still does the same thing. I made sure Smarty was compiling it every load (removed the file completely and it threw and error). Any idea what could be causing this? Smarty debug is enabled but shows no errors. Link to comment Share on other sites More sharing options...
tomerg3 Posted April 2, 2012 Share Posted April 2, 2012 Did you enable error reporting in /config/config.inc.php line #29? Did you turn on force compile in Preferences->Performance? Link to comment Share on other sites More sharing options...
ccollins Posted April 2, 2012 Author Share Posted April 2, 2012 Thanks for you quick reply. Yes, did both of those things. Cache is off too. I turned on smarty debug also and it is not showing any errors. Link to comment Share on other sites More sharing options...
tomerg3 Posted April 2, 2012 Share Posted April 2, 2012 Try to "View Source" it may be inside a <script> tag. Link to comment Share on other sites More sharing options...
ccollins Posted April 2, 2012 Author Share Posted April 2, 2012 Good idea ,,, looks like smarty did not compile it. This is what I found ... <script type="text/javascript"> _smarty_console = window.open("","consoled41d8cd98f00b204e9800998ecf8427e","width=680,height=600,resizable,scrollbars=yes"); _smarty_console.document.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\">\n<head>\n <title>Smarty Debug Console<\/title>\n<style type=\"text/css\">\n\nbody, h1, h2, td, th, p {\n font-family: sans-serif;\n font-weight: normal;\n font-size: 0.9em;\n margin: 1px;\n padding: 0;\n}\n\nh1 {\n margin: 0;\n text-align: left;\n padding: 2px;\n background-color: #f0c040;\n color: black;\n font-weight: bold;\n font-size: 1.2em;\n }\n\nh2 {\n background-color: #9B410E;\n color: white;\n text-align: left;\n font-weight: bold;\n padding: 2px;\n border-top: 1px solid black;\n}\n\nbody {\n background: black; \n}\n\np, table, div {\n background: #f0ead8;\n} \n\np {\n margin: 0;\n font-style: italic;\n text-align: center;\n}\n\ntable {\n width: 100%;\n}\n\nth, td {\n font-family: monospace;\n vertical-align: top;\n text-align: left;\n width: 50%;\n}\n\ntd {\n color: green;\n}\n\n.odd {\n background Link to comment Share on other sites More sharing options...
ccollins Posted April 2, 2012 Author Share Posted April 2, 2012 I meant to say display not compile ... Anyway I went through all the smarty Javascript and compared it to other pages and it looks the same. There were no errors anywhere that I could see. By adding my own javascript to the template could I have corrupted something having to do with smarty? Link to comment Share on other sites More sharing options...
tomerg3 Posted April 2, 2012 Share Posted April 2, 2012 No, Try to delete all the files (except index.php) in /tools/smarty/compile/ Link to comment Share on other sites More sharing options...
ccollins Posted April 2, 2012 Author Share Posted April 2, 2012 Bingo ..... that did the trick. What is causing them to pile up like that? Link to comment Share on other sites More sharing options...
tomerg3 Posted April 3, 2012 Share Posted April 3, 2012 Not sure what you mean by pile up, but it could be a permission issue the prevents Prestashop from automatically deleting them... 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