Lua error messages not displaying on "preview page with this template" in en.wikipedia
Closed, InvalidPublic


I've noticed on the English Wikipedia that when previewing Lua modules using the "preview page with this template" option, if there is a script error, the JavaScript error message doesn't show up when you click the link. To demonstrate this, I have made the following:

If you click on the link in [[User:Mr. Stradivarius/Sandbox/Previewbug]] you can see the error message, but if you edit [[Module:User:Mr. Stradivarius/previewbug]] and then use "preview page with this template" with "User:Mr. Stradivarius/Sandbox/Previewbug", the error message does not appear.

However, this bug does not occur on the test2 wiki. I've made equivalent sandbox and module pages at:

The error message displays fine with these pages. Because of this I'm not sure where the bug is. But according to [1], and test2 are running the same version of Scribunto, so it's not a delay between patching one and patching the other. Therefore I'm submitting a bug here in case it is a software-side problem.


Version: unspecified
Severity: normal

bzimport added a subscriber: wikibugs-l.
bzimport set Reference to bz46633.
MrStradivarius created this task.Via LegacyMar 28 2013, 11:55 AM
Anomie added a comment.Via ConduitMar 28 2013, 2:37 PM

Works for me when following the directions you give. I've replied at the linked VP thread; at the moment, I suspect some sort of error in your user JS is preventing Scribunto's script for the error popup from running correctly.

Anomie added a comment.Via ConduitMar 28 2013, 3:29 PM

Per discussion on the VP thread, this was an issue with a gadget on enwiki throwing errors and preventing Scribunto's javascript from executing.

Add Comment

Column Prototype
This is a very early prototype of a persistent column. It is not expected to work yet, and leaving it open will activate other new features which will break things. Press "\" (backslash) on your keyboard to close it now.