Media Wiki Troubleshooting: Difference between revisions
Jump to navigation
Jump to search
Line 21: | Line 21: | ||
This will configure MediaWiki to show the errors in page. | This will configure MediaWiki to show the errors in page. | ||
Also add in index.php: | |||
<syntaxhighlight lang='php'> | |||
error_reporting( -1 ); | |||
ini_set( 'display_startup_errors', 1 ); | |||
ini_set( 'display_errors', 1 ); | |||
</syntaxhighlight> | |||
==SQL Errors== | ==SQL Errors== |
Revision as of 22:22, 18 April 2021
External
Internal
Debugging
PHP Errors
Add the following to the second line from the top (right below the <?php) of LocalSettings.php:
error_reporting( -1 );
ini_set( 'display_errors', 1 );
$wgDebugToolbar = true;
$wgShowExceptionDetails = true;
$wgDevelopmentWarnings = true;
$wgShowDebug = true;
This will configure MediaWiki to show the errors in page.
Also add in index.php:
error_reporting( -1 );
ini_set( 'display_startup_errors', 1 );
ini_set( 'display_errors', 1 );
SQL Errors
Add in LocalSettings.php:
$wgShowSQLErrors = true;
$wgDebugDumpSql = true;
PHP Info
Add a file called info.php in /var/www/mediawiki-*, with the following content, and serve it through the web server:
<?php phpinfo() ?>