Last modified: 2009-12-23 21:08:03 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T23833, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 21833 - smwgIP is hard coded for the $IP . '/extensions' directory
smwgIP is hard coded for the $IP . '/extensions' directory
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
SemanticForms (Other open bugs)
unspecified
All All
: Normal major (vote)
: ---
Assigned To: Yaron Koren
:
Depends on: 21832
Blocks: 21835
  Show dependency treegraph
 
Reported: 2009-12-13 00:18 UTC by Dan Bolser
Modified: 2009-12-23 21:08 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Dan Bolser 2009-12-13 00:18:05 UTC
I'm trying to use SF from a location other than the default "$IP/extensions" directory (for details see bug 21832). After changing include_only in LocalSettings.php appropriately, I get the following error:

[Sun Dec 13 08:45:21 2009] [error] [client 77.103.200.41] PHP Warning:  require_once(/BiO/Serve/Httpd/Funktopia.net/MW-1.15/extensions/SemanticForms/languages/SF_Language.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /BiO/Serve/Httpd/Funktopia.net/MWExtensions/SemanticForms/includes/SF_GlobalFunctions.php on line 93, referer: http://funktopia.net/index.php?title=Form:FilmReview&action=delete

[Sun Dec 13 08:45:21 2009] [error] [client 77.103.200.41] PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required '/BiO/Serve/Httpd/Funktopia.net/MW-1.15/extensions/SemanticForms/languages/SF_Language.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/MWExtensions/SemanticForms/includes/SF_GlobalFunctions.php on line 93, referer: http://funktopia.net/index.php?title=Form:FilmReview&action=delete


Line 93 of "SemanticForms/includes/SF_GlobalFunctions.php" looks like this:
    require_once($sfgIP . '/languages/SF_Language.php');


and $sfgIP is set on line 20 of "SemanticForms/includes/SF_Settings.php":
    $sfgIP = $IP . '/extensions/SemanticForms';

I changed that line to read:
    $sfgIP = dirname(__FILE__) . '/..';

and it seems to have fixed the problem (but there may be other 'issues').


Since SF requires SMW, how come you can't use settings like smwgIP?


Is there a problem with the fix that I'm using?

Cheers,
Dan.
Comment 1 Dan Bolser 2009-12-13 00:44:11 UTC
Similar bug in SD also...

#$sdgIP = $IP . '/extensions/SemanticDrilldown';
$sdgIP = dirname(__FILE__) . '/..';
Comment 2 Yaron Koren 2009-12-23 21:08:03 UTC
Fixed in SF, in version 1.8.6.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links