Author: mediazilla
Description:
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)
Version: 1.4.x
Severity: normal
OS: OpenBSD
Platform: PC