evolution-cms / evolution

Welcome to the new evolution of MODX Evolution!
GNU General Public License v3.0
260 stars 95 forks source link

No option to hide errors frontend in production mode? #246

Closed q2apro closed 6 years ago

q2apro commented 7 years ago

I have googled and found only one hint:

It happens because the PHP error_reporting level and the display_errors settings are set to hide PHP errors. ... Go to System (Gear Icon) -> System Settings in the MODX Manager, put debug in the search box at the upper right, and press enter.

Source: https://bobsguides.com/blog.html/2015/11/16/the-modx-white-screen-of-death/

Still I cannot find the option to disable the display of error messages frontend. I searched for "error", "report", "debug", "display" etc. on the admin configuration sites.

Can somebody help?

Deesen commented 7 years ago

Your "hint" is about MODX Revolution, not Evo. Which version do you use?

You can try creating the file /vendor/autoload.php and add this content:

<?php
display_errors(0);
ini_set('display_errors', 'Off');
?>
q2apro commented 7 years ago

So there is no admin option to just enable/disable this?

yama commented 7 years ago

https://github.com/evolution-cms/evolution/commit/9b2935db3f34daf70534c40a4e7dddefc154de26#diff-b91fad0266a33c1d4d87dff876939692 this?

bossloper commented 6 years ago

can close?

q2apro commented 6 years ago

Can close in case an admin option is added, no? Or most users say not needed. I'd suggest the option to opt-out for security reasons.

Dmi3yy commented 6 years ago

In EVO work the same like in REVO

You can creating the file /vendor/autoload.php and add this content:

<?php
display_errors(0);
ini_set('display_errors', 'Off');
?>