Topic on Extension talk:StructuredDiscussions

StructuredDiscussions won't save or switch to wikitext

3
TheROFL98 (talkcontribs)

I'm not sure what's happening here, but the console in my browser was reporting this.

Uncaught TypeError: this.surfaces[i].setReadOnly is not a function

    at FlowVeTarget.mw.flow.ve.Target.setDisabled (mw.flow.ve.Target.js?def68:104)

    at mwFlowUiEditorWidget.mw.flow.ui.EditorWidget.setDisabled (mw.flow.ui.EditorWidget.js?1a3b1:617)

    at mwFlowUiEditorWidget.OO.ui.Widget.updateDisabled (Widget.js:103)

    at mwFlowUiEditorWidget.mw.flow.ui.EditorWidget.pushPending (mw.flow.ui.EditorWidget.js?1a3b1:626)

    at mwFlowUiEditorWidget.mw.flow.ui.EditorWidget.onTargetSwitchMode (mw.flow.ui.EditorWidget.js?1a3b1:520)

    at FlowVeTarget.oo.EventEmitter.emit (oojs.jquery.js?b1631:54)

    at FlowVeTarget.mw.flow.ve.Target.switchMode (mw.flow.ve.Target.js?def68:136)

    at MwFlowUiMWEditModeSourceTool.mw.flow.ve.ui.MWEditModeSourceTool.switch (mw.flow.ve.ui.MWEditModeTool.js?ae834:51)

    at MwFlowUiMWEditModeSourceTool.mw.libs.ve.MWEditModeTool.onSelect (ve.init.MWEditModeTool.js?32d76:80)

    at OoUiListToolGroup.OO.ui.ToolGroup.onMouseKeyUp (ToolGroup.js:240)


As always, my MediaWiki Version.

Product Version
MediaWiki 1.33.0-alpha (9b4461c)

21:00, 28 February 2019

PHP 7.3.2-3+ubuntu18.10.1+deb.sury.org+1 (fpm-fcgi)
MariaDB 10.2.22-MariaDB-1:10.2.22+maria~bionic
ICU 60.2
Lua 5.1.5
Roan Kattouw (WMF) (talkcontribs)

It looks like you're using a very recent version of MediaWiki core, and possibly also a very recent version of Flow. Please make sure you're using an equally recent version of VisualEditor. The VE people recently added a new interface and changed Flow to use it, so if you're using the new Flow with the old VE, it'll break. This error message looks exactly like what I got on my own test wiki earlier this week when I updated Flow but forgot to update VE.

TheROFL98 (talkcontribs)

Updating both Flow and VE fixed the problem.