Last modified: 2014-07-16 09:13:59 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 T69454, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 67454 - Errors when accessing Special:CX directly without parameters
Errors when accessing Special:CX directly without parameters
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
ContentTranslation (Other open bugs)
master
All All
: Low normal (vote)
: ---
Assigned To: Santhosh Thottingal
: easy
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-03 06:53 UTC by Niklas Laxström
Modified: 2014-07-16 09:13 UTC (History)
11 users (show)

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


Attachments

Description Niklas Laxström 2014-07-03 06:53:55 UTC
1) Log in
2) Go to http://en.wikipedia.beta.wmflabs.org/wiki/Special:ContentTranslation

Observed: UI only loads partially, there is JS error.
Expected: To work without error.

Exception thrown by ext.cx.base
TypeError: Cannot read property 'replace' of undefined 
TypeError

Detailed error:

Uncaught TypeError: Cannot read property 'replace' of undefined mediawiki.Title.js:125
parse mediawiki.Title.js:125
Title.newFromText mediawiki.Title.js:285
ContentTranslationSource.render ext.cx.source.js:79
ContentTranslationSource.init ext.cx.source.js:50
ContentTranslationSource ext.cx.source.js:43
(anonymous function) ext.cx.source.js:194
jQuery.extend.each load.php?debug=true&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2Clo…:383
jQuery.fn.jQuery.each load.php?debug=true&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2Clo…:136
$.fn.cxSource ext.cx.source.js:188
ContentTranslation.initComponents ext.cx.base.js:37
ContentTranslation.init ext.cx.base.js:31
ContentTranslation ext.cx.base.js:26
(anonymous function) ext.cx.base.js:69
jQuery.extend.each load.php?debug=true&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2Clo…:383
jQuery.fn.jQuery.each load.php?debug=true&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2Clo…:136
$.fn.cx ext.cx.base.js:64
(anonymous function) ext.cx.base.js:80
jQuery.Callbacks.fire load.php?debug=true&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2Clo…:3119
jQuery.Callbacks.self.add load.php?debug=true&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2Clo…:3165
jQuery.fn.ready load.php?debug=true&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2Clo…:3399
(anonymous function) ext.cx.base.js:79
(anonymous function) ext.cx.base.js:82


Also, before this error started occurring it showed the "undefined" article, that is not expected either.
Comment 1 Amir E. Aharoni 2014-07-11 08:44:18 UTC
This page is supposed to be used with params. I guess we could add some kind of a simple error message to alleviate this.
Comment 2 Nemo 2014-07-11 10:27:08 UTC
Special:PageTranslationDeletePage is an example one can copy.
https://translatewiki.net/wiki/Special:PageTranslationDeletePage
Comment 3 Gerrit Notification Bot 2014-07-16 08:58:42 UTC
Change 146728 had a related patch set uploaded by Santhosh:
Fix js error when Special:CX accessed without parameters

https://gerrit.wikimedia.org/r/146728
Comment 4 Santhosh Thottingal 2014-07-16 08:59:47 UTC
We show a dialog to choose the article and language pairs now. But this specific js error was still happening and fixed in https://gerrit.wikimedia.org/r/146728
Comment 5 Gerrit Notification Bot 2014-07-16 09:10:56 UTC
Change 146728 merged by jenkins-bot:
Fix js error when Special:CX accessed without parameters

https://gerrit.wikimedia.org/r/146728

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


Navigation
Links