Last modified: 2011-10-31 01:10:39 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 T32528, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30528 - No Search suggeestion on page Special:Ask (jQuery.noConflict issue)
No Search suggeestion on page Special:Ask (jQuery.noConflict issue)
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-23 14:54 UTC by Andreas Plank
Modified: 2011-10-31 01:10 UTC (History)
3 users (show)

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


Attachments

Description Andreas Plank 2011-08-23 14:54:30 UTC
On the page Special:Ask no $-JavaScript code is functioning and hence no search suggestion completion will work. We use Semantic MediaWiki r93922 or (http://offene-naturfuehrer.de/web/Spezial:Semantische_Suche) or r95304 on a testwiki (http://biowikifarm.net/test/Special:Ask) and it is on both wikis. The only workaround for this seems currently to restore $ on the MediaWiki:Common.js page:

if(typeof $ ==="undefined"){$ = jQuery;}
 
I think on http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_SpecialAsk.php?revision=94774&view=markup line 221 the…

jQuery.noConflict();

…has to be removed. No?
Comment 1 Jeroen De Dauw 2011-08-24 02:50:19 UTC
Auto-suggest of properties is not working for me, but this seems to be because the API is not returning any results. I don't see any issues with jQuery on MW trunk. What version of MediaWiki are you using?
Comment 2 Andreas Plank 2011-08-24 06:26:39 UTC
Versions 1.19alpha http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/?pathrev=93922 
1.18alpha http://svn.wikimedia.org/viewvc/mediawiki/branches/REL1_18/phase3/?pathrev=95304 

Well if I switch on the browser debugger on http://offene-naturfuehrer.de/web/Spezial:Semantische_Suche Special:Ask it throws the error 
Uncaught exception: TypeError: Cannot convert '$' to object
Uncaught exception: TypeError: '$' is not a function

Somehow $ is not known at this moment. On our testwiki (1.18alpha) it works, because I added on the MediaWiki:Common.js page:

if(typeof $ ==="undefined"){$ = jQuery;}
Comment 3 Jeroen De Dauw 2011-08-24 06:39:57 UTC
I'm not getting this error, on 1.17 and trunk, on several wikis with different configurations. Looks like you have some extension that adds JS which is then getting messed up by the call to jQuery.noConflict. There is probably no real reason for this call, so I'll look into removing it. Thanks for reporting :)
Comment 4 Jeroen De Dauw 2011-10-31 01:10:39 UTC
Removed in r101333

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


Navigation
Links