Last modified: 2010-05-15 15:56:41 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 5884 - php ./update.php -> PHP Fatal error: Cannot redeclare wfprofilein()
php ./update.php -> PHP Fatal error: Cannot redeclare wfprofilein()
Status: CLOSED WORKSFORME
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
1.6.x
PC Linux
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-05-09 15:24 UTC by zoubidoo
Modified: 2010-05-15 15:56 UTC (History)
0 users

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


Attachments

Description zoubidoo 2006-05-09 15:24:30 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.
Comment 1 Brion Vibber 2006-05-09 20:48:35 UTC
We can't reproduce this problem, so you'll need to provide more 
information.
Comment 2 zoubidoo 2006-05-10 08:18:46 UTC
Did you use the same php version (4.3.9)?  What further information would be useful?

Comment 3 zoubidoo 2006-05-10 08:47:34 UTC
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$
Comment 4 zoubidoo 2006-05-10 09:01:21 UTC
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.
Comment 5 Brion Vibber 2006-05-10 11:04:27 UTC
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. :)
Comment 6 zoubidoo 2006-05-10 11:31:31 UTC
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 :-)

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


Navigation
Links