mediawiki: page import and export

Categories: wiki

Tags: data, export, import, wiki

official documents on import and export.

basically, the process is done via Special:Import and Special:Export. from toolbox click Special pages, locate Import pages and Export pages links.

export

goto Special:Export. enter page names, one page per line. if page include namespace, prefix page name with the namespace.

not sure of names, look up via Special:Allpages. copy and paste name to export page.

exported file will be saved in xml format.

import

goto Special:Import. browse for exported file saved above and upload.


mediawiki: blank page after install

Categories: php, unix, wiki

Tags: fedora, mediawiki

after installing the lastest version of MediaWiki (V1.12.0), a blank page is displayed when accessing the site.

php error log shows:

PHP Fatal error: Class ‘DOMDocument’ not found in /path/to/wiki/includes/Preprocessor_DOM.php on line 566, referer: http://path/to/wiki/config/index.php

previous versions didn’t have this problem.

this was installed on fedora core 5 server. after some researches, i found that you need to install php-xml component to run (as root):

$ yum install php-xml
$ /etc/init.d/httpd restart

i don’t have root access to that particular server, so i found an alternate quick fix. add the following to LocalSettings.php:

PHP:

$wgParserConf['preprocessorClass'] = 'Preprocessor_Hash';

Affliates

Spreadfirefox Affiliate Button