Extension:ErrorHandler

MediaWiki extensions manual
OOjs UI icon advanced-invert.svg
ErrorHandler
Release status: unmaintained
Implementation User interface
Description Error handler for MediaWiki
Author(s) IAlextalk
MediaWiki 1.11.0
License GNU General Public License 2.0 or later
Download
Quarterly downloads 1 (Ranked 171st)
Translate the ErrorHandler extension if it is available at translatewiki.net

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

InstallationEdit

require_once( "$IP/extensions/ErrorHandler/ErrorHandler.php" );

ConfigurationEdit

$wgErrorHandlerReportEdit

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

$wgErrorHandlerShowBackTraceEdit

Whether to show the backtrace when an error occurs

$wgErrorHandlerMaxStringSizeEdit

Maximum string length of an argument in backtrace

$wgErrorHandlerAlwaysReportEdit

Always report errors, regardless of the current value of error_reporting()

$wgErrorHandlerReportAfterOutputEdit

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

$wgErrorHandlerLogEdit

Whether to log error:

  • false: don't log them
  • true: log them in PHP error log
  • string and the file exists: logging will be done in that file