Page MenuHomePhabricator

Extension is hard coded for the '$IP/extensions' directory
Closed, InvalidPublic

Description

Author: dan.bolser

Description:
Please see bug 21832 for details (and a possible fix).

Using a non standard location for the extension:

include_once('extensions/MWExtensions/SemanticResultFormats/SRF_Settings.php');

Causes the following error:

[Sun Dec 13 10:39:38 2009] [error] [client 77.103.200.41] PHP Warning: AutoLoader::require(/BiO/Serve/Httpd/Funktopia.net/MW-1.15/extensions/SemanticResultFormats/SRF_ParserFunctions.php) [<a href='function.AutoLoader-require'>function.AutoLoader-require</a>]: failed to open stream: No such file or directory in /BiO/Serve/Httpd/Funktopia.net/MW-1.15/includes/AutoLoader.php on line 582
[Sun Dec 13 10:39:38 2009] [error] [client 77.103.200.41] PHP Fatal error: AutoLoader::require() [<a href='function.require'>function.require</a>]: Failed opening required '/BiO/Serve/Httpd/Funktopia.net/MW-1.15/extensions/SemanticResultFormats/SRF_ParserFunctions.php' (include_path='/BiO/Serve/Httpd/Funktopia.net/MW-1.15:/BiO/Serve/Httpd/Funktopia.net/MW-1.15/includes:/BiO/Serve/Httpd/Funktopia.net/MW-1.15/languages:.:/usr/share/pear:/usr/share/php') in /BiO/Serve/Httpd/Funktopia.net/MW-1.15/includes/AutoLoader.php on line 582

All my other (non SMW based) extensions don't seem to have a problem with this.


Version: unspecified
Severity: major

Details

Reference
bz21835

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:52 PM
bzimport set Reference to bz21835.

Most if not all MediaWiki extensions assume correct installation location whenever CSS, JS, images, or command-line scripts are involved. Installing extensions in a non-standard path isn't supported generally and can be assumed to break.