Page MenuHomePhabricator

Inserting a citation fails with JS error
Closed, DuplicatePublic

Description

Whenever I click the insert button on a new citation (whether in the manual creation dialog or in the pop-up to insert a Citoid-generated citation), the insertion fails with the following JS error. In the manual creation dialog, this is unrecoverable and you must reload the page.

TypeError: this.getRange(...) is null
ve.dm.LinearSelection.prototype.equals()
 load.php:419
ve.dm.SurfaceFragment.prototype.update()
 load.php:340
ve.dm.SurfaceFragment.prototype.change()
 load.php:341
ve.dm.SurfaceFragment.prototype.insertContent()
 load.php:350
ve.dm.MWTransclusionModel.prototype.insertTransclusionNode()
 load.php:1265
ve.ui.MWCitationDialog.prototype.getActionProcess/</<()
 load.php:12
jQuery.Callbacks/fire()
 load.php:45
jQuery.Callbacks/self.add()
 load.php:45
ve.ui.MWCitationDialog.prototype.getActionProcess/<()
 load.php:11
proceed/<()
 load.php:141
OO.ui.Process.prototype.execute()
 load.php:141
OO.ui.Dialog.prototype.executeAction()
 load.php:160
OO.ui.ProcessDialog.prototype.executeAction()
 load.php:168
OO.ui.Dialog.prototype.onActionClick()
 load.php:158
oo.EventEmitter.prototype.emit()
 load.php:953
oo.EventEmitter.prototype.emit()
 load.php:953
OO.ui.mixin.ButtonElement.prototype.onClick()
 load.php:38
<anonymous>
 self-hosted:751
jQuery.event.dispatch()
 load.php:65
jQuery.event.add/elemData.handle()
 load.php:60