Media Wiki Troubleshooting: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 7: | Line 7: | ||
=Debugging= | =Debugging= | ||
==PHP Errors== | |||
Add: | Add the following to the second line from the top (right below the <?php) of [[add this to the second line from the top (right below the <?php) of [[Media_Wiki_Concepts#LocalSettings.php|LocalSettings.php]]: | ||
< | <syntaxhighlight lang='php'> | ||
error_reporting( -1 ); | |||
</ | ini_set( 'display_errors', 1 ); | ||
</syntaxhighlight> | |||
This will configure MediaWiki to show the errors in page. | |||
at the bottom of LocalSettings.php. | at the bottom of LocalSettings.php. | ||
==SQL Errors== | |||
=PHP Info= | =PHP Info= |
Revision as of 07:23, 7 December 2020
External
Internal
Debugging
PHP Errors
Add the following to the second line from the top (right below the <?php) of [[add this 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.
at the bottom of LocalSettings.php.
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() ?>