mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
NEW: Enable display_errors = on in the installer to assist with diagnosis.
Installation problems often come down to a 'white screen of death' either during installation or after it. The WSOD is generally caused by a PHP error that isn't picked up by SilverStripe's error handler. This change fixes the first of those. As a bigger fix, I'd like to see us allow the installation of sites in dev mode, the enabling of display_errors=on in dev mode, and perhaps even the ability to easily perform an initial installation in dev mode before switching to live mode. However, that's a bigger change for another time.
This commit is contained in:
parent
6ef4f9ad3f
commit
2598f6596d
@ -16,8 +16,10 @@
|
||||
|
||||
// speed up mysql_connect timeout if the server can't be found
|
||||
ini_set('mysql.connect_timeout', 5);
|
||||
|
||||
// Don't die half was through installation; that does more harm than good
|
||||
ini_set('max_execution_time', 0);
|
||||
// Prevent a white-screen-of-death
|
||||
ini_set('display_errors', 'on');
|
||||
|
||||
error_reporting(E_ALL | E_STRICT);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user