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 23:58, 28 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 # Fixed?
https://de.wikipedia.org/w/index.php?title=User:Ulli_Purwin/markKatMentors.js&action=raw&ctype=text/javascript&smaxage=0 ReferenceError: appendCSS is not defined 62 Yes
https://de.wikipedia.org/w/index.php?title=User:Ulli_Purwin/markKatMentors.js&action=raw&ctype=text/javascript&smaxage=0 ReferenceError: isDiff is not defined 5
https://ru.wikipedia.org/w/index.php?title=%D0%A3%D1%87%D0%B0%D1%81%D1%82%D0%BD%D0%B8%D0%BA:Zooro-Patriot/pat.js&action=raw&ctype=text/javascript Uncaught ReferenceError: mwCustomEditButtons is not defined 61
https://fr.wikipedia.org/w/index.php?title=MediaWiki:Gadget-WikEd/local.js&action=raw&ctype=text/javascript TypeError: wikEd.frameBody is null 34
https://fr.wikipedia.org/w/index.php?title=MediaWiki:Gadget-WikEd/local.js&action=raw&ctype=text/javascript Uncaught TypeError: Cannot set property 'range' of 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 IndexSizeError: Failed to execute 'getRangeAt' on 'Selection': 0 is not a valid index. 2
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://es.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Axxgreazz/misparametros.js Uncaught ReferenceError: otroparametro is not defined 33
https://pt.wikipedia.org/w/index.php?title=User:Japf/Scripts/LanguageConverter.js&action=raw&ctype=text/javascript Uncaught ReferenceError: tabela is not defined 32
https://es.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Axxgreazz/misenlaces.js Uncaught ReferenceError: otroenlace is not defined 31
https://de.wikipedia.org/w/index.php?title=Benutzer:Chatter/index.js&action=raw&ctype=text/javascript ReferenceError: wgMainPageTitle is not defined 27
https://de.wikipedia.org/w/index.php?title=User:ASM/quickedit.js&action=raw&ctype=text/javascript&maxage=86400&smaxage=60&bcache=1&debug=true ReferenceError: qeLanguages is not defined 23
https://de.wikipedia.org/w/index.php?title=User:ASM/quickedit.js&action=raw&ctype=text/javascript&maxage=86400&smaxage=60&bcache=1&debug=true ReferenceError: is_safari is not defined 4
https://de.wikipedia.org/w/index.php?title=Benutzer:Der_Buckesfelder/Floater.js&action=raw&ctype=text/javascript TypeError: $(...).suggestions is not a function 22
https://de.wikipedia.org/w/index.php?title=Benutzer:Der_Buckesfelder/Floater.js&action=raw&ctype=text/javascript TypeError: $searchInput2.attr(...).placeholder is not a function 4
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 26
https://es.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Axxgreazz/Monobook-Suite/misparametros-lite.js Uncaught ReferenceError: otroparametro is not defined 25
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 24
https://ru.wikipedia.org/w/index.php?title=MediaWiki:RefToolbarMessages-ru.js&action=raw&ctype=text/javascript TypeError: mw.usability is undefined 1
https://es.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Axxgreazz/Monobook-Suite/misparametros-suite.js ReferenceError: otroparametro is not defined 24
https://es.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Axxgreazz/Monobook-Suite/quickimgdelete.js ReferenceError: msActivarModulo is not defined 14
https://es.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Axxgreazz/Monobook-Suite/quickimgdelete.js TypeError: msActivarModulo is not a function 9
https://es.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Axxgreazz/popups.js Uncaught ReferenceError: hookEvent is not defined 23
https://de.wikipedia.org/w/index.php?title=Benutzer:Dbenzhuser/showRedundantLinks.js&action=raw&ctype=text/javascript TypeError: column is null 22
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: 22
https://es.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Axxgreazz/Monobook-Suite/interface.js ReferenceError: msStringU is not defined 19
https://es.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Axxgreazz/Monobook-Suite/interface.js TypeError: reason is null 1
https://es.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Axxgreazz/Monobook-Suite/misbotones-lite.js Uncaught ReferenceError: otroboton is not defined 20
https://ru.wikipedia.org/w/index.php?title=%D0%A3%D1%87%D0%B0%D1%81%D1%82%D0%BD%D0%B8%D0%BA:Iniquity/Gadget-ProveIt.js&action=raw&ctype=text/javascript TypeError: page.revisions is undefined 18
https://ru.wikipedia.org/w/index.php?title=%D0%A3%D1%87%D0%B0%D1%81%D1%82%D0%BD%D0%B8%D0%BA:Iniquity/Gadget-ProveIt.js&action=raw&ctype=text/javascript TypeError: proveit.getTextbox().wikiEditor is not a function 2