Topic on Project:Support desk

Upgrade from 1.15.1 to the latest one

7
KB7777 (talkcontribs)

Hello :)

As a new administrator at my company I would like to upgrade old mediawiki to the latest one, but I'm not sure if it is possible at all :)

Current one -- Debian 7.10 / PostgreSQL 9.4 / MediaWiki 1.15.1

The new -- CentOS 7 / MariaDB / MediaWiki. All up-to-dates :)

The OS's is no problem. If it is not possible to do the seamly migrate from pgsql to mariadb it's fine, let it be postgresql. What about ofupgrading 8 years old MediaWiki? Is it worth? If not, what about data from the old one? What is the best way to do the migration job?

The MediaWiki users are from AD by the LDAPAuthorization backend, and we use extensions: SyntaxHighlight (broken now after some problem with old server), Calenda, FCKeditor, FileProtocolsLinks, NewestPages,  WhitelistedNamespaces and Multilang.

I will be grateful for any help :)

Regards.

Malyacko (talkcontribs)

See Manual:Upgrading for general info. Some extension might not be maintained anymore and hence not work, see for example Extension:FCKeditor. Have you run into specific issues when doing an upgrade test on some test server?

KB7777 (talkcontribs)

> Have you run into specific issues when doing an upgrade test on some test server?

Not yet, but... Now I am searching infos about what are upgrade paths to choose.

I was thinking about using "php dumpBackup.php --full" and import it to the new instance, but I have some errors and I don't now why yet:

PHP Notice:  Undefined index: HTTP_USER_AGENT in /home/services/html/infoit.xxx.com.pl/mediawiki/extensions/FCKeditor/fckeditor/fckeditor_php5.php on line 37

PHP Warning:  pg_query() expects parameter 1 to be resource, null given in /home/services/html/infoit.xxx.com.pl/mediawiki/includes/db/DatabasePostgres.php on line 580

PHP Fatal error:  Call to a member function fetchObject() on a non-object in /home/services/html/infoit.xxx.com.pl/mediawiki/includes/Export.php on line 300

Malyacko (talkcontribs)

See my comment above - FCKeditor is unmaintained and hence its code has not been kept up-to-date to work with newer MediaWiki versions (though that's only about the first notice and not about the rest of the warnings / errors).

KB7777 (talkcontribs)

I saw it, but if I would like to move my old MediaWiki instance to another server the "dumpBackup.php --full" command should work, right?

Ciencia Al Poder (talkcontribs)

Note that the XML dump backup *only* exports article contents, not images, logs and private info like user accounts, preferences, etc.

You may try to upgrade to 1.15.5 first (see downloads here) in case the other errors have been fixed. You can also try disabling FCKeditor before attempting to run dumpBackup.php, since it seems to not be compatible with CLI scripts.

Seb35 (talkcontribs)

If you upgrade to MediaWiki 1.26 or more, you can replace FCKEditor by VisualEditor. I say >= 1.26 because VisualEditor has a very good quality from 1.26.

As Ciencia suggests, you should dump the SQL database instead of using the XML dumps. Then import it in MediaWiki 1.26 (with the same LocalSettings.php), upgrade each extensions and then use maintenance/upgrade.php.

Reply to "Upgrade from 1.15.1 to the latest one"