Page MenuHomePhabricator

Errors when accessing Special:CX directly without parameters
Closed, ResolvedPublic

Description

  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,mediawiki,Spinner|jquery.triggerQueueCallback,lo…:383
jQuery.fn.jQuery.each load.php?debug=true&lang=en&modules=jquery,mediawiki,Spinner|jquery.triggerQueueCallback,lo…: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,mediawiki,Spinner|jquery.triggerQueueCallback,lo…:383
jQuery.fn.jQuery.each load.php?debug=true&lang=en&modules=jquery,mediawiki,Spinner|jquery.triggerQueueCallback,lo…: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,mediawiki,Spinner|jquery.triggerQueueCallback,lo…:3119
jQuery.Callbacks.self.add load.php?debug=true&lang=en&modules=jquery,mediawiki,Spinner|jquery.triggerQueueCallback,lo…:3165
jQuery.fn.ready load.php?debug=true&lang=en&modules=jquery,mediawiki,Spinner|jquery.triggerQueueCallback,lo…: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.


Version: master
Severity: normal

Details

Reference
bz67454

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 3:29 AM
bzimport set Reference to bz67454.

This page is supposed to be used with params. I guess we could add some kind of a simple error message to alleviate this.

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

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

Change 146728 merged by jenkins-bot:
Fix js error when Special:CX accessed without parameters

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