Last modified: 2012-11-07 06:22:25 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 T32170, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30170 - Loading SMW js & css files not working
Loading SMW js & css files not working
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Markus Krötzsch
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-01 21:39 UTC by John McClure
Modified: 2012-11-07 06:22 UTC (History)
2 users (show)

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


Attachments

Description John McClure 2011-08-01 21:39:22 UTC
The source for my page says:
<link rel="stylesheet" type="text/css" href="/w/extensions/SemanticMediaWiki/skins/SMW_custom.css" />
<script type="text/javascript" src="/w/extensions/SemanticMediaWiki/skins/SMW_tooltip.js"></script>

But I have the SMW extension in the directory
    /w/extensions/SemanticMediaWiki.156

I tried adding (to no avail):
'localBasePath' => $smwgIP.'/skins',
'remoteBasePath' => $smwgScriptPath.'/skins',
to SMW_Setup, but it didnt help me. 

Thanks.
John
Comment 1 John McClure 2011-08-01 21:45:22 UTC
I am using SMW 1.5.6 and MW 1.16.5
Comment 2 John McClure 2011-08-01 22:03:20 UTC
I changed SMW_SETUP's $smwgScriptPath value to:
 '/SemanticMediaWiki.156'
and that created the correct path to the css & js files.

<link rel="stylesheet" type="text/css" href="/w/extensions/SemanticMediaWiki.156/skins/SMW_custom.css" />
<script type="text/javascript" src="/w/extensions/SemanticMediaWiki.156/skins/SMW_tooltip.js"></script> 

Now I'm trying to determine why a tooltip is not visible.
Thanks
Comment 3 Jeroen De Dauw 2011-08-01 22:05:22 UTC
Why make it difficult for yourself? Just place it in SemanticMediaWiki...
Comment 4 John McClure 2011-08-01 22:22:29 UTC
The imagePath var in SWM_tooltip.js is also hardcoded to a directory named "SemanticMediaWiki". changed that the SemanticMediaWiki.156 to get this to work.

after clearing the cache, this now works.
I am upgrading the problem back to a bug - there are now 2 files that needs a little tender loving care
a. SMW-Setup.php = fix the #smwgScriptPath var, removing hardcoding
b. SWM_tooltip.js = fix the imagePath var, removing hardcoding
Comment 5 John McClure 2011-08-01 22:24:23 UTC
Good q, Jeroen... because I have SMW 1.6 installed in extensions, for testing, to give you all feedback as requested.
Comment 6 John McClure 2011-08-01 22:27:17 UTC
(In reply to comment #5)
> Good q, Jeroen... because I have SMW 1.6 installed in extensions, for testing,
> to give you all feedback as requested.

I should note that that didnt go too well - guess because of db changes - but in the process I discovered this problem, is all.
Comment 7 MWJames 2012-11-07 06:22:25 UTC
SWM_tooltip.js/SMW_custom.css no longer exist in SMW 1.8 therefore this bug do not carry enough information for rendering this bug as related to SMW 1.8.

Please feel free to reopen the bug if it still applies to SMW 1.8.

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


Navigation
Links