https://bugzilla.wikimedia.org/show_bug.cgi?id=45055
Web browser: ---
Bug ID: 45055
Summary: Invalid "compilation"?
Product: MediaWiki extensions
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Scribunto
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
Hello,
on test2.wikipedia.org sometimes I change something in a module, I save, then I
reload a test page using it (via a template) and I get a 'script error' which
does not make sense with my code.
The exact error depends, the last I get was about passing a function rather
than a string to gsub. These errors makes no sense because it was not possible
in my code, which was working fine (and I changed things not related to this
function).
Reloading the test page does not change the error.
But performing a dummy edit on the module (inserting a space in the code) and
saving again corrects the error, of course without changing test page content.
It happens very few times (let say 1 save over 50 or more save performed), and
the first times I met the problem I made real changes in my code (such as debug
code) so I did not realize sooner that it is not related to a code bug.
If it can help it happens few minutes ago in Module:Taxobox-fr.
I saved this change:
http://test2.wikipedia.org/w/index.php?title=Module%3ATaxobox-fr&diff=44855&oldid=44853
I then reloaded this page:
http://test2.wikipedia.org/wiki/Rosa_canina_%28plante%29
which works fine before and then generated a script error (the one I described
at the begining).
I then performed this dummy edit on the module:
http://test2.wikipedia.org/w/index.php?title=Module:Taxobox-fr&diff=next&oldid=44855
and reloaded the page, and errors is gone and module works fine (as it did
before, apart for the small bug I corrected).
To be sure I also undo my dummy edit:
http://test2.wikipedia.org/w/index.php?title=Module%3ATaxobox-fr&diff=44858&oldid=44856
and it still works fine.
Don't know at all what can be the reason of this problem, and it is difficult
to reproduce as it seems quite random (I made several edit+test on modules and
only get the problem about 5-6 times).
Regards,
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l