MediaWiki Importer | |
Attention: the importer can handle the conversion of most of the MediaWiki syntax to Tiki syntax but not all. If you are planning to use it, it is very likely that you will have to handle some corner cases manually.
Basically you need to generate a MediaWiki XML file and upload this file through the importer interface. Please read carefully all the documentation before using the importer to understand its features and limitations. Also look the comparative table between MediaWiki and Tiki syntax for a list of supported and not supported syntax. |
Warning | |
|
Requirements | |
|
Supported versions | |
The script was initially made with Tiki 4.0 and MediaWiki 1.14, and has evolved ever since. You should use the latest stable version of Tiki to import data from a recent version of MediaWiki.
|
What can be imported? | |
|
Importing a MediaWiki site step-by-step | |
1.1.1. The MediaWiki XML file | |
There are many ways to generate the MediaWiki XML file but only two have been tested with this importer (although it is very like that all ways work). The easiest one is to use the MediaWiki Special:Export page. Beware that using the special page has two significant limitations: there is no easy way to export all pages (the easiest one is to copy and paste the list of pages from Special:AllPages) and it is not possible to include a reference to the wiki page attachments (images or files). Due to those two limitations with Special:Export page, the recommended way to generate the XML file is by using the PHP script dumpBackup.php. This script is included in any MediaWiki installation since version 1.6 and is located in the directory maintenance/. With this script is possible to export all the revisions of each wiki page or just the last revision. Also you can include a reference for the wiki page attachments. Its official documentation is here. For information on how to generate the XML file see the official MediaWiki documentation. Tips: test always your xml is well formatted before importing it - otherwise you sill have a seg fault. Open the xml file with firefox for instance. It will tell you if error. |
1.1.2. Using the importer interface | |
Some users have reported that MediaWiki sometimes generate invalid XML files. So first of all check if you have created a valid XML by opening it on Firefox (or another program that can open XML files). If your file has XML errors Firefox will tell in which lines, whereas Tiki importer will just generate an error without further information. After verifying that you have a valid XML file from your MediaWiki site, go to your Tiki installation and under the Admin menu click on the option "Tiki Importer". Read carefully the messages and select the software from which you are going to import (MediaWiki is the only option until Tiki7, where Wordpress is also offered).
|
1.1.3. Handling MediaWiki users | |
Unfortunately, MediaWiki XML file does not has enough information about the users to allow the importer to automatically create new Tiki users. It only has the username and to be able to properly create the user we also need the user e-mail or password. So you have to separately import the users. To make this easy we created a MediaWiki extension to generate a CSV file with the username and email of all the MediaWiki users. For more information about how to install it and create the CSV file see the extension page. Once you have created the file you need to edit it and add a new column called password between the columns username and e-mail. Fill this column with random created passwords for each user. Then use the Tiki built-in feature to batch import users. This feature has an option to force the new users to change their password at first login. |
1.1.4. Video tutorials | |
|
Known issues | |
The following is a list of known issues with the current version of the importer. If you have technical knowledge please feel free to help.
Copy to clipboard
|
Support | |
|
Related | |
|
Modifications in the lib/pear/Text library | |
This library is used in the importer but is no more maintained
alias
|