Last modified: 2010-05-15 15:33:08 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 1407 - Installation fails
Installation fails
Status: RESOLVED DUPLICATE of bug 1107
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
1.4.x
PC OpenBSD
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-01-25 21:27 UTC by Ian Gregory
Modified: 2010-05-15 15:33 UTC (History)
0 users

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


Attachments

Description Ian Gregory 2005-01-25 21:27:55 UTC
After filling out the installation form and submitting, the installation failed
with:

"Cannot redeclare class namespace in
/var/www/users/ian/sites/sitename/includes/Namespace.php on line 52"

Further investigation showed that the redeclaration arose from
includes/Setup.php, and then from the second require_once(
"../includes/Namespace.php" ) with in that.

The following diff fixed the installation, and successfully installed MediaWiki:

$diff index.orig index.php
115,116c115,116
< require_once( "../includes/MagicWord.php" );
< require_once( "../includes/Namespace.php" );
---
> #require_once( "../includes/MagicWord.php" );
> #require_once( "../includes/Namespace.php" );

(NB: I fully expect that this is a bug in PHP rather than MediaWiki as the
require_once function doesn't seem to be doing what it's supposed to - however,
posting here first in case there is something specific MediaWiki does which
might affect require_once)
Comment 1 Brion Vibber 2005-01-26 00:28:40 UTC
Server's operating system? PHP version? Where is your docroot? Is it on a symlink? A chroot? Anything unusual?
Comment 2 Zigger 2005-01-26 00:53:11 UTC

*** This bug has been marked as a duplicate of 1107 ***

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


Navigation
Links