User:Jdlrobson/User scripts with client errors
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.
file_url.raw: Descending | normalized_message.raw: Descending | # |
---|---|---|
https://ar.wikipedia.org/w/index.php?title=Mediawiki:Gadget-QEditor/qtemplate2.js&action=raw&ctype=text/javascript | Uncaught ReferenceError: txtMinorEdit is not defined | 218 |
https://ar.wikipedia.org/w/index.php?title=Mediawiki:Gadget-QEditor/qtemplate2.js&action=raw&ctype=text/javascript | ReferenceError: txtMinorEdit is not defined | 115 |
https://ar.wikipedia.org/w/index.php?title=Mediawiki:Gadget-QEditor/qtemplate2.js&action=raw&ctype=text/javascript | ReferenceError: Can't find variable: txtMinorEdit | 23 |
https://de.wikipedia.org/w/index.php?title=Benutzer:Dbenzhuser/showRedundantLinks.js&action=raw&ctype=text/javascript | TypeError: column is null | 332 |
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 | 192 |
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://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://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://tr.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=MediaWiki:Gadget-twinklexfd2.js | Uncaught ReferenceError: Twinkle is not defined | 39 |
https://ar.wikipedia.org/w/index.php?title=%D9%85%D8%B3%D8%AA%D8%AE%D8%AF%D9%85:Bassem_JARKAS/Scripts/NewPagePatrol.js&action=raw&ctype=text/javascript | TypeError: side_col is null | 25 |
https://meta.wikimedia.org/w/index.php?title=User:Brion_VIBBER/mobile-sidebar.js&action=raw&ctype=text/javascript | NS_ERROR_FILE_NO_DEVICE_SPACE: | 25 |
https://nl.wikipedia.org/w/index.php?title=Gebruiker:Zanaq/Zeusmode/revert.js&action=raw&ctype=text/javascript | Uncaught TypeError: Cannot read property 'href' of undefined | 14 |
https://nl.wikipedia.org/w/index.php?title=Gebruiker:Zanaq/Zeusmode/revert.js&action=raw&ctype=text/javascript | TypeError: td.getElementsByTagName(...)[0] is undefined | 8 |
https://nl.wikipedia.org/w/index.php?title=Gebruiker:Zanaq/Zeusmode/revert.js&action=raw&ctype=text/javascript | TypeError: versions[i].getElementsByTagName(...)[3] is undefined | 3 |
https://fr.wikipedia.org/w/index.php?title=MediaWiki:Gadget-WikEd/local.js&action=raw&ctype=text/javascript | TypeError: wikEd.frameBody is null | 14 |
https://fr.wikipedia.org/w/index.php?title=MediaWiki:Gadget-WikEd/local.js&action=raw&ctype=text/javascript | TypeError: wikEd.paste is null | 5 |
https://fr.wikipedia.org/w/index.php?title=MediaWiki:Gadget-WikEd/local.js&action=raw&ctype=text/javascript | Uncaught TypeError: Cannot read property 'right' of undefined | 2 |
https://fr.wikipedia.org/w/index.php?title=MediaWiki:Gadget-WikEd/local.js&action=raw&ctype=text/javascript | TypeError: rect is undefined | 1 |
https://fr.wikipedia.org/w/index.php?title=MediaWiki:Gadget-WikEd/local.js&action=raw&ctype=text/javascript | Uncaught TypeError: Cannot read property 'scrollTop' of null | 1 |
https://ru.wikipedia.org/w/index.php?title=User:Alex_Smotrov/searchlist.js&action=raw&ctype=text/javascript | ReferenceError: doneOnloadHook is not defined | 23 |
https://nl.wikipedia.org/w/index.php?title=Gebruiker:Zanaq/Zeusmode/qtemplate2.js&action=raw&ctype=text/javascript | Uncaught TypeError: Cannot read property 'value' of null | 9 |
https://nl.wikipedia.org/w/index.php?title=Gebruiker:Zanaq/Zeusmode/qtemplate2.js&action=raw&ctype=text/javascript | TypeError: document.getElementById(...) is null | 6 |
https://nl.wikipedia.org/w/index.php?title=Gebruiker:Zanaq/Zeusmode/qtemplate2.js&action=raw&ctype=text/javascript | TypeError: q is undefined | 3 |
https://nl.wikipedia.org/w/index.php?title=Gebruiker:Zanaq/Zeusmode/qtemplate2.js&action=raw&ctype=text/javascript | TypeError: can't access property "value", document.getElementById(...) is null | 1 |
https://nl.wikipedia.org/w/index.php?title=Gebruiker:Zanaq/Zeusmode/qtemplate2.js&action=raw&ctype=text/javascript | TypeError: null is not an object (evaluating 'document.getElementById('wpTextbox1').value') | 1 |
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.