sshare Posted June 20, 2012 Share Posted June 20, 2012 Hi Everyone, I was minding my own business building my shop, and now the front office doesnt display anymore, it shows a 500 Internal Server Error. I was updating the header.tpl of my theme to add a back to top <p> uploaded it, didnt seem to work, and then on the next refresh it just went to the error. I tried changing the header.tpl back to how it originally was, then tried changing themes, but still the same so I think it cant be the header.tpl and must be something else. Back office works fine by the way. Any ideas on where to look, its driving me nuts. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted June 20, 2012 Share Posted June 20, 2012 Hi sshare, Are you sure you reverted your header.tpl fully back to where it was before the page broke? Additionally, have you cleared your browser and smarty caches? -Mike Link to comment Share on other sites More sharing options...
El Patron Posted June 20, 2012 Share Posted June 20, 2012 try setting force compile on, cache off... hopefully you backuped any files before changing the original files. http://screencast.com/t/VzdshcNMhw 1 Link to comment Share on other sites More sharing options...
sshare Posted June 20, 2012 Author Share Posted June 20, 2012 Hi sshare, Are you sure you reverted your header.tpl fully back to where it was before the page broke? Additionally, have you cleared your browser and smarty caches? -Mike Hi Mike, Yup, Ive got the theme saved separately in its original state, and copied the header.tpl from there just to make sure, I even put in the global.css without any changes, and it's still the same. Im thinking it might not be the header.tpl as when I change themes to the original prestashop I still get the 500 Internal Server Error, and the header.tpl would be the one from the original prestashop theme, or am I wrong in assuming this? Link to comment Share on other sites More sharing options...
sshare Posted June 20, 2012 Author Share Posted June 20, 2012 try setting force compile on, cache off... hopefully you backuped any files before changing the original files. http://screencast.com/t/VzdshcNMhw Hi Elpatron, those are the settings that I have, also forgot to add in my reply to Mike, I cleared the both the browser and check in tools/smarty/cache and compile to make sure there were no files. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted June 20, 2012 Share Posted June 20, 2012 I couldn't tell you without looking at your files, but usually, if a site breaks while you're working on an individual file, the right answer is usually the easy answer, that it has something to do with that file specifically. As elpatron mentioned, did you back up your site before editing your files? -Mike Link to comment Share on other sites More sharing options...
El Patron Posted June 20, 2012 Share Posted June 20, 2012 (edited) also, please look at your server log files, sometimes you can get the information of the error by changing your config/config.inc.php to show errors (works on some 500 errors, not all) @ini_set('display_errors', 'on'); you are correct in your previous statement if you switch themes, then you would have a different header.tpl. also ps will auto clear smarty cache when you switch themes so find out the error message...then it should become much clearer where the problem lies.. Edited June 20, 2012 by elpatron (see edit history) Link to comment Share on other sites More sharing options...
sshare Posted June 20, 2012 Author Share Posted June 20, 2012 Guys thanks for the help, I just reuploaded the original header.tpl and global.css file, and now my site works again, replaced the global.css with my edited one, and now it works. I have no idea which one it was, I am however going to try putting the back to top thing back in to see if it does it again, I want to see if it goes wrong again as its only 3 lines of CSS and the <p> (atleast I know that I can get it working by uploadin the 2 original files). Link to comment Share on other sites More sharing options...
Mike Kranzler Posted June 20, 2012 Share Posted June 20, 2012 Great, I'm glad you were able to resolve this! I'll go ahead and mark this thread as solved for you. Happy selling! -Mike Link to comment Share on other sites More sharing options...
sshare Posted June 20, 2012 Author Share Posted June 20, 2012 I've just tried it again, and did it in stages. Uploaded the global.css first, and the page still displays, uploaded header.tpl with the following line added before wrapper1 <p id="back-top"> <a href="#top"><span></span></a> </p> And it still works, I dont get it. I know for sure I didnt do anything different as I copied the css and <p> tag from the files I uploaded before. Link to comment Share on other sites More sharing options...
Recommended Posts