Page MenuHomePhabricator

Special:MovePage is broken on beta with JS enabled
Closed, ResolvedPublic

Description

image.png (561×903 px, 46 KB)

The network log for the page load has a failed sentry request

image.png (240×971 px, 30 KB)

Disabling JS and the page works as expected, I believe this is due to the sentry error.

See: T106920: Integrate Sentry with beta cluster

Event Timeline

Change 399680 had a related patch set uploaded (by Addshore; owner: Addshore):
[operations/mediawiki-config@master] BETA: unset $wgSentryDsn

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

What makes you think that? Sentry is a JS error logger so you'll see a Sentry request any time something is causing a JS error. The requests use Navigator.sendBeacon where supported and AJAX otherwise so whether or not the request fails does not make any difference.

IIRC Sentry does not suppress console logging so you should still see what caused the error.

The error I see is

Uncaught RangeError: Invalid language tag: deployment
    at new Collator (native)
    at MwWidgetsTitleInputWidget.MwWidgetsTitleWidget (https://deployment.wikimedia.beta.wmflabs.org/w/load.php?debug=false&lang=deployment&modules=jquery.byteLimit%7Cmediawiki.special.movePage%7Cmediawiki.widgets%7Cmediawiki.widgets.visibleByteLimit%7Coojs-ui-core%2Coojs-ui-widgets%7Coojs-ui.styles.icons-editing-advanced%2Cicons-moderation&skin=vector&version=06guc4v:5:725)
    at new MwWidgetsTitleInputWidget (https://deployment.wikimedia.beta.wmflabs.org/w/load.php?debug=false&lang=deployment&modules=jquery.byteLimit%7Cmediawiki.special.movePage%7Cmediawiki.widgets%7Cmediawiki.widgets.visibleByteLimit%7Coojs-ui-core%2Coojs-ui-widgets%7Coojs-ui.styles.icons-editing-advanced%2Cicons-moderation&skin=vector&version=06guc4v:11:801)
    at new MwWidgetsComplexTitleInputWidget (https://deployment.wikimedia.beta.wmflabs.org/w/load.php?debug=false&lang=deployment&modules=jquery.byteLimit%7Cmediawiki.special.movePage%7Cmediawiki.widgets%7Cmediawiki.widgets.visibleByteLimit%7Coojs-ui-core%2Coojs-ui-widgets%7Coojs-ui.styles.icons-editing-advanced%2Cicons-moderation&skin=vector&version=06guc4v:15:939)
    at Object.OO.ui.Element.static.unsafeInfuse (https://deployment.wikimedia.beta.wmflabs.org/w/load.php?debug=false&lang=deployment&modules=jquery.byteLimit%7Cmediawiki.special.movePage%7Cmediawiki.widgets%7Cmediawiki.widgets.visibleByteLimit%7Coojs-ui-core%2Coojs-ui-widgets%7Coojs-ui.styles.icons-editing-advanced%2Cicons-moderation&skin=vector&version=06guc4v:29:358)
    at Object.OO.ui.Element.static.infuse (https://deployment.wikimedia.beta.wmflabs.org/w/load.php?debug=false&lang=deployment&modules=jquery.byteLimit%7Cmediawiki.special.movePage%7Cmediawiki.widgets%7Cmediawiki.widgets.visibleByteLimit%7Coojs-ui-core%2Coojs-ui-widgets%7Coojs-ui.styles.icons-editing-advanced%2Cicons-moderation&skin=vector&version=06guc4v:26:934)
    at Object.OO.ui.infuse (https://deployment.wikimedia.beta.wmflabs.org/w/load.php?debug=false&lang=deployment&modules=jquery.byteLimit%7Cmediawiki.special.movePage%7Cmediawiki.widgets%7Cmediawiki.widgets.visibleByteLimit%7Coojs-ui-core%2Coojs-ui-widgets%7Coojs-ui.styles.icons-editing-advanced%2Cicons-moderation&skin=vector&version=06guc4v:23:978)
    at HTMLDocument.<anonymous> (https://deployment.wikimedia.beta.wmflabs.org/w/load.php?debug=false&lang=deployment&modules=jquery.byteLimit%7Cmediawiki.special.movePage%7Cmediawiki.widgets%7Cmediawiki.widgets.visibleByteLimit%7Coojs-ui-core%2Coojs-ui-widgets%7Coojs-ui.styles.icons-editing-advanced%2Cicons-moderation&skin=vector&version=06guc4v:2:987)
    at mightThrow (https://deployment.wikimedia.beta.wmflabs.org/w/load.php?debug=false&lang=deployment&modules=jquery%2Cmediawiki%7Cmediawiki.legacy.wikibits&only=scripts&skin=vector&version=0jaqyzu:49:598)
    at process (https://deployment.wikimedia.beta.wmflabs.org/w/load.php?debug=false&lang=deployment&modules=jquery%2Cmediawiki%7Cmediawiki.legacy.wikibits&only=scripts&skin=vector&version=0jaqyzu:50:269)

and indeed wgContentLanguage is deployment. Probably a bug in beta cluster config, although the widget should handle it more gracefully.

Change 399680 abandoned by Addshore:
BETA: set wmgSentryDsn to null

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

Addshore claimed this task.