Last modified: 2013-05-07 13:16:24 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 T48841, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 46841 - JavaScript error in ULS in getScript: TypeError: Cannot read property '0' of undefined
JavaScript error in ULS in getScript: TypeError: Cannot read property '0' of ...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
UniversalLanguageSelector (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Amir E. Aharoni
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-03 10:34 UTC by Niklas Laxström
Modified: 2013-05-07 13:16 UTC (History)
8 users (show)

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


Attachments
Screenshot of the error (105.69 KB, image/jpeg)
2013-04-25 12:51 UTC, Nemo
Details

Description Niklas Laxström 2013-04-03 10:34:56 UTC
Uncaught TypeError: Cannot read property '0' of undefined jquery.uls.data.utils.js:45
$.uls.data.getScript jquery.uls.data.utils.js:45
$.uls.data.isRtl jquery.uls.data.utils.js:409
$.uls.data.getDir jquery.uls.data.utils.js:418
$ulsTrigger.tipsy.title ext.uls.interface.js:151
Tipsy.getTitle jquery.tipsy.js:108
Tipsy.show jquery.tipsy.js:30
$.fn.tipsy jquery.tipsy.js:139
showTipsy ext.uls.interface.js:164
(anonymous function) ext.uls.interface.js:188
fire load.php:974
self.fireWith load.php:1084
jQuery.extend.ready load.php:406


Steps to reproduce:
1) uselang=t
2) uselang=fi (error occurs here)
Comment 1 Siebrand Mazeland 2013-04-03 11:01:38 UTC
Confirmed. Seems a bit of an artificial scenario, though, for which we have no real world equivalents?
Comment 2 Niklas Laxström 2013-04-03 11:15:53 UTC
I dunno if commons still uses the uselang=upload hack which would tricker this.
Comment 3 Nemo 2013-04-03 12:40:28 UTC
(In reply to comment #2)
> I dunno if commons still uses the uselang=upload hack which would tricker
> this.

The do.
Comment 4 Nemo 2013-04-25 12:51:49 UTC
Created attachment 12171 [details]
Screenshot of the error

According to a user, «if you are a new use[r], (never setting anything before), click the langguae button, selecet ime, this will nothing come out, it means you even cant disable the keyboard icon».

https://www.mediawiki.org/wiki/Thread:Extension_talk:UniversalLanguageSelector/i_found_a_bug_for_it
Comment 5 Amir E. Aharoni 2013-04-25 15:16:24 UTC
An upstream patch: https://github.com/wikimedia/jquery.uls/pull/89 .
Comment 6 Gerrit Notification Bot 2013-04-25 15:21:35 UTC
Related URL: https://gerrit.wikimedia.org/r/60862 (Gerrit Change I5a221037af72319f2220bb54230a9549046b6024)

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


Navigation
Links