Jump to content

[SOLVED] Front office is gone: 500 Internal Server Error


Recommended Posts

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

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

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

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 by elpatron (see edit history)
Link to comment
Share on other sites

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

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

×
×
  • Create New...