Extension:ErrorHandler

From MediaWiki.org

Jump to: navigation, search

         

Manual on MediaWiki Extensions
List of MediaWiki Extensions
Crystal Clear action run.png
ErrorHandler

Release status: beta

Implementation  User interface
Description Error handler for MediaWiki
Author(s)  IAlexTalk
MediaWiki  1.11.0
License GPLv2 or higher
Download Download snapshot

Subversion [Help]
Browse source code

check usage (experimental)

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

Contents

[edit] Installation

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

[edit] Configuration

[edit] $wgErrorHandlerReport

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

[edit] $wgErrorHandlerShowBackTrace

Whether to show the backtrace when an error occurs

[edit] $wgErrorHandlerMaxStringSize

Maximum string length of an argument in backtrace

[edit] $wgErrorHandlerAlwaysReport

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

[edit] $wgErrorHandlerReportAfterOutput

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

[edit] $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