Jump to content

User:Jdlrobson/User scripts with client errors

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Jdlrobson (talk | contribs) at 22:04, 30 September 2020. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

I need your help fixing many of the JavaScript errors on Wikipedia's many projects! This blog post accompanies my article Diving into Wikipedia's ocean of errors.

Many use scripts and gadgets throw JavaScript errors. Now that we track these errors, we should address these issues to make these tools more reliable. My hope is to regularly update this page with anonymized data.


For those with access to Logstash please view the logstash dashboard to identify bugs and using the stack trace and file_uri locate and fix the most regularly occuring editors.

If you do not have access to Logstash, but are able to edit user scripts you can also help! I hope to regularly update this page with links to scripts with problems. I will list the script causing the error, the error being thrown and the frequency at which it occurs. Please feel free to edit this page to mark any bugs you have fixed.

Many of the fixes here should be obvious from the error message alone, and migration guides such as https://www.mediawiki.org/wiki/ResourceLoader/Migration_guide_(users)#Legacy_removals will be helpful.

file_url.raw: Descending normalized_message.raw: Descending #
https://ar.wikipedia.org/w/load.php?lang=ar&modules=jquery%7Cjquery.ui&skin=vector&version=15n5k Uncaught ReferenceError: addPortletLink is not defined 389
https://ar.wikipedia.org/w/load.php?lang=ar&modules=jquery%7Cjquery.ui&skin=vector&version=15n5k Uncaught ReferenceError: userIsInGroup is not defined 19
https://ar.wikipedia.org/w/load.php?lang=ar&modules=jquery%7Cjquery.ui&skin=vector&version=15n5k Uncaught ReferenceError: twinkleConfigExists is not defined 8
https://ar.wikipedia.org/w/load.php?lang=ar&modules=jquery%7Cjquery.ui&skin=vector&version=15n5k Uncaught ReferenceError: twinklefluff is not defined 2
https://ar.wikipedia.org/w/index.php?title=Mediawiki:Gadget-QEditor/qtemplate2.js&action=raw&ctype=text/javascript Uncaught ReferenceError: txtMinorEdit is not defined 212
https://ar.wikipedia.org/w/index.php?title=Mediawiki:Gadget-QEditor/qtemplate2.js&action=raw&ctype=text/javascript ReferenceError: txtMinorEdit is not defined 113
https://ar.wikipedia.org/w/index.php?title=Mediawiki:Gadget-QEditor/qtemplate2.js&action=raw&ctype=text/javascript ReferenceError: Can't find variable: txtMinorEdit 21
https://de.wikipedia.org/w/index.php?title=Benutzer:Dbenzhuser/showRedundantLinks.js&action=raw&ctype=text/javascript TypeError: column is null 335
https://pl.wikipedia.org/w/index.php?title=Wikipedysta:ChP94/scripts/quickhistory.js&action=raw&ctype=text/javascript TypeError: document.getElementById(...) is null 203
https://fa.wikipedia.org/w/index.php?title=%DA%A9%D8%A7%D8%B1%D8%A8%D8%B1:Mardetanha/refToolbar.js&action=raw&ctype=text/javascript Uncaught ReferenceError: hookEvent is not defined 189
https://ar.wikipedia.org/w/load.php?lang=ar&modules=jquery%2Cmoment%2Coojs-ui-core%2Coojs-ui-widgets%7Cjquery.ui&skin=vector&version=a0fxn Uncaught ReferenceError: addPortletLink is not defined 122
https://ar.wikipedia.org/w/load.php?lang=ar&modules=jquery%2Cmoment%2Coojs-ui-core%2Coojs-ui-widgets%7Cjquery.ui&skin=vector&version=a0fxn Uncaught ReferenceError: userIsInGroup is not defined 8
https://ar.wikipedia.org/w/load.php?lang=ar&modules=jquery%2Cmoment%2Coojs-ui-core%2Coojs-ui-widgets%7Cjquery.ui&skin=vector&version=a0fxn Uncaught ReferenceError: twinkleConfigExists is not defined 1
https://nl.wikipedia.org/w/index.php?title=Gebruiker:Japiot/monobook.js&action=raw&ctype=text/javascript ReferenceError: addPortletLink is not defined 89
https://nl.wikipedia.org/w/index.php?title=Gebruiker:Japiot/monobook.js&action=raw&ctype=text/javascript TypeError: delim is null 6
https://tr.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=MediaWiki:Gadget-twinklerevdel.js Uncaught ReferenceError: Twinkle is not defined 94
https://pl.wikipedia.org/w/index.php?title=Wikipedysta:Pawe%C5%82_Ziemian/wdbox.js&action=raw&ctype=text/javascript Uncaught ReferenceError: gConfig is not defined 63
https://pl.wikipedia.org/w/index.php?title=Wikipedysta:Pawe%C5%82_Ziemian/wdbox.js&action=raw&ctype=text/javascript ReferenceError: gConfig is not defined 5
https://da.wikipedia.org/w/index.php?title=Bruger:Nico/extraeditbuttons.js&action=raw&ctype=text/javascript Uncaught ReferenceError: mwCustomEditButtons is not defined 31
https://da.wikipedia.org/w/index.php?title=Bruger:Nico/extraeditbuttons.js&action=raw&ctype=text/javascript ReferenceError: mwCustomEditButtons is not defined 20
https://hu.wikipedia.org/w/load.php?lang=hu&modules=jquery&skin=monobook&version=tqh7e Uncaught ReferenceError: jsMsg is not defined 51
https://ar.wikipedia.org/w/load.php?lang=ar&modules=jquery%2Coojs-ui-core%7Cjquery.ui&skin=vector&version=w7m2n Uncaught ReferenceError: addPortletLink is not defined 46
https://ar.wikipedia.org/w/load.php?lang=ar&modules=jquery%2Coojs-ui-core%7Cjquery.ui&skin=vector&version=w7m2n Uncaught ReferenceError: userIsInGroup is not defined 1
https://de.wikipedia.org/w/index.php?title=User:%D0%A0DD3/helperFunctions.js&action=raw&ctype=text/javascript&maxage=86400&smaxage=60&bcache=1&debug=false TypeError: document.editform is undefined 47
https://uk.wikipedia.org/w/load.php?lang=uk&modules=jquery&skin=vector&version=tqh7e Uncaught TypeError: $(...).wikiEditor is not a function 47
https://es.wikipedia.org/w/load.php?lang=es&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=tph4e Uncaught ReferenceError: QueryString is not defined 21
https://es.wikipedia.org/w/load.php?lang=es&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=tph4e Uncaught ReferenceError: twinkleConfigExists is not defined 16
https://es.wikipedia.org/w/load.php?lang=es&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=tph4e Uncaught ReferenceError: userIsInGroup is not defined 4
https://es.wikipedia.org/w/load.php?lang=es&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=tph4e Argumento no válido. 1
https://es.wikipedia.org/w/load.php?lang=es&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=tph4e Error no especificado. 1
https://no.wikipedia.org/w/index.php?title=MediaWiki:Navbox.js&action=raw&ctype=text/javascript Uncaught SecurityError: Failed to read the 'localStorage' property from 'Window': Access is denied for this document. 22
https://no.wikipedia.org/w/index.php?title=MediaWiki:Navbox.js&action=raw&ctype=text/javascript SecurityError: The operation is insecure. 17
https://no.wikipedia.org/w/index.php?title=MediaWiki:Navbox.js&action=raw&ctype=text/javascript NS_ERROR_FILE_CORRUPTED: 6
https://ru.wikipedia.org/w/index.php?title=MediaWiki:RefToolbarMessages-ru.js&action=raw&ctype=text/javascript Uncaught TypeError: Cannot read property 'addMessages' of undefined 36
https://ru.wikipedia.org/w/index.php?title=MediaWiki:RefToolbarMessages-ru.js&action=raw&ctype=text/javascript TypeError: mw.usability is undefined 8
https://vec.wikipedia.org/w/index.php?title=MediaWiki:Gadget-addsection-top.js&action=raw&ctype=text/javascript Uncaught TypeError: Cannot read property 'getElementsByTagName' of undefined 41
https://su.wikipedia.org/w/index.php?title=User:Uchup19/skrip.js&action=raw&ctype=text/javascript Uncaught TypeError: Cannot set property 'onclick' of null 36
https://su.wikipedia.org/w/index.php?title=User:Uchup19/skrip.js&action=raw&ctype=text/javascript TypeError: document.getElementById(...) is null 3
https://su.wikipedia.org/w/index.php?title=User:Uchup19/skrip.js&action=raw&ctype=text/javascript TypeError: null is not an object (evaluating 'document.getElementById("aksara")') 1
https://es.wikipedia.org/w/load.php?lang=es&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets%7Cjquery.ui&skin=monobook&version=1dtcv Uncaught ReferenceError: msStringU is not defined 39