Page MenuHomePhabricator

OOjs-UI raises 'Error: Widget not found: undefined' on Commons Special:Upload (legacy upload form)
Closed, DuplicatePublic

Description

This may be the root cause of https://commons.wikimedia.org/wiki/Commons:Village_pump#Do_we_have_a_technical_problem_in_the_upload_form.3F

Traceback:
mediawiki.action.edit.js#L23 <anonymous>: wpSummary = OO.ui.infuse( $( '#wpSummaryWidget' ) );
oojs-ui-core.js#L340 infuse: return OO.ui.Element.static.infuse( idOrNode );
oojs-ui-core.js#L662 infuse: var obj = OO.ui.Element.static.unsafeInfuse( idOrNode, false );
oojs-ui-core.js#L695 unsafeInfuse: throw new Error( 'Widget not found: ' + id );

$( '#wpSummaryWidget' ) is of length 0 on Special:Upload