Saturday, June 7, 2008

Empty index page for Mediawiki 1.12.0

I got an empty front page (main page) after a fresh installation of Mediawiki 1.12.0

Check /var/log/httpd/error_log

PHP Fatal error: Class 'DOMDocument' not found in /var/www/html/mediawiki-1.12.0/includes/Preprocessor_DOM.php on line 566

Google the error message:

http://www.mediawiki.org/wiki/Project:Support_desk#.28RESOLVED.29_PHP_Fatal_error:_Class_.27DOMDocument.27_not_found_in_.2Fvar.2Fwww.2Fhtml.2Fwiki.2Fincludes.2FPreprocessor_DOM.php_on_line_566

Final solution is:
yum install php-xml

I am a little bit disappointed that Mediawiki's installation phase does not check for this requirement.

No comments: