Help talk:Locating broken scripts
Add topic| This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
Logged out/incognito?
[edit]@AKlapper (WMF), my first step for diagnosing is asking user to test while logged out, or in incognito window to reduce the hassle. (How) is that different from the safe mode thing? If it is, it is worth adding somewhere? Elitre (WMF) (talk) 19:27, 5 June 2017 (UTC)
- @Elitre (WMF), if I understand https://phabricator.wikimedia.org/T152169 correctly, safemode also bypasses your browser cache. Might be a question for the developers involved in that task? AKlapper (WMF) (talk) 20:58, 5 June 2017 (UTC)
- safemode doesn't run any of personal user scripts, gadgets, or sitewide JavaScript in the MediaWiki namespace, e.g. MediaWiki:Common.js. Logging out will still run default gadgets and sitewide JavaScript in the MediaWiki namespace. I think this difference should be mentioned. If safemode stops a problem but logging out does not then it may be a waste to test your personal JavaScript and opt-in gadgets.
- Another thing worth mentioning: If you preview a personal JavaScript page, e.g. your common.js, then the previewed version runs instead of the saved version. If the issue can be seen on the previewed page then you can make tests without saving all the time. PrimeHunter (talk) 13:27, 16 March 2018 (UTC)
CSS
[edit]It is also about CSS ;) wargo (talk) 10:47, 3 July 2017 (UTC)
- So? AKlapper (WMF) (talk) 11:17, 3 July 2017 (UTC)
- If you want to explain how to track broken CSS, please create a page. :) Trizek_(WMF) (talk) 15:14, 3 July 2017 (UTC)
- The same methods apply to debugging CSS (at least using URL options). I think it should be mentioned here. wargo (talk) 15:49, 3 July 2017 (UTC)
- You can edit the page then. :) Trizek_(WMF) (talk) 16:51, 3 July 2017 (UTC)
Does emptying the cache work?
[edit]A user here says that emptying his cache prevents a lot of his problems. So I wonder if we should recommend these easy fixes before anything else? Elitre (WMF) (talk) 07:20, 6 July 2017 (UTC)
- Yes, that's a good first move. I think we have created this page based on the assumption that users have already purged the cache.
- Changed! Trizek_(WMF) (talk) 08:20, 6 July 2017 (UTC)
Good communication about a broken script
[edit]I don't remember if I already put this in a more relevant place, but https://commons.wikimedia.org/wiki/User_talk:Elitre#Your_VFC_installation_method_is_deprecated is imho a good example of communication about a broken script. It redirects to more info about the issue, but also says what it is that needs to be done /and/ provides a direct way to enable the replacement gadget. (I am not sure if that code is actually a good idea or anything, but it looks effective.) Elitre (WMF) (talk) 16:06, 12 October 2017 (UTC)
Old screenshots
[edit]Those screenshots are not up-to-date, the developer tools are different in Firefox 58. Stryn (talk) 10:18, 26 February 2018 (UTC)
- If you have time to update the screenshots, please help! :) Trizek_(WMF) (talk) 11:25, 26 February 2018 (UTC)
- I have time, but then the text of this page should be changed too.
- For me Firefox console looks like that: https://snag.gy/SpFGsA.jpg
- So there is no own section for "net", "css", "js", "security", "logging" and "server", they all seem to be in the same. Stryn (talk) 13:21, 10 March 2018 (UTC)
- Well then if you have time to update anything, please help as well! :) I'll mark your edits for translation when they will be done. Thank you for your help! Trizek_(WMF) (talk) 09:33, 12 March 2018 (UTC)
What to do when the script only works with "?debug=true"?
[edit]The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello, I've just copied a script from Meta (where it was working) to w:fr:MediaWiki:Gadget-Smart_patrol.js and now it's only working with "?debug=true". Otherwise it says " ReferenceError: markAllAsPatrolled is not defined", but I don't understand why because it is defined in the script and I've purge the page and tested from another navigator and account (with no other gadget). JackPotte (talk) 21:36, 24 August 2018 (UTC)
Unclear TU #58
[edit]TU #58 states "…please mention this fact in the report". What fact it refers to? To the fact that one has reported the bug to the extension developers? Then IMO TU #58 should start with "If you also decide…". But I am not a native English speaker.
BTW. Also we do not report bugs on Wikipedia. jdx Re: 08:12, 26 May 2022 (UTC)
- I admit I don't understand that sentence either. Maybe just fine to remove it? It was added in https://www.mediawiki.org/w/index.php?diff=3615728 by @קיפודנחש AKlapper (WMF) (talk) 09:08, 26 May 2022 (UTC)
- I believe that "this fact" refers to "If you find that the problem is indeed related to a browser extension". If you know that the browser extension is involved, but you want to report the problem on wiki, then please tell the other editors/volunteers that this browser extension is involved. Whatamidoing (WMF) (talk) 20:32, 27 May 2022 (UTC)
- Ah thanks, that makes sense! I've made an edit in https://www.mediawiki.org/w/index.php?title=Help%3ALocating_broken_scripts&type=revision&diff=5235056&oldid=5234865 AKlapper (WMF) (talk) 07:21, 28 May 2022 (UTC)