Browse files

NEW: Enable display_errors = on in the installer to assist with diagn…


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.
  • Loading branch information...
1 parent 6ef4f9a commit 2598f6596d96e5ef09e651420d14704cd971323b @sminnee sminnee committed Jun 26, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 dev/install/install.php5
@@ -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);

0 comments on commit 2598f65

Please sign in to comment.