[07:11:05] Hi guys, do you remember some Gerrit patch adding one of the current MediaWiki magic words? I would like to patch one old annoying issue, but I don't know, where to put the code for the new magic word. It was also suggested to my friend to do it this way on Gerrit, so I would like to help my friend to do this. Some older patch for another magic wor [07:11:06] d would help me a lot. Or at least a way to find it (do you have some tags on patches in the commit summary to easily find old patches or somethíng?) [07:40:16] Dvorapa: https://gerrit.wikimedia.org/r/#/c/mediawiki/core/+/330982/ [07:41:13] apergos: thank you [07:41:21] sure thing [07:41:44] I've just found another one: https://phabricator.wikimedia.org/rMWb5511c68c311021f146954355cd702a43942eef4#change-J4sZaLbQmc6q [07:42:07] This one also edits includes/parser/CoreParserFunctions.php file [07:42:29] if you git log on includes/MagicWord.php you should find a number of them [07:42:35] great [07:43:59] yeah, I just found the same [07:44:09] ..way [07:44:21] Thank you once more [07:45:55] As my German language teacher always said: the most easy way to learn German is to copy everything you don't know how to write or say from elsewhere and use it :D The same for MediaWiki internals :D [07:46:18] Hopefully I'll make a good patch to MW core today [07:48:13] that would be awesome :-) [07:48:52] copy-paste is the greatest source of code; if not, how is it that we all are dead in the water without stack overflow? :-D [07:50:05] :D [07:51:29] * Dvorapa thinking if MediaWiki has its category on stack overflow.. And Pywikibot.. hm... [07:55:06] * Dvorapa finding there are lots of unanswered questions about Pywikibot. Ouch. Better to watch it sometimes [07:57:47] :-) [08:18:30] Hi [08:18:43] I'm currently using a wiki break enforcer in my common.js [08:19:04] Small problem, is that it now goes into an infinite message loop due to changes in the logout UI [08:19:23] https://en.wikipedia.org/wiki/User:ShakespeareFan00/common.js [08:19:27] being the code [08:20:00] Can someone advise on where the script needs be updated so it doesn't go into an endless message loop? [10:58:07] Please I need some help with handling issues with "...blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource" from requests here https://www.mediawiki.org/wiki/Manual:CORS#Using_jQuery_methods [12:04:53] Hi everyone, https://cs.wikipedia.org/w/index.php?title=Hlavn%C3%AD_strana&useskin=minerva is fatal, known? [12:06:21] hmm, found it, T222500 [12:06:21] T222500: BadMethodCallException after login: Call to a member function exists() on a non-object (null) - https://phabricator.wikimedia.org/T222500 [12:06:39] thinking about promoting it to UBN, affects every pageview with minerva [12:07:11] Urbanecm: idk bout ubn maybe high? Whats the usage rate of minerva? [12:07:34] Zppix, don't have stats, but I hope ubn will at least gain some attention [12:07:49] Go for then ig [12:50:01] Hi. [12:50:10] Hi [12:50:17] I think I've found a script that broke [12:50:30] https://phabricator.wikimedia.org/T222582#5159683 [12:50:45] See the comment I made when closing it as Invalid [12:50:59] Okay? And? [12:51:09] What seems to have changed is that Special:UserLogout now needs a token to actually do the logout [12:51:39] The script code in the Wiki Break enforcer script doesn't supply the relevant token [12:51:41] That is correct [12:51:54] And so the script needs updating [12:52:14] Because at present it gets itself into a loop of trying to enforce the logout [12:52:36] because it redirects to Special:UserLogout without a token repeatedly [12:52:53] So edit it to supply a token? [12:52:57] The code is here - https://en.wikipedia.org/wiki/Wikipedia:WikiProject_User_scripts/Scripts/WikiBreak_Enforcer [12:53:14] Zppix: I am not sure how the script could extract the relevant token to supply [12:53:32] That's why I need someone like an interface admin that would know to amend the script [12:53:54] I am figuring the token is unique to each login.. [12:54:00] so can't be hard coded in the script [12:55:48] (Additionally, I am thinking that this was changed recently to prevent bad scripts from doing automated non-consenual logins without a user knowing about it) [12:56:38] Zppix: I can't fix the script myself. [12:57:00] because I don't know where to grab the relevant token from [12:57:36] ShakespeareFan00: it was done by wmf security https://phabricator.wikimedia.org/T25227 [12:58:41] Right... [12:58:52] * ShakespeareFan00 goes to see if this was in a Tech News [12:58:56] Ill look into it if i cant figure it out ill let you know [12:59:59] Zppix: Thanks [13:00:22] And it looks like this change was too recent to be in a Tech News [13:00:27] (yet) [13:00:59] The Phabricator bug has been closed, as it's technically the script that's wrong [13:01:12] Mediawiki is working as intended. [13:01:26] Yep [13:01:49] I'll add a link to the BUG/patch you've linked in my closure comments [13:03:21] k [13:09:48] ShakespeareFan00: Yeah i dont know how to generate the token [19:33:36] What's with distinguishing between editor gender in the User namespace? See https://test2.wikipedia.org/wiki/Special:Log?type=block&user=&page=Male+user%3ARhinosF1&wpdate=&tagfilter=&subtype= [19:36:39] RhinosF1: it's a feature used in languages where the word for "user" is not gender-neutral (e.g. Portuguese, Polish), so the namespace name matches the gender you set in preferences. i am guessing it's enabled for English on test2wiki for testing? [19:37:14] (i haven't seen it in English before, maybe that's new) [19:38:24] MatmaRex, Ah, Seemed a bit strange in English.