Page MenuHomePhabricator

VisualEditor - Editing mode not active after pressing the Edit button.
Closed, ResolvedPublicBUG REPORT

Description

Hi,
I am running MediaWiki via the official docker environment for two years now.

  • MediaWiki Version is: 1.41.0
  • VisualEditor Version: 0.1.2
  • Theme: Vector 2022

Since one of the last updates the VisualEditor is not working correctly anymore. If I klick on the Edit Button of inside a page the following happens:

  • the Editor starts (progrss bar is shortly visable)
  • All edit functions show up but the buttons are all greyed out (the only active buttons are help, page options, and change editor). In addition all page content is grey out and not selectable (see screenshot)
  • I am not able to edit anything except when changing to edit the Source code
  • The browser development console contains the following error:

Widget.js:45 Uncaught TypeError: Cannot read properties of undefined (reading 'connect')

at new VeUiMWTocWidget (ve.ui.MWTocWidget.js:45:16)
at ve.init.mw.DesktopArticleTarget.surfaceReady (ve.init.mw.DesktopArticleTarget.js:753:25)
at eval (ve.init.mw.Target.js:410:10)

wiki-edit.jpg (505×1 px, 52 KB)

This happens for all users and in all tested browsers (Edge, Brave and Firefox).

Any idea what's going wrong?

Thanks
Fritz

Event Timeline

DLynch subscribed.

Looks like https://gerrit.wikimedia.org/r/c/mediawiki/extensions/VisualEditor/+/755394 didn't update MwTocWidget for the metalist change. We didn't notice this, because it's disabled by default (and not enabled on any WMF wikis).

Change 993158 had a related patch set uploaded (by DLynch; author: DLynch):

[mediawiki/extensions/VisualEditor@master] MWTocWidget should fetch the metaList from the correct location

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

@Fspitzer in the interim, if you adjust your LocalSettings.php to disable $wgVisualEditorEnableTocWidget this should stop happening.

Change 993158 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] MWTocWidget should fetch the metaList from the correct location

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

DLynch added a project: Skipped QA.

Skipping QA because this can't be tested on WMF beta/production.

@DLynch
Thanks for your fast response, David!
I just have disabled the TocWidget as recommended. Now the VisualEditor works fine again.

Cheers
Fritz

Change 1008006 had a related patch set uploaded (by Lens0021; author: DLynch):

[mediawiki/extensions/VisualEditor@REL1_41] MWTocWidget should fetch the metaList from the correct location

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

Change 1008006 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@REL1_41] MWTocWidget should fetch the metaList from the correct location

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