Last modified: 2014-11-20 12:28:54 UTC
Trying to import modules into a local installation of MediaWiki 1.23.6, I had forgot to import Module:Message_box/configuration. As the title summarises, the big red "Script error" is not clickable when in preview mode. After the page is saved, it is clickable. This bug can lead to confusion and frustration for editors who are trying to test and solve an error in preview mode. Confusion for the first-timers who hadn't experienced these errors before, and frustration because they would have to submit an edit which they can't check is correct. I can't figure out the cause of this, but the HTML code is the same. I suspect it's because some javascript hook doesn't work in preview mode. <span class="scribunto-error" id="mw-scribunto-error-0">Script error<!--Lua error in package.lua at line 80: module `Module:Message box/configuration' not found.--></span>
Works fine in master, and I don't recall any changes fixing anything along these lines since 1.23.
Ahh, my bad. The problem is with WikiEditor's preview function. Is there a chance of fixing it? I have just checked, the stock editor's preview works fine.
Sorry for yet another comment, but after some testing, I've determined: The problem is with MediaWiki's live preview feature. WikiEditor doesn't seem to be the cause. But I'm also not sure if it is related to Scribunto as I don't know the internals of how these work, so I haven't changed the bug's info fields from "MediaWiki extensions" to "MediaWiki". Tests: * w/o WikiEditor, w/o live preview: Works. * w/ WikiEditor, w/o live preview: Works. * w/o WikiEditor, w/ live preview: Bugged. * w/ WikiEditor, w/ live preview: Bugged. Steps to reproduce: 1. Install the Scribunto extension, and add a module which outputs a script error. 2. Go to Preferences -> Editing -> Enable "Use live preview (experimental)" 3. Start to create a page with the bugged module, and use the live-preview. 4. "Script error" is not clickable.
Change 174665 had a related patch set uploaded by TheDJ: Add error dialog handler on wikipage.content hook https://gerrit.wikimedia.org/r/174665