? sites/default/settings.php ? sites/default/files/.htaccess ? sites/default/files/simpletest Index: includes/common.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/common.inc,v retrieving revision 1.827 diff -u -p -r1.827 common.inc --- includes/common.inc 16 Nov 2008 19:41:14 -0000 1.827 +++ includes/common.inc 17 Nov 2008 19:07:10 -0000 @@ -729,8 +729,10 @@ function _drupal_log_error($error, $fata $number++; } - // Force display of error messages in update.php. - if (variable_get('error_level', 1) == 1 || (defined('MAINTENANCE_MODE') && MAINTENANCE_MODE == 'update')) { + // Force display of error messages in update.php or if the proper error reporting + // level is set. + $error_level = variable_get('error_level', 2); + if ($error_level >= 2 || ($error_level == 1 && $type != 'Notice') || (defined('MAINTENANCE_MODE') && MAINTENANCE_MODE == 'update')) { drupal_set_message(t('%type: %message in %function (line %line of %file).', $error), 'error'); } Index: modules/system/system.admin.inc =================================================================== RCS file: /cvs/drupal/drupal/modules/system/system.admin.inc,v retrieving revision 1.104 diff -u -p -r1.104 system.admin.inc --- modules/system/system.admin.inc 11 Nov 2008 22:39:59 -0000 1.104 +++ modules/system/system.admin.inc 17 Nov 2008 19:05:56 -0000 @@ -1294,8 +1294,14 @@ function system_error_reporting_settings ); $form['error_level'] = array( - '#type' => 'select', '#title' => t('Error reporting'), '#default_value' => variable_get('error_level', 1), - '#options' => array(t('Write errors to the log'), t('Write errors to the log and to the screen')), + '#type' => 'radios', + '#title' => t('Error reporting'), + '#default_value' => variable_get('error_level', 2), + '#options' => array( + 0 => t('Site in production: Write errors and PHP notices to the log.'), + 1 => t('Site in development: Write errors to the log and to the screen. Write PHP notices only to the log.'), + 2 => t('For developers: Write errors and PHP notices to both the log and the screen.'), + ), '#description' => t('Specify where Drupal, PHP and SQL errors are logged. While it is recommended that a site running in a production environment write errors to the log only, in a development or testing environment it may be helpful to write errors both to the log and to the screen.') );