Last modified: 2013-01-17 09:29:14 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 T46013, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 44013 - JavaScript error in ULS
JavaScript error in ULS
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
UniversalLanguageSelector (Other open bugs)
master
All All
: Normal normal (vote)
: ---
Assigned To: Amir E. Aharoni
https://meta.wikimedia.org/w/index.ph...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-15 20:37 UTC by Nemo
Modified: 2013-01-17 09:29 UTC (History)
9 users (show)

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


Attachments

Description Nemo 2013-01-15 20:37:48 UTC
Apparently also breaking some local JS, including LangSelect for some people (and that's quite an important one).
Quoting from the URL.

----

<p>Fecha y hora: 15/01/2013 21:12:43</p>
<p>'''Error: TypeError: previousLanguages.push is not a function'''</p>
<p>Archivo de origen: https://bits.wikimedia.org/meta.wikimedia.org/load.php?debug=false&lang=en&modules=ext.centralNotice.bannerController%7Cext.translate%7Cext.uls.displaysettings%2Cgeoclient%2Cime%2Cinit%2Cinputsettings%2Clanguagesettings%2Cpreferences%2Cwebfonts%7Cext.uls.webfonts.repository%7Cjquery.byteLength%2CbyteLimit%2Cclient%2Ccookie%2Ci18n%2Cime%2CjStorage%2Cjson%2CmwExtension%2CtextSelection%2Ctipsy%2Culs%2Cwebfonts%7Cmediawiki.Uri%2Capi%2Cnotify%2Cuser%2Cutil%7Cmediawiki.action.edit%7Cmediawiki.legacy.ajax%2Cwikibits%7Cmediawiki.page.startup&skin=monobook&version=20130115T091957Z&*</p>
<p>Línea: 27</p>

Which is: 

previousLanguages.push(currentLang);mw.uls.setPreviousLanguages(previousLanguages);$ulsTrigger.tipsy({gravity:'n',delayOut:3000,html:true,fade:true,trigger:'manual',title:function(){var link;link=$('<a>').text($.uls.data.getAutonym(previousLang)).attr({href:'#','class':'uls-prevlang-link',lang:previousLang,dir:$.uls.data.getDir(previousLang)});link=$('<div>').html(link).html();return $.i18n('ext-uls-undo-language-tooltip-text',link);}});function showTipsy(timeout){var tipsyTimer=0;$ulsTrigger.tipsy('show');$('.tipsy').on('mouseover',function(){window.clearTimeout(tipsyTimer);});$('.tipsy').on('mouseout',function(){tipsyTimer=window.setTimeout(function(){hideTipsy();},timeout);});$('a.uls-prevlang-link').on('click',function(){mw.uls.changeLanguage($(this).attr('lang'));});tipsyTimer=window.setTimeout(function(){hideTipsy();},timeout);}function hideTipsy(){$ulsTrigger.tipsy('hide');}showTipsy(6000);$ulsTrigger.on('mouseover',function(){if(!$ulsTrigger.data('uls').shown){showTipsy(3000);}
Comment 1 Siebrand Mazeland 2013-01-15 21:17:07 UTC
Nemo: What is LangSelect? Where does it live?
Comment 2 Platonides 2013-01-15 21:26:03 UTC
It's a javascript which shows/hides different parts of the interface.

For a description see http://meta.wikimedia.org/wiki/Meta:Language_select
The code is at http://commons.wikimedia.org/wiki/MediaWiki:Gadget-LanguageSelect.js
Comment 3 Siebrand Mazeland 2013-01-15 21:39:13 UTC
I'm having trouble reproducing this problem. Can we have the following information, please?

1. Operating system
2. Browser
3. Browser version
4. Steps to reproduce
Comment 4 Nemo 2013-01-15 23:12:25 UTC
Marco Aurelio, can you please add details?

(In reply to comment #3)
> I'm having trouble reproducing this problem. Can we have the following
> information, please?
> 
> 1. Operating system
> 2. Browser
> 3. Browser version
> 4. Steps to reproduce

What I got so far:
1) Windows, if I remember correctly.
2) Firefox
3, 4: ?
Comment 5 MA 2013-01-16 02:20:34 UTC
Hi,

(In reply to comment #3)
> I'm having trouble reproducing this problem. Can we have the following
> information, please?
> 
> 1. Operating system
> 2. Browser
> 3. Browser version
> 4. Steps to reproduce

I don't really feel confortable giving all that information here. Feel free to email me and I'll provide it.

As for the steps to reproduce: really none, just logged-in today, saw that ULS was deployed at Meta; visited some pages and noticed that multilingual templates were not working anymore while logged-in (logged-out they worked fine). The data Nemo provides above in comment 0 is from the error console of my browser. I've not modified any JS/CSS personal files either. 

I must also say that as of today some useful scripts that I have in my common.js file at Meta-Wiki stopped working too.

Best regards & thanks for taking a look at this (and to Nemo for creating this ticket).
Comment 6 Niklas Laxström 2013-01-16 08:21:32 UTC
Apart from the pasted error, we are not familiar with the scripts running in meta and it is very hard for us to know what is expected or unexpected behavior for them. Thus "they are not working" is not useful to us. Either that has to be described in high detail or you must ask the script authors to investigate first.
Comment 7 Amir E. Aharoni 2013-01-16 09:23:19 UTC
Marco asked to email privately, so I did. There MAY be a ULS issue here that I am missing, but I need more info.
Comment 8 Platonides 2013-01-16 15:55:59 UTC
It works for me, I suspect of some issue of a not-correctly-purged script.
Comment 9 Andre Klapper 2013-01-17 09:19:30 UTC
Cannot reproduce either when playing around with ULS on meta, plus currently missing enough information to reproduce.
Comment 10 Siebrand Mazeland 2013-01-17 09:29:14 UTC
Closing as invalid for now. Please feel free to reopen when actionable information is added.

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


Navigation
Links