Last modified: 2010-05-15 15:33:08 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)
Server's operating system? PHP version? Where is your docroot? Is it on a symlink? A chroot? Anything unusual?
*** This bug has been marked as a duplicate of 1107 ***