Last modified: 2010-05-15 15:33:08 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 T3407, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 1407 - Installation fails
Installation fails
Status: RESOLVED DUPLICATE of bug 1107
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  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: ---


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

"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
< 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.