Last modified: 2014-09-07 19:06:45 UTC
Created attachment 16292 [details] example of JS console on chrome browser as the time of bug input Hi Since some days, i'm experiencing javascript problems when i'm loading wiki pages (all pages have the problem). I've got some 'URI errors' thrown by different actions (not always the same) which seems coming from mediawiki files (for an example see attached file). As a result, some functionalities are disabled (some gadgets are non running, edit buttons are not present, ...) I've already deleted temporary files many times, deleted all mediawiki related cookies too and the problem is reappearing again and again. The problem seems to be attached to my french account : i have the problem on two different PC's, on different browsers (IE, firefox, chrome), and only on french wikipedia (but don't have pb in anonymous state, nor when logged on wiki EN) I don't know how to fix this. Do you have a solution please ? Thanks. Sacamol (https://fr.wikipedia.org/wiki/Utilisateur:Sacamol)
Thanks for taking the time to report this! What are exact steps to reproduce the problem? Also, the exact error is welcome (if that arrow in your screenshot can be clicked to expand its content, don't know) by attaching "?debug=true" to the URL.
Created attachment 16298 [details] home page error 1
Created attachment 16299 [details] home page error 2
Created attachment 16300 [details] Random page
Created attachment 16301 [details] editing a page
Hi Thanx for reply. There is no special step. Each displaying page is producing the problem : homepage (attachements "home page"), profile page, viewing an article (attachement "random page"), editing an article (attachement "editing page"), etc... I do not have "?debug=true" parameter attached to the URLs when i'm browsing, as you can see on attachments pictures. If you need something else, let me know.
Please append "?debug=true" to the URL, or "&debug=true" if there already is a question mark "?" in the URL address. This should provide clearer information in your browser's error console about the actual location in the code where the problem happens.
Created attachment 16306 [details] homepage console with debug=true
Created attachment 16307 [details] random page with debug=true
Created attachment 16308 [details] edit with debug=true
Hi, i added pictures of JS console on pages with "debug=true". Hope this will help to find something :) . Thx for helping. Sacamol
When I go to https://fr.wikipedia.org/wiki/Wikip%C3%A9dia:Accueil_principal?debug=1 using Firefox in privative navigation the error doesn't happens (so it is not something enabled by default). But If I type importScript('User:Dr Brains/HistoryDeluxe.js'); in the console (which is one of the scripts you use) I see the error "URIError: malformed URI sequence" from this line https://github.com/wikimedia/mediawiki-core/blob/555e0b4b3c517cfb565ad275d9600806cd3cd50a/resources/lib/jquery/jquery.cookie.js#L17 At that point the parameter s has this value: "-Nmdbot%3BABotSupreme%3BAHbot%3BAddihockey10%20%28automated%29%3BAibot%3BAkeronBot%3BAlexbot%3BAlinebot%3BAlirezabot%3BAnalphabot%3BAntonyB-Bot%3BArkbot%3BAutorit%E9Bot%3BAvicBot%3BAvocatoBot%3BBeBot%3BBlockbot%3BBoToulousain%3BBokimBot%3BBot%20de%20paille%3BBotMyShinyMetalAss%3BBoten%20Anna%3BBotte%3BBottine%3BBub%27s%20wikibot%3BCactusBot%3BCarsracBot%3BCeraBot%3BChicobot%3BChobot%3BChuispastonBot%3BCocuBot%3BCommonsDelinker%3BCrochet.david.bot%3BDEagleBot%3BDSisyphBot%3BDarafshBot%3BDickensBot%3BDiliBot%3BDinamik-bot%3BDr%20Bot%3BDragonBot%3BEdwardsBot%3BEleferenBot%3BElfobot%3BEmausBot%3BEpopBot%3BEscarbot%3BEtiennekdBot%3BFBot%3BFajrbot%3BFiriBot%3BGZ-Bot%3BGerakibot%3BGhosterBot%3BGratusBot%3BGrouchoBot%3BHAL%3BHRoestBot%3BHawk-Eye-Bot%3BHerculeBot%3BHexabot%3BHomon-Bot-Ohohoho%3BHunsuBot%3BHyuBoT%3BIluvatarBot%3BInfoRobBot%3BIr4ubot%3BJYBot%3BJackBot%3BJackieBot%3BJustincheng12345-bot%3BKamikazeBot%3BKasirbot%3BKunMilanoRobot%3BKwjbot%3BLait%20ribot%3BLe%20plus%20bot%3BLeperebot%3BLinedBot%3BLin%E91bot%3BLouperibot%3BLoveless%3BLucienBOT%3BLuckas-bot%3BMahdiBot%3BMakecat-bot%3BMediaWiki%20default%3BMediaWiki%20message%20delivery%3BMerlIwBot%3BMerlLinkBot%3BMinsbot%3BMyBot%3BNallimbot%3BOrikriBot%3BOrlodrimBot%3BPastilleBot%3BPeter17-Bot%3BPhe-bot%3BPiglobot%3BRahl43bot%3BRedBot%3BRezabot%3BRibotBOT%3BRoland45-Bot%3BRpabot%3BSahimrobot%3BSalebot%3BSantoshBot%3BSassoBot%3BScoopBot%3BStarusBot%3BSteenthIWbot%3BSynthebot%3BTXiKiBoT%3BTalabot%3BThijs%21bot%3BTjBot%3BTotorobot%3BTuHan-Bot%3BVagobot%3BVarbot%3BVer-bot%3BVolkovBot%3BWikiCleanerBot%3BWwbot%3BXavier%20Combelle%20Bot%3BXqbot%3BYFdyh-bot%3BZebulon84bot%3BZetudBot%3BZiziBot%3BZ%E9roBot%3B%u30BF%u30C1%u30B3%u30DE%20robot"
Looking at that code (your browser's developer console offers that) and going to the line numbers offered, these are all cookie related calls. jquery.cookie.js:17 jquery.cookie.js:65 ext.dismissableSiteNotice.js:10 ext.dismissableSiteNotice.js:29 and mediawiki.action.view.postEdit.js:24 mediawiki.action.view.postEdit.js:86 and bannerController.js:308 bannerController.js:165 This might simply be a misbehavior created by 'User:Dr Brains/HistoryDeluxe.js'? (thanks Helder for your help to track this down!)
Thx for replying. I have disabled the user script "User:Dr Brains/HistoryDeluxe.js" and it seems that the problem disappeared. It's a little bit weird that this is a user script the problem cause because, in the beginning, i disabled all gadgets and user scripts and the problem was still there. I will tell to the script maintainig user (Dr Brains) that there is problem on it. Sorry for disturbing you with non mediawiki related problem. Really big thanks for your help :) . sacamol
https://fr.wikipedia.org/wiki/Utilisateur:Dr_Brains/HistoryDeluxe.js does $stuff with cookies. Glad that Helder and you found out the reason for this. I'm going to close this ticket as INVALID as the reason seems to be outside of the MediaWiki codebase and instead in code that is locally on-wiki.
If I type $.cookie('bug70097') in the console I get > URIError: malformed URI sequence so this bug doesn't seems to be caused by that script.
(In reply to Helder from comment #16) > If I type $.cookie('bug70097') in the console I get > > URIError: malformed URI sequence > so this bug doesn't seems to be caused by that script. And the error doesn't happens anymore after I deleted the cookies from fr.wikipedia.org.
Since i have disabled the script, the problem hadn't appeared one more time so it might me linked to it. (just in user experience way, not technical way) Sacamol
No way to reproduce anymore. Closing as WORKSFORME.