Media Wiki Troubleshooting: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 19: Line 19:


==SQL Errors==
==SQL Errors==
Add in [[Media_Wiki_Concepts#LocalSettings.php|LocalSettings.php]]:
<syntaxhighlight lang='php'>
$wgShowSQLErrors = true;
$wgDebugDumpSql  = true;
</syntaxhighlight>


=PHP Info=
=PHP Info=

Revision as of 22:21, 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 );

This will configure MediaWiki to show the errors in page.

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() ?>

Log Locations