Last modified: 2010-05-15 15:33:18 UTC
To update a MediaWiki 1.4.0 to 1.5.0 (or 1.5.2, for that matter), I ran:
thodi@tnsw1234:~/src/mediawiki-1.5.2$ php maintenance/upgrade1_5.php
PHP Notice: Constant already defined in
/var/www/htdocs/wiki/languages/Language.php on line 100
2005-11-03 12:44:19: Checking cur table for unique title index and applying if
wikidb: cur table has the old non-unique index and may have duplicate entries.
Checking for duplicate cur table entries... (this may take a while on a large wiki)
Found 0 titles with duplicate entries.
2005-11-03 12:44:19: ...converting from cur/old to page/revision/text DB structure.
2005-11-03 12:44:19: Creating page and revision tables...
2005-11-03 12:44:20: Last old record is 1468
......Moving text from cur.
2005-11-03 12:44:20: Last cur entry is 1185
PHP Fatal error: Call to undefined function: getmaxlag() in
/home/thodi/src/mediawiki-1.5.2/maintenance/commandLine.inc on line 182
Removing the getmaxlag() lines and trying again gave me several more errors,
including undefined function calls to wfGetMimeMagic() and not beeing able to
free a result during $this->dbr->freeResult( $result ); (in FiveUpgrade.php).
Is there something fundamentally flawed with my setup? PHP 4.3.7, MySQL 4.0.20.
Please check that you're not mixing files from different software versions.
I extracted the 1.5.2 tarball to a fresh directory
(/home/thodi/src/mediawiki-1.5.2/, the currently running 1.4.0 is in
/var/www/htdocs/wiki/), copied the LocalSettings.php to that directory, and ran
maintenance/upgrade1_5.php in that directory. So I guess every file that is run
should be from the 1.5.2 version.
Then it's including the 1.4.0 files from your 1.4.0 directory. Fix
LocalSettings.php to point at the correct location.