Jump to content

Blank screen with server error 500

Recommended Posts

My Prestashop site was running well for several months without any change and sudenly stoped with a blank page and a "server error 500" message. This does not help much. Restoring the full site and database did not change, no more than upgrading to a newer version.

However the backoffice worked.

It took me several hours to find how to display errors: just change two lines in the config.inc.php file (in config directory).


@ini_set('display_errors', 'off');

define('_PS_DEBUG_SQL_', false);


@ini_set('display_errors', 'on');

define('_PS_DEBUG_SQL_', true);


So you can see errors found before the server stops.

May be this is written somewhere but I did not find it.


I suggest to dev team to add a function to change those values from the backoffice so it would be easier to fix problems. (may be it exists and I did not find it)


In my case the reason was a small module accessing an external ressource not anymore available.

Share this post

Link to post
Share on other sites

and what with security ? debug mode should be only for developers, so actual solution is ok

Share this post

Link to post
Share on other sites
This topic is now closed to further replies.

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More