Last modified: 2014-07-16 09:13:59 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.
This page is supposed to be used with params. I guess we could add some kind of a simple error message to alleviate this.
Special:PageTranslationDeletePage is an example one can copy. https://translatewiki.net/wiki/Special:PageTranslationDeletePage
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