Page MenuHomePhabricator

JavaScript error in ULS in getScript: TypeError: Cannot read property '0' of undefined
Closed, ResolvedPublic

Description

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)

Version: unspecified
Severity: normal

Details

Reference
bz46841

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:38 AM
bzimport set Reference to bz46841.

Confirmed. Seems a bit of an artificial scenario, though, for which we have no real world equivalents?

I dunno if commons still uses the uselang=upload hack which would tricker this.

(In reply to comment #2)

I dunno if commons still uses the uselang=upload hack which would tricker
this.

The do.

Created attachment 12171
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

Attached:

JustCapIt5594.jpg (396×956 px, 105 KB)

Related URL: https://gerrit.wikimedia.org/r/60862 (Gerrit Change I5a221037af72319f2220bb54230a9549046b6024)