Page MenuHomePhabricator

Wikimini JavaScript error: can't redefine non-configurable property "__swiffy_override"
Open, HighPublic

Description

Sometime, when loading Wikimini, the Swiffy banner is not shown and instead this error is shown in the console:

TypeError: can't redefine non-configurable property "__swiffy_override" TypeError: can't redefine non-configurable property "__swiffy_override"
    <anonymous> https://sv.wikimini.org/w/load.php?debug=false&lang=sv&modules=swiffy.fr.js&skin=wikimini&version=1cm9g3i:88
    <anonymous> https://sv.wikimini.org/w/load.php?debug=false&lang=sv&modules=swiffy.fr.js&skin=wikimini&version=1cm9g3i:428
    jQuery 8
    <anonymous> https://sv.wikimini.org/w/load.php?debug=false&lang=sv&modules=swiffy.fr.js&skin=wikimini&version=1cm9g3i:1
load.php:176:570
    jQuery 14
    <anonymous> https://sv.wikimini.org/w/load.php?debug=false&lang=sv&modules=swiffy.fr.js&skin=wikimini&version=1cm9g3i:1

This error is not easy to be reproduced. Reload the page some times.

https://sv.wikimini.org/wiki/Test

Event Timeline

ValerioBoz-WMCH triaged this task as High priority.

I also saw one time this error in upgrade 1.39 with @ashley’s skin (after fixing another JS error, see T356324#10680784), so I’m afraid the upgrade will not fix it. Also, this JS was created with Google Swiffy that produced minified JS and this original tool is no more available, so instead of trying to solve this issue (and possibly others), I would recommend to rewrite the header in plain human-understandable JS (I know it’s a balance in terms of short-term/long-term costs).