Last modified: 2014-09-02 16:34:15 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 T53318, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 51318 - Uncaught TypeError: Cannot read property 'info' of undefined
Uncaught TypeError: Cannot read property 'info' of undefined
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Translate (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: javascript
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-14 12:55 UTC by Helder
Modified: 2014-09-02 16:34 UTC (History)
6 users (show)

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


Attachments

Description Helder 2013-07-14 12:55:52 UTC
When I save a translation at
https://www.mediawiki.org/w/index.php?title=Special:Translate&group=page-Help%3AVisualEditor%2FUser+guide&filter=%21translated&action=translate&debug=1
I'm getting the following error:
-------------------------------------------------------------
Uncaught TypeError: Cannot read property 'info' of undefined
-------------------------------------------------------------

It comes from the line
-------------------------------------------------------------
translateEditor.savingError( results.error.info );
-------------------------------------------------------------

of the file
https://bits.wikimedia.org/static-1.22wmf10/extensions/Translate/resources/js/ext.translate.editor.js
Comment 1 Niklas Laxström 2014-09-02 08:00:00 UTC
This code no longer exists.
Comment 2 Helder 2014-09-02 16:34:15 UTC
The line of code was replaced by
translateEditor.onSaveFail( response.error.info );
on I2bbc6676c9ce99444f3b346d6c670ccda3a07968:
https://gerrit.wikimedia.org/r/#/c/88447/8/resources/js/ext.translate.editor.js

The actual fix was made on Ib53cd76c086c34244b4e9ced3072f3f036a92141:
https://gerrit.wikimedia.org/r/#/c/103244/3/resources/js/ext.translate.editor.js,unified

PS (In reply to Helder from comment #0):
On Firefox the error message was "TypeError: results.error is undefined".

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


Navigation
Links