Extension:ErrorHandler

Category:Unmaintained extensions#ErrorHandler Category:Extensions without an imageCategory:Extensions without a compatibility policyCategory:GPL licensed extensions
MediaWiki extensions manual
ErrorHandler
Release status: unmaintainedCategory:Unmaintained extensions
Implementation User interfaceCategory:User interface extensions
Description Error handler for MediaWiki
Author(s) IAlextalk
MediaWiki 1.11.0Category:Extensions with manual MediaWiki version
License GNU General Public License 2.0 or later
Download Category:Extensions in Wikimedia version control
Quarterly downloads 0
Translate the ErrorHandler extension if it is available at translatewiki.net
Category:All extensionsCategory:Extensions not in ExtensionJson

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

Installation

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

Configuration

$wgErrorHandlerReport

Error levels to report. See https://php.net/function.error-reporting ($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:

  • false: don't log them
  • true: log them in PHP error log
  • string and the file exists: logging will be done in that file
Category:All extensions Category:BeforePageDisplay extensions Category:Extensions in Wikimedia version control Category:Extensions not in ExtensionJson Category:Extensions with manual MediaWiki version Category:Extensions without a compatibility policy Category:Extensions without an image Category:GPL licensed extensions Category:Unmaintained extensions Category:User interface extensions