Last modified: 2014-01-29 21:37:47 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 T61648, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 59648 - Changes via Special:Translate not saved throwing TypeError (on meta.wikimedia.org)
Changes via Special:Translate not saved throwing TypeError (on meta.wikimedia...
Status: RESOLVED WORKSFORME
Product: MediaWiki extensions
Classification: Unclassified
Translate (Other open bugs)
unspecified
All All
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-04 16:38 UTC by Patrik (pajz)
Modified: 2014-01-29 21:37 UTC (History)
10 users (show)

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


Attachments
Screenshot of bug on Special:Translate (115.20 KB, image/png)
2014-01-04 20:44 UTC, Patrik (pajz)
Details
Screenshot of $.ime.preferences.registry output (32.97 KB, image/png)
2014-01-04 21:42 UTC, Patrik (pajz)
Details

Description Patrik (pajz) 2014-01-04 16:38:27 UTC
PROBLEM DESCRIPTION
===================
When accessing https://meta.wikimedia.org/w/index.php?title=Special:Translate&tux=1&language=de&filter=&action=translate&group=page-Confidentiality+agreement+for+nonpublic+information and editing the first message on the list, the item collapses after clicking "Save translation" and includes the word "Saving..." on the right. "Saving..." does not disappear, however, and the change is never saved.

My interface language is English, and I'm translating into German. I'm using Google Chrome (31.0.1650.63 m) on Windows 7.

ERROR MESSAGES IN CONSOLE
=========================
Between loading https://meta.wikimedia.org/w/index.php?title=Special:Translate&tux=1&debug=true&language=de&filter=&action=translate&group=page-Confidentiality+agreement+for+nonpublic+information and clicking "Save translation", the following two error messages appear (the latter appearing immediately after clicking the "Save translation" button):

TypeError: Cannot read property 'depends' of undefined TypeError {} load.php?debug=true&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2Clo…:9511
log load.php?debug=true&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2Clo…:9511
handlePending load.php?debug=true&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2Clo…:10323
markModuleReady load.php?debug=true&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2Clo…:10458
nestedAddScript load.php?debug=true&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2Clo…:10465
(anonymous function) load.php?debug=true&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2Clo…:10470
script.onload.script.onreadystatechange load.php?debug=true&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2Clo…:10390

Uncaught TypeError: Cannot read property 'depends' of undefined jquery.ime.js:306
IME.load jquery.ime.js:306
IMESelector.selectIM jquery.ime.js:1203
IMESelector.selectLanguage jquery.ime.js:1134
mw.ime.addIme ext.uls.ime.js:297
mw.ime.handleFocus ext.uls.ime.js:248
(anonymous function) ext.uls.ime.js:210
jQuery.event.dispatch load.php?debug=true&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2Clo…:3058
elemData.handle.eventHandle load.php?debug=true&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2Clo…:2676
jQuery.event.trigger load.php?debug=true&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2Clo…:2941
(anonymous function) load.php?debug=true&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2Clo…:3599
jQuery.extend.each load.php?debug=true&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2Clo…:611
jQuery.fn.jQuery.each load.php?debug=true&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2Clo…:241
jQuery.fn.extend.trigger load.php?debug=true&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2Clo…:3598
jQuery.fn.(anonymous function) load.php?debug=true&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2Clo…:3652
$.fn.extend.focus jquery.ui.core.js:75
TranslateEditor.show ext.translate.editor.js:902
TranslateEditor.next ext.translate.editor.js:273
TranslateEditor.save ext.translate.editor.js:179
(anonymous function) ext.translate.editor.js:587
jQuery.event.dispatch load.php?debug=true&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2Clo…:3058
elemData.handle.eventHandle load.php?debug=true&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2Clo…:2676
Comment 1 Niklas Laxström 2014-01-04 18:51:07 UTC
Can you check what $.ime.preferences.registry contains? Maybe changing input method will clear the invalid value.
Comment 2 Patrik (pajz) 2014-01-04 20:22:33 UTC
I'm afraid I have no idea what that is and/or how I can check it.
Comment 3 Patrik (pajz) 2014-01-04 20:44:22 UTC
Created attachment 14226 [details]
Screenshot of bug on Special:Translate

I've attached a screenshot (including the error messages in the console), if that's of any help.
Comment 4 Nemo 2014-01-04 21:23:27 UTC
(In reply to comment #2)
> I'm afraid I have no idea what that is and/or how I can check it.

A wikielf tells me you have to stay in the page where the error happens, enter what follows in your location/address bar (instead of the URL) and press enter:
   javascript:alert($.ime.preferences.registry);
or stay in the error/dev console in screenshot, past this next to the blue arrow and press enter:
   $.ime.preferences.registry
Comment 5 Patrik (pajz) 2014-01-04 21:40:30 UTC
Thanks, I did the latter. That gives

Object {isDirty: true, language: "de", previousLanguages: Array[1], imes: Object}
Comment 6 Patrik (pajz) 2014-01-04 21:42:00 UTC
Created attachment 14227 [details]
Screenshot of $.ime.preferences.registry output

Details
Comment 7 Robby 2014-01-18 17:38:23 UTC
I would like to add that I witness the same issue when trying to make translations on meta.wikimedia.org although when making translations on translatewiki.net, on commons.wikimedia.org as well as on www.mediawiki.org this issue does not happen. I am using a fully updated PC under Windows 7 and with the latest released version of Mozilla Firefox.

I noted as well that when using the edit button and when i then open the link in a separate tab then I am able to save the translation without any problems. In this new tab the old translation interface is displayed.

The problem with this workaround is that it is really tricky to use as you need to work in different tabs. I will explain the way I do it when translating into lb. For example when translating on https://meta.wikimedia.org/w/index.php?title=Special:Translate&group=page-Glossary&action=translate&filter=&language=lb I click on the edit button for the first message to be translated and open it in another tab https://meta.wikimedia.org/wiki/Translations:Glossary/Page_display_title/lb?action=edit then I save the translation close again this tab and return to the previous page and go on with the next message to be translated.

I hope this additional information helps. If you need more information please contact me (best with a message on my discussion page on translatewiki.net User:Robby or on my discussion page on lb.wikipedia.org User:Robby)
Comment 8 Robby 2014-01-18 17:45:02 UTC
Just in order to be complete translations on www.wikidata.org is as well working pretty fine. So according to my findings the issue is just happening on meta so I guess it is due to some settings on meta. I would like to add that I have set no special ccs or js setting for my user account on any of these sites.
Comment 9 Robby 2014-01-25 16:09:23 UTC
When making today translations on meta.wikimedia.org I could no longer notice the behaviour described in this bug. I made test with Firefox Version 26.0 as well as with Google Chrome Version 32.0 and everything worked normal with both browsers.

If another user is able to confirm the issue is no longer appearing I suggest to close this bug.
Comment 10 Robby 2014-01-29 21:37:47 UTC
Due to the fact that the issue no longer appears by now I close this bug. If someone else will whitness the same issue again the bug can easily be reopened.

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


Navigation
Links