Page MenuHomePhabricator

Special:MovePage at cbk-zam Wikipedia is broken: "RangeError: invalid language tag"
Open, Needs TriagePublic

Description

Expected:
When attempting to move a page at the Chavacano de Zamboanga (cbk-zam) Wikipedia (Special:MovePage), the namespace and title form fields appear and can be interacted by the user.

Actual:
The namespace and title form fields appear for a split second but then disappear. Additionally, the JavaScript console says: "RangeError: invalid language tag: cbk-zam"

Event Timeline

seav created this task.Jul 19 2019, 12:40 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 19 2019, 12:40 PM

Hi @seav, thanks for taking the time to report this!

Can you please use Special:MovePage with debug=true (see https://www.mediawiki.org/wiki/Help:Locating_broken_scripts for some info) and post the complete JavaScript console error and also the exact location where it is triggered?

Aklapper renamed this task from Move page special page at cbk-zam Wikipedia is broken to Move page special page at cbk-zam Wikipedia is broken: "RangeError: invalid language tag".Jul 19 2019, 1:22 PM
Aklapper removed a project: MediaWiki-Special-pages.
seav added a comment.EditedJul 19 2019, 1:31 PM

Hmmm. When I add the debug=true parameter to the URL, the problem disappears and there are no errors in the JS console.

Scratch that. The problem still exists but the form fields show for a much longer time before disappearing.

Here is the console log:

[jquery.js:3819:18]
jQuery.Deferred exception: invalid language tag: cbk-zam MwWidgetsTitleWidget@https://cbk-zam.wikipedia.org/w/resources/src/mediawiki.widgets/mw.widgets.TitleWidget.js?7d5dd:64:4
MwWidgetsTitleInputWidget@https://cbk-zam.wikipedia.org/w/resources/src/mediawiki.widgets/mw.widgets.TitleInputWidget.js?6bb5d:34:26
MwWidgetsComplexTitleInputWidget@https://cbk-zam.wikipedia.org/w/resources/src/mediawiki.widgets/mw.widgets.ComplexTitleInputWidget.js?685ff:27:16
OO.ui.Element.static.unsafeInfuse@https://cbk-zam.wikipedia.org/w/resources/lib/ooui/oojs-ui-core.js?3ed96:819:8
OO.ui.Element.static.infuse@https://cbk-zam.wikipedia.org/w/resources/lib/ooui/oojs-ui-core.js?3ed96:674:33
OO.ui.infuse@https://cbk-zam.wikipedia.org/w/resources/lib/ooui/oojs-ui-core.js?3ed96:331:30
@https://cbk-zam.wikipedia.org/w/resources/src/mediawiki.misc-authed-ooui/special.movePage.js?a472a:11:9
mightThrow@https://cbk-zam.wikipedia.org/w/resources/lib/jquery/jquery.js?6fb03:3535:29
resolve/</process<@https://cbk-zam.wikipedia.org/w/resources/lib/jquery/jquery.js?6fb03:3603:12
 undefined

[mw.widgets.TitleWidget.js:64:4]
RangeError: invalid language tag: cbk-zam

I tried the action here:
https://cbk-zam.wikipedia.org/wiki/Especial:MoverP%C3%A1gina/Dimasalang,_Masbate?debug=true

seav added a comment.Jul 19 2019, 1:37 PM

With the debug=true, I can move pages as long as I am able to submit the form before the namespace and title form fields disappear.

Jdforrester-WMF added a subscriber: Jdforrester-WMF.

Please don't tag the library about problems with it use.

In T228510#5350178, @Jdforrester-WMF wrote:

Please don't tag the library about problems with it use.

Ah, sorry then. I thought the file might be part of the actual library codebase, but looks like it is not... :)

Reedy renamed this task from Move page special page at cbk-zam Wikipedia is broken: "RangeError: invalid language tag" to Special:MovePage at cbk-zam Wikipedia is broken: "RangeError: invalid language tag".Jul 20 2019, 1:12 PM