Skip to content

Commit 2598f65

Browse files
author
Sam Minnee
committed
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.
1 parent 6ef4f9a commit 2598f65

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dev/install/install.php5

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@
1616

1717
// speed up mysql_connect timeout if the server can't be found
1818
ini_set('mysql.connect_timeout', 5);
19-
19+
// Don't die half was through installation; that does more harm than good
2020
ini_set('max_execution_time', 0);
21+
// Prevent a white-screen-of-death
22+
ini_set('display_errors', 'on');
2123

2224
error_reporting(E_ALL | E_STRICT);
2325

0 commit comments

Comments
 (0)