Page MenuHomePhabricator

Installation of bundled extensions fails on Windows
Closed, ResolvedPublic

Description

I tried to install MediaWiki 1.22 on Windows and selected a few of the bundled extensions. Installation continues smoothly, but I cannot call MediaWiki afterwards. Instead, I get this warning:

Warning: require_once(<path to mediawiki>\mediawiki-1.22.0\x1bxtensions\Cite\Cite.php): failed to open stream: Invalid argument in <path to mediawiki>\mediawiki-1.22.0\LocalSettings.php on line 126

The reason for this is most likely that the path to the extension file is written with backslashes in LocalSettings.php:

require_once "$IP\extensions\Cite\Cite.php";

Unfortunately, \e is an escape sequence. So the resulting include path for php is wrong. Instead of

...mediawiki-1.22.0/e\x1bxtensions...

it says

...mediawiki-1.22.0\x1bxtensions...


Version: 1.22.0
Severity: normal
OS: Windows 7

Details

Reference
bz58659

Event Timeline

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

Likely caused by 2e1852ad6c54. This would affect only the REL1_22 branch.

  • Bug 59079 has been marked as a duplicate of this bug. ***
  • Bug 59611 has been marked as a duplicate of this bug. ***

Fixed as of https://gerrit.wikimedia.org/r/#/c/107211/ and in MediaWiki 1.22.1. I can install extensions now on Windows. Thanks!