Extension:ErrorHandler
This extension is currently not actively maintained! Although it may still work, any bug reports or feature requests will more than likely be ignored. If you are interested in taking on the task of developing and maintaining this extension, you can request repository ownership. As a courtesy, you may want to contact the author. You should also remove this template and list yourself as maintaining the extension in the page's {{Extension }} infobox. |
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 | 0 |
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.
Installation
edit- Download the latest snapshot and extract it to your extensions directory.
- Edit LocalSettings.php and add the following line:
require_once( "$IP/extensions/ErrorHandler/ErrorHandler.php" );
Configuration
edit$wgErrorHandlerReport
editError levels to report. See https://php.net/function.error-reporting ($level param).
$wgErrorHandlerShowBackTrace
editWhether to show the backtrace when an error occurs
$wgErrorHandlerMaxStringSize
editMaximum string length of an argument in backtrace
$wgErrorHandlerAlwaysReport
editAlways report errors, regardless of the current value of error_reporting()
$wgErrorHandlerReportAfterOutput
editWhether to report errors that occurred after output. This can be used to avoid XHTML errors.
$wgErrorHandlerLog
editWhether to log error:
false
: don't log themtrue
: log them in PHP error log- string and the file exists: logging will be done in that file