Mobile app version of vmapp.org
Login or Join
Berryessa370

: Problem upgrading Mediawiki 1.5.8 to Mediawiki 1.19 (libxml2 inadequate on server) I have a wiki set up on my local development environment. The wiki runs on Mediawiki 1.5.8, but I'm trying to

@Berryessa370

Posted in: #Mediawiki #Php

I have a wiki set up on my local development environment. The wiki runs on Mediawiki 1.5.8, but I'm trying to upgrade it to run on Mediawiki 1.19.

When I run the update.php script I get the following error message:

Your system has a combination of PHP and libxml2 versions which is buggy
and can cause hidden data corruption in MediaWiki and other web apps.
Upgrade to PHP 5.2.9 or later and libxml2 2.7.3 or later!
ABORTING (see bugs.php.net/bug.php?id=45996).

Running php -v gives a PHP version number of 5.2.9, and since this is the PHP install that is running the update.php script I'm guessing this isn't the problem.

I've got libxml2 insalled via MacPorts, and according to MacPorts version 2.7.8 is installed, which should be sufficiently up-to-date to get Mediawiki updating properly.

Any ideas as to how I can go about resolving this?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Berryessa370

1 Comments

Sorted by latest first Latest Oldest Best

 

@Goswami781

Looking at the source code it's checking the PHP version, but for libxml2 it actually runs some code to see if the bug is there. gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;a=blob;f=includes/installer/PhpBugTests.php
It looks like even the version you have has the bug, and you have the latest libxml2 so I'd edit the code in that function so that it doesn't check for that bug.

If you look at the end of that bug report someone found it in a supposedly valid combination of PHP and libxml2.

(Open source: cons - component version clashes, pros - open source.)

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme