Page MenuHomePhabricator

LocalSettings configured wrong for extensions
Closed, InvalidPublic

Description

Author: sircomputer

Description:
When installing MediaWiki, I decided to tick all the extensions. However, this did not work out, as the include_once is incorrectly set. It should be set as require_once("$IP/extensions/Poem/Poem.php");, instead it was set as require_once "$IP/extensions/Poem/Poem.php"; causing an error such as

Warning: require_once(C:\Users\OliverAdmin\Documents\mwxampp\htdocs\x1bxtensions\Cite\Cite.php): failed to open stream: Invalid argument in C:\Users\OliverAdmin\Documents\mwxampp\htdocs\LocalSettings.php on line 127

Fatal error: require_once(): Failed opening required 'C:\Users\OliverAdmin\Documents\mwxampp\htdocs\x1bxtensions\Cite\Cite.php' (include_path='.;C:\Users\OliverAdmin\Documents\mwxampp\php\PEAR') in C:\Users\OliverAdmin\Documents\mwxampp\htdocs\LocalSettings.php on line 127


Version: 1.22.0
Severity: normal

Details

Reference
bz58909

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:22 AM
bzimport set Reference to bz58909.
bzimport added a subscriber: Unknown Object (MLST).

sircomputer wrote:

Oh, Cite is installed differently, but same error applies for Poem.

sircomputer wrote:

Sorry about posting yet again, but it looks like it may just be a select few that glitch out.

The brackets are not the issue (The brackets are optional for require_once in php as its technically a keyword)

In what you posted, between "htdocs" and "xtensions" there is the character U+1B (Which is the "escape" character. Mostly that is used for making text colourful in terminals). I'm not sure if that's a copy/paste error, or actually in the file, but if it is actually in LocalSettings.php, that may be causing your issue.

Thanks bawolff! Closing as INVALID as per comment 3 - sounds like an issue for https://www.mediawiki.org/wiki/Project:Support_desk