Page MenuHomePhabricator

Gadgets not loaded when wikitext editing
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Select one or more gadgets in your Wikisource preferences page (e.g. "ajouter un bouton lang" on the French Wikisource)
  • Edit a page in Wikisource

What happens?:
The gadget does not appear (e.g. a button above the editing field) when editing a page.
But it appears in Preview mode.

What should have happened instead?:
The gadget should appear in both Edit and Preview modes.

Other information (browser name/version, screenshots, etc.):
In the Firefox debugger, I noticed that, in Edit mode, no ext.gadget Javascript file is loaded.
These files are loaded in Preview mode (ex. https://fr.wikisource.org/w/load.php?lang=fr&modules=ext.gadget.Template-lang&skin=vector-2022&version=in1hk)

A similar problem was mentioned the English Scriptorium, so I guess it's not language-specific. It probably appeared today, or very recently.

Event Timeline

Seudo renamed this task from Gadgets not loaded to Gadgets not loaded when editing a Wikisource page.Nov 5 2025, 10:41 PM

All gadgets not loaded on editing, even if not affecting editor but enabled in preferences. Module registry is OK. Also not working on other sister projects.

-sche subscribed.

On the English Wiktionary, we are experiencing MediaWiki:Edittools failing to display properly or be clickable, under the same conditions (it stopped working when editing a page, but works when previewing it), as described at https://en.wiktionary.org/wiki/Wiktionary:Grease_pit/2025/November#MediaWiki:Edittools. Curiously, English Wikipedia's Edittools appear to still be working.

Curiously, English Wikipedia's Edittools appear to still be working.

The patch hasn't landed on enwiki yet.

Change #1202372 had a related patch set uploaded (by SD0001; author: SD0001):

[mediawiki/extensions/Gadgets@master] Revert "Use OutputPageBeforeHTML instead of BeforePageDisplay to add modules"

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

Wargo renamed this task from Gadgets not loaded when editing a Wikisource page to Gadgets not loaded when wikitext editing.Nov 6 2025, 8:03 AM

Change #1202372 merged by jenkins-bot:

[mediawiki/extensions/Gadgets@master] Revert "Use OutputPageBeforeHTML instead of BeforePageDisplay to add modules"

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

Change #1202645 had a related patch set uploaded (by Mszwarc; author: SD0001):

[mediawiki/extensions/Gadgets@wmf/1.46.0-wmf.1] Revert "Use OutputPageBeforeHTML instead of BeforePageDisplay to add modules"

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

Change #1202645 merged by jenkins-bot:

[mediawiki/extensions/Gadgets@wmf/1.46.0-wmf.1] Revert "Use OutputPageBeforeHTML instead of BeforePageDisplay to add modules"

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

Mentioned in SAL (#wikimedia-operations) [2025-11-06T09:24:04Z] <mszwarc@deploy2002> Started scap sync-world: Backport for [[gerrit:1202645|Revert "Use OutputPageBeforeHTML instead of BeforePageDisplay to add modules" (T409367)]]

Mentioned in SAL (#wikimedia-operations) [2025-11-06T09:27:27Z] <mszwarc@deploy2002> mszwarc: Backport for [[gerrit:1202645|Revert "Use OutputPageBeforeHTML instead of BeforePageDisplay to add modules" (T409367)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2025-11-06T09:32:56Z] <mszwarc@deploy2002> Finished scap sync-world: Backport for [[gerrit:1202645|Revert "Use OutputPageBeforeHTML instead of BeforePageDisplay to add modules" (T409367)]] (duration: 08m 52s)

mszwarc claimed this task.

Revert deployed