Media Wiki Troubleshooting: Difference between revisions
Jump to navigation
Jump to search
Line 9: | Line 9: | ||
==PHP Errors== | ==PHP Errors== | ||
Add the following | Add the following to the second line from the top (right below the <?php) of [[Media_Wiki_Concepts#LocalSettings.php|LocalSettings.php]]: | ||
<syntaxhighlight lang='php'> | <syntaxhighlight lang='php'> |
Revision as of 22:20, 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
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() ?>