Manual:$wgShowExceptionDetails

From MediaWiki.org
Jump to: navigation, search
Translate this page; This page contains changes which are not marked for translation.

Other languages:
dansk • ‎Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎日本語 • ‎polski • ‎português • ‎português do Brasil • ‎中文
Debug/logging: $wgShowExceptionDetails
If set to true, uncaught exceptions will print a complete stack trace to output.
Introduced in version: 1.8.1 (r16944)
Removed in version: still in use
Allowed values: (boolean)
Default value: false
Other settings: Alphabetical | By function

Details[edit]

If set to true, uncaught exceptions will print a complete stack trace to output. This should only be used for debugging, as it may reveal private information in function parameters due to PHP's backtrace formatting.

With the default false, users are shown only an error message "Fatal exception of type MWException" with an alphanumeric code that a person with access to the server logs can use to find the stack trace. Without this information, it's impossible to help fix the error.