Last modified: 2010-05-15 15:56:41 UTC
Trying to update from 1.5.8 to 1.6.5 but the maintenance/update.php script fails for me. -sh-3.00$ php ./update.php PHP Fatal error: Cannot redeclare wfprofilein() (previously declared in /home/humancell/mediawiki-1.6.2/includes/ProfilerStub.php:6) in /home/humancell/public_html/includes/Setup.php on line 30 Content-type: text/html X-Powered-By: PHP/4.3.9 The same problem arises whether using mediawiki-1.6.2 or 1.6.5. My php version is not the latest (4.3.9), but is still supported according to INSTALL: "Web server with PHP 4.3.2 or higher; 4.4.x or 5.x is recommended." I mailed the mediawiki mailing list but got no response, so am reporting the problem as a bug.
We can't reproduce this problem, so you'll need to provide more information.
Did you use the same php version (4.3.9)? What further information would be useful?
Linux CentOS 4.3 with kernel 2.6.15 apache 2.0.52 mysql 4.1.12 php 4.3.9 mediawiki-1.6.5.tar.gz downloaded May 3rd. -sh-3.00$ cd mediawiki-1.6.5/maintenance -sh-3.00$ php ./update.php PHP Fatal error: Cannot redeclare wfprofilein() (previously declared in /home/humancell/mediawiki-1.6.5/includes/ProfilerStub.php:6) in /home/humancell/public_html/includes/Setup.php on line 30 Content-type: text/html X-Powered-By: PHP/4.3.9 -sh-3.00$
Found the problem: removed symbolic link from public_html -> mediawiki-1.5.8 added symbolic link from public_html -> mediawiki-1.6.5 THEN did update and it worked fine. Didn't see this point mentioned in http://www.mediawiki.org/wiki/Help:Upgrading_to_1.6 or elsewhere. Perhaps obvious for many, but cost me a bit of time. Might be worth mentioning.
I think it should be pretty obvious that you should not use a different version's source code, but rather the version you're installing. :)
I don't get the point - it's a command line operation and I don't expect it to be going through the webserver. But it works, so you're obviously right :-)