Skip to content

Commit

Permalink
Update error handler - this generates less issues with xhtml then the…
Browse files Browse the repository at this point in the history
… previous stuff, and supports exceptions etc
  • Loading branch information
mantis authored and davidhicks committed Feb 25, 2012
1 parent b42fd57 commit 0e50606
Show file tree
Hide file tree
Showing 6 changed files with 442 additions and 378 deletions.
55 changes: 9 additions & 46 deletions application/configs/config_defaults_inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -3996,50 +3996,15 @@
$g_show_queries_count = OFF;

/**
* --- detailed error messages -----
* Shows a list of variables and their values when an error is triggered
* Only applies to error types configured to 'halt' in $g_display_errors, below
* WARNING: Potential security hazard. Only turn this on when you really
* need it for debugging
* @global int $g_show_detailed_errors
*/
$g_show_detailed_errors = OFF;

/**
* --- error display ---
* what errors are displayed and how?
* The options for display are:
* 'halt' - stop and display traceback
* 'inline' - display 1 line error and continue
* 'none' - no error displayed
* A developer might set this in config_inc.php as:
* $g_display_errors = array(
* E_WARNING => 'halt',
* E_NOTICE => 'halt',
* E_USER_ERROR => 'halt',
* E_USER_WARNING => 'none',
* E_USER_NOTICE => 'none'
* );
* @global array $g_display_errors
*/
$g_display_errors = array(
E_WARNING => 'inline',
E_NOTICE => 'none',
E_USER_ERROR => 'halt',
E_USER_WARNING => 'inline',
E_USER_NOTICE => 'none'
);

/**
* --- debug messages ---
* If this option is turned OFF (default) page redirects will continue to
* function even if a non-fatal error occurs. For debugging purposes, you
* can set this to ON so that any non-fatal error will prevent page redirection,
* allowing you to see the errors.
* Only turn this option on for debugging
* @global int $g_stop_on_errors
* --- show friendly error messages -----
* Toggles between:
* i) showing friendly error messages - designed for end users.
* OR
* ii) Showing users designed for administrators/developers - showing a list of variables and their values
* Only turn this off when you really need it for debugging
* @global int $g_show_show_friendly_errors
*/
$g_stop_on_errors = OFF;
$g_show_friendly_errors = OFF;

/**
* --- system logging ---
Expand Down Expand Up @@ -4099,7 +4064,6 @@
'custom_headers',
'database_name',
'^db_',
'display_errors',
'form_security_',
'hostname',
'html_valid_tags',
Expand All @@ -4108,14 +4072,13 @@
'plugins_enabled',
'plugins_installed',
'session_',
'show_detailed_errors',
'show_queries_',
'stop_on_errors',
'use_javascript',
'version_suffix',
'[^_]file[(_(?!threshold))$]',
'[^_]path[_$]',
'_page$',
'_table$',
'_url$',
'show_friendly_errors',
);
Loading

0 comments on commit 0e50606

Please sign in to comment.