Last modified: 2010-05-15 15:33:18 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 3867 - Undefined functions in upgrade1_5.php
Undefined functions in upgrade1_5.php
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
PC Linux
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2005-11-03 13:10 UTC by Thorsten Jens
Modified: 2010-05-15 15:33 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Thorsten Jens 2005-11-03 13:10:06 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/ 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.
Comment 1 Brion Vibber 2005-11-03 21:02:58 UTC
Please check that you're not mixing files from different software versions.
Comment 2 Thorsten Jens 2005-11-03 21:59:51 UTC
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.
Comment 3 Brion Vibber 2005-11-03 22:15:36 UTC
Then it's including the 1.4.0 files from your 1.4.0 directory. Fix 
LocalSettings.php to point at the correct location.

Note You need to log in before you can comment on or make changes to this bug.