Extension:ErrorHandler

The ErrorHandler defines a custom error handler (see https://secure.php.net/manual/en/function.set-error-handler.php). Errors will be displayed in the page's subtitle.

Installation

 * Download the latest snapshot and extract it to your extensions directory.
 * Edit LocalSettings.php and add the following line:

$wgErrorHandlerReport
Error levels to report. See https://secure.php.net/manual/en/function.error-reporting.php ($level param).

$wgErrorHandlerShowBackTrace
Whether to show the backtrace when an error occurs

$wgErrorHandlerMaxStringSize
Maximum string length of an argument in backtrace

$wgErrorHandlerAlwaysReport
Always report errors, regardless of the current value of error_reporting

$wgErrorHandlerReportAfterOutput
Whether to report errors that occurred after output. This can be used to avoid XHTML errors.

$wgErrorHandlerLog
Whether to log error:
 * : don't log them
 * : log them in PHP error log
 * string and the file exists: logging will be done in that file