Page MenuHomePhabricator

Uncaught TypeError: Cannot read property 'info' of undefined
Closed, ResolvedPublic

Description

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


Version: unspecified
Severity: normal

Details

Reference
bz51318

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:54 AM
bzimport set Reference to bz51318.
bzimport added a subscriber: Unknown Object (MLST).

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".