Page MenuHomePhabricator

Console error and failure to save last caption when publishing three or more new captions at a time on Commons
Open, Needs TriagePublicBUG REPORT

Description

Steps to Reproduce:

  1. Click "Add a caption" to add three or more captions in different languages
  2. Enter captions
  3. Press save

Actual Results:

The first save saves only the first two elements, but not the third one, and there is an error in the console, but publish remains pressable. On pressing publish again, it throws a console error.

Expected Results:

Save all captions successfully.

First error:

jQuery.Deferred exception: Cannot read property 'disconnect' of undefined TypeError: Cannot read property 'disconnect' of undefined
    at CaptionsPanel.sd.CaptionsPanel.sendIndividualLabel (https://commons.wikimedia.org/w/load.php?debug=false&lang=en&modules=ext.3d%7Cext.uls.i18n%2Clanguagenames%2Cmediawiki%2Cmessages%7Cjquery%2Coojs-ui-core%2Coojs-ui-widgets%7Cjquery.i18n%2Culs%7Cjquery.uls.grid%7Cmediawiki.action.view.metadata%7Coojs-ui.styles.icons-editing-advanced%2Cicons-editing-core%7Cwikibase.api.RepoApi%2CRepoApiError%2C__namespace%2CgetLocationAgnosticMwApi%7Cwikibase.entityPage.entityLoaded%7

Second error:

Uncaught TypeError: Cannot read property 'getValue' of undefined
    at HTMLDivElement.<anonymous> (<anonymous>:848:577)
    at Function.each (load.php?debug=false&lang=en&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|oojs-ui.styles.icons-editing-advanced&skin=vector&version=12h9lnf:4)
    at jQuery.fn.init.each (load.php?debug=false&lang=en&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|oojs-ui.styles.icons-editing-advanced&skin=vector&version=12h9lnf:2)
    at CaptionsPanel.sd.CaptionsPanel.sendDataToAPI (<anonymous>:848:481)
    at CaptionsPanel.sd.CaptionsPanel.sendData (<anonymous>:854:570)
    at <anonymous>:833:626
    at OoUiButtonInputWidget.oo.EventEmitter.emit (<anonymous>:430:486)
    at OoUiButtonInputWidget.OO.ui.mixin.ButtonElement.onClick (load.php?debug=false&lang=en&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|oojs-ui.styles.icons-editing-advanced&skin=vector&version=12h9lnf:177)
    at HTMLInputElement.dispatch (load.php?debug=false&lang=en&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|oojs-ui.styles.icons-editing-advanced&skin=vector&version=12h9lnf:69)
    at HTMLInputElement.elemData.handle (load.php?debug=false&lang=en&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|oojs-ui.styles.icons-editing-advanced&skin=vector&version=12h9lnf:65)

Event Timeline

Mvolz renamed this task from Console error attempting to save captions when loading three or more new captions at a time to Console error attempting to save captions when loading three or more new captions at a time on Commons.Mar 30 2019, 1:42 PM
Mvolz renamed this task from Console error attempting to save captions when loading three or more new captions at a time on Commons to Console error and failure to save last caption when publishing three or more new captions at a time on Commons.Mar 30 2019, 1:46 PM
Mvolz updated the task description. (Show Details)

Step 1:

Screenshot from 2019-03-30 13-38-34.png (344×929 px, 19 KB)

After publishing twice (not the same attempt so slightly different input than as above, but it displays the caption twice as well incorrectly, on refresh it's okay.)

Screenshot from 2019-03-30 13-35-13.png (686×1 px, 219 KB)