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

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T5867, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 3867 - Undefined functions in upgrade1_5.php
Undefined functions in upgrade1_5.php
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
1.4.x
PC Linux
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

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
necessary
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.
Done.
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.
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.


Navigation
Links