Page MenuHomePhabricator

Installation fails
Closed, ResolvedPublic


Author: mediazilla

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)

Version: 1.4.x
Severity: normal
Platform: PC


TitleReferenceAuthorSource BranchDest Branch
dbbackups-check: Migrate connection check to a puppet-controlled ini filerepos/sre/wmfbackups!5jynuscheck-fixmain
Update function-schemata sub-module to HEAD (5f40813)repos/abstract-wiki/wikifunctions/function-evaluator!29jforrestersync-function-schematamain
Update function-schemata sub-module to HEAD (5f40813)repos/abstract-wiki/wikifunctions/wikilambda-cli!12jforrestersync-function-schematamain
Update function-schemata sub-module to HEAD (4927eba) (BREAKING - changes some test outputs)repos/abstract-wiki/wikifunctions/function-orchestrator!39apinesync-function-schematamain
Support degenerate quoted objects in the mixed validator, normalization, and canonicalization.repos/abstract-wiki/wikifunctions/function-schemata!22apineapine-norms-canonsmain
Customize query in GitLab

Revisions and Commits

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:10 PM
bzimport set Reference to bz1407.
bzimport added a subscriber: Unknown Object (MLST).

Server's operating system? PHP version? Where is your docroot? Is it on a symlink? A chroot? Anything unusual?

zigger wrote:

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

Diffusion added a commit: Unknown Object (Diffusion Commit).Mar 4 2015, 8:15 AM