Question

I installed Mediawiki by uploading the files to "/wiki" directory then I opened "/wiki/mw-config/index.php" and made the configuration and uploaded the "LocalSettings.php" to "/wiki"

when I try to open the wiki using "/wiki/index.php", I see a blank page.

Was it helpful?

Solution

The problem was that the generated LocalSettings.php file has an extra html div tag. I thing this is a bug in the Mediawiki. After I removed this tag, it worked

OTHER TIPS

From http://www.mediawiki.org/wiki/Blank_page#You_see_a_Blank_Page:

A blank white page indicates a PHP error which isn't being printed to the screen. To force this, add the following lines to the LocalSettings.php file, underneath the < ?php: error_reporting( E_ALL ); ini_set( 'display_errors', 1 );. You can also set a value for error_log in PHP.ini and read the PHP error log to find out what's going on. In some cases, PHP errors might also be recorded in the web server error log.

In my case, I checked the server error log and found the following line:

PHP Fatal error:  Class 'DOMDocument' not found in /path/includes/cache/LocalisationCache.php on line NNN, referer: http://wiki.example.com/

Which can be fixed by either installing the right php-xml package for your distro, or by changing the MediaWiki 'preprocessor' class in LocalSettings.php, as mentioned on the WikiMedia Manual

I needed to install php-xml and restart httpd. It works great.

I also simply needed to install php-xml and restart httpd.

sudo yum install php-xml

sudo /sbin/service httpd restart
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top