[00:03:20] how are we supposed to delete topics/comments in flow ? [00:03:24] "To delete a topic, use the ... menu on the Structured Discussions board or topic page. Do not visit action=delete for the topic directly. [00:03:37] but there's no delte option in the … menu :/ [00:03:58] (only permalink and history) [00:04:07] Platonides: got a link? [00:04:21] I'm trying to delete https://www.mediawiki.org/wiki/Topic:Ubfxtxjcb64zrph4 [00:05:47] its deleted from the public [00:06:03] flow is terrible when it comes to deletion [00:06:12] oh [00:06:19] eg: have a look at https://www.mediawiki.org/wiki/User_talk:Normal_primaria in a different browser/logged out [00:06:34] well, I managed to delete that page [00:07:02] "created by Flow talk page manager" [00:07:06] normally you delete the topic [00:07:10] not the page [00:07:12] but the topic was still working [00:08:43] seems a bit weird, but ok [00:08:53] good enough for this night [00:09:03] that could be (its been a while since i've done it) that it still displays for admins or something [00:09:11] again, flow is trash when it comes to spam [00:09:15] well, yes [00:09:23] it is displaying, with no sign that it is deleted [00:09:39] I suspect it is only not showing for anons because there is no "container" page [16:43:32] Hi, there is an option to run 'IN' operator with cargo? [16:43:58] Like 'select ... Where 1 in my_list'? [17:46:47] Hi! I have a short question on developing extensions: in the extension.json I put the name of the license (MIT in my case) but on the Special:Version page when I click on the license name, it says "No further information available on the license". When I click the same link for other extensions I see the full text of the license. Where do I have to put it, so that it is displayed for my extension as well? [17:48:21] It corresponds to the page Special:Version/License/MyExtensionName [17:48:59] Sounds like the license name isn't the SPDX one [17:49:36] Except, MIT is... [17:50:41] alphanoob: You still need a COPYING file inside your extension [17:52:23] Reedy: I was looking at VisualEditor for comparison and they are also MIT but don't have a COPYING file. What should be the content of it? [17:52:40] That has a license.txt [17:52:44] LICENSE.txt [17:53:02] Reedy: Yes. I also have that file. [17:53:28] Reedy: Should I rename that to COPYING? [17:53:49] I find myself getting a puzzling error message in my apache2 log files. It's puzzling because I have apache configured to use a separate error log than the one I accidentally checked and because it's all calls to a missing executable. Are there any mediawiki extensions that would cause this to appear? sh: 1: /usr/bin/ffprobe: not found [17:53:55] Because otherwise I'm in for a world of hurt [17:55:21] Ulfr: Seems related to ffmpeg [17:55:28] Are you running TimedMediaHandler or similar? [17:55:59] No. I just installed the popups extension [17:56:30] it's alarming because it's a shell script error that my web server is throwing and that executable could probably be used to mine bitcoins somehow. [17:57:33] I don't know that for a fact, but I'm reaaaallly hoping it's not that [18:01:42] ffprobe is replaced by avprobe in many distros now. it's a tool for finding data about media files. it wouldn't be a bizare dependency for something that wants to thumbnail video, audio files [18:03:32] Reedy: LICENSE.txt works now. I changed the extension name. I will report that bug. [18:03:37] I mean you're not wrong, I'm just unaware of any particular extension I've got installed that would do that, or why the heck the default error log location is getting the notifications about what a shell script is running. [18:05:53] welp, looks like I get to spend tonight rebuilding some servers :( [18:06:29] IG' [18:06:31] OH* [18:06:36] nevermind. embedvideo uses it? [18:06:41] ..wat [18:11:30] Thanks guys! [18:22:25] Hello, what package do I need on debian outside mediawiki and the wikipedia dump to browse offline? [18:30:22] maxzor: Do you talk about KiwiX, or what is the context? [18:30:33] browse what exactly offline? [18:30:43] http://www.kiwix.org/ [18:30:55] andre__, Hello, not really kiwix, I dont really want to get into zim... [18:31:33] Id prefer to occasionnally rsync the dumps from a mirror and browse them locally with wikimedia as I read it is doable [18:32:03] just installed mediawiki package, alongside mariadb and apache [18:32:17] https://www.mediawiki.org/wiki/Manual:Importing_external_content ? [18:41:44] andre__, Does not say much outside dont use mediawiki :o [18:56:20] maxzor, I don't understand? [18:56:30] what is that "outside" thing you refer to? [18:56:45] Which actual problem would you like to solve? [18:56:46] I speak without really having read [18:56:59] I will figure it out and ask properly :) [19:37:29] hello [19:37:42] im trying to install mediawiki on a windows IIS server using MSSQL [19:37:55] the database user 'mediawiki' i created doesnt have permissions to create schema [19:38:15] my own login account does, however i must use windows authentication to login, not sql authentication [19:38:57] but when I choose windows authentication on the install script, it defaults to user 'windowsauth' and theres no place for me to enter my credentials [19:39:05] stiv2k_: you should contact your dba for help [19:39:18] I don't think people here know much about MSSQL [19:39:24] oh [19:41:10] I mean, I could try to use google to figure out how you could set up authentication, but... [19:44:32] hexmode[m]: i got it [19:44:42] i was able to provide permission for the user to create schema [19:44:57] however ... now it errors when trying to setup the tables [19:45:13] Error: 257 [SQLSTATE 42000][Error Code 257][Microsoft][ODBC Driver 13 for SQL Server][SQL Server]Implicit conversion from data type varchar to varbinary is not allowed. Use the CONVERT function to run this query. [19:48:30] this one i dont know what it means but it kinda sounds like something outside of my control [19:48:59] stiv2k_: is the sql statement that causes that displayed? [19:51:04] yes [19:51:37] hexmode[m]: https://pastebin.com/3wSrKT0Y [19:53:13] Hmmm, if anything, it looks like line 7 [19:53:56] right [19:54:06] can you edit that file and remove "default ''" ? [19:58:05] stiv2k_: let me know if that works [19:58:23] Is there a local equivalent to $wgExtensionAssetsPath? [19:59:17] ok one sec [19:59:45] FoxT: none that I know of. I use symlinks. [20:00:33] hexmode[m]: Heh, symlinks is exactly my problem. They are why I cannot just use __DIR__ from my extension. [20:01:05] hexmode[m]: am i supposed to see that exact SQL statement in this file? [20:02:06] FoxT: I don't understand why __DIR__ would be a problem, but I truest you :) [20:02:35] hexmode[m]: Because it gives me the real, not symlinked path and apparently that's a problem. [20:03:18] stiv2k_: I wouldn't look for that whole create table to be the same [20:03:42] also, which file [20:03:44] the tables.sql? [20:04:12] stiv2k_: yes [20:04:34] FoxT: is this in code you're writing? [20:05:02] ok i see it now [20:05:06] so just remove the 'default' word [20:06:04] and the two apostrophes [20:06:18] wow! [20:06:48] yep, that is what i would try [20:06:50] hexmode[m]: yes. https://github.com/cmln/mw-bootstrap/blob/master/Bootstrap.php#L80 [20:06:52] you'll probably get a new error [20:06:56] it worked [20:07:13] and i downloaded LocalSettings.php, placed it in the root of my wiki [20:07:22] then pointed my browser to go to the wiki and.... [20:07:31] [c032b5a46de7da3a0ff9d8c9] 2018-04-24 20:06:51: Fatal exception of type Wikimedia\Rdbms\DBQueryError [20:07:44] stiv2k_: Thanks for that. Do you have a phabricator account? [20:07:53] heh [20:07:58] what's that? [20:08:16] stiv2k_: could you paste the sql? [20:08:32] unfortunately that is the only thing that shows on the whole page [20:09:07] stiv2k_: it is where we file bugs against MW [20:09:18] oh [20:10:39] ok, can you add the following to your LocalSettings.php: $wgShowSQLErrors = true; [20:10:40] $wgDebugDumpSql = true; [20:12:01] heh [20:12:06] i did, but it didnt change anything [20:12:50] FoxT: You could use realpath("$IP/extensions") or similar, couldn't you? [20:14:59] stiv2k_: is this machine somewhere where I could see it? pm me if so. Can you add $wgShowExceptionDetails=true; to it? [20:15:08] hexmode[m]: No, realpath would give me the un-symlinked path. I want the symlinked path. And just attaching "/extensions" does not work if extensions are somewhere else. [20:15:30] I do now $GLOBALS[ 'IP' ] . '/' . substr( $extensionAssetsPath, strlen( $scriptPath ) ) [20:16:01] hexmode[m]: what do you want to see? [20:16:28] showexceptiondetails=true didnt change anything either :/ [20:18:57] i see something in the SQL server log [20:19:39] hmm nvm [20:21:14] FoxT: I was guessing at what you were trying. Guess I was wrong. What is localBasePath supposed to end up looking like? [20:21:48] stiv2k_: nothing? Could you paste the last few lines that you've added to your LocalSettings.php? [20:22:24] The path to the extensions directory without symlinks being resolved. [20:22:26] paste in here ok? [20:22:27] hexmode[m]: long time no see :) [20:22:44] FoxT: Also, have you tried https://www.mediawiki.org/wiki/Manual:$wgExtensionDirectory [20:23:24] hexmode[m]: I think this might be just it. Thanks! [20:23:26] saper: and I poke my head in and what happens? I'm overwhelmed :) [20:24:19] hexmode[m]: https://pastebin.com/ufQ2viMU [20:24:53] FoxT: (I was fed that answer :P ) [20:25:26] hexmode[m]: Then thanks to whoever fed it to you. :) [20:26:41] stiv2k_: does your php error log contain c032b5a46de7da3a0ff9d8c9 ? [20:27:04] FoxT: why do you want to get out of there? [20:27:21] I mean, from your extension $IP and friends should be enough [20:27:25] plus the autoloader [20:28:07] what are you trying to do? [20:28:19] Platonides: Because somebody killed the access to vendor: https://phabricator.wikimedia.org/T180231 [20:28:49] and what do you want to do? [20:30:39] Host Bootstrap. It contains LESS files and stuiff like images and fonts. [20:32:26] hexmode[m]: can i pm you [20:32:54] that should go through the resourceloader… [20:33:05] yep [20:34:12] Platonides: Maybe. That extension is a bit older than the RL handling Less files. And I do not intend to fix it anymore. (Bootstrap 4 uses SASS.) [22:21:09] Hello, I was wondering where the best place to start would be if I want to help start squashing bugs in mediawiki core? [22:21:40] hi [22:22:11] idapper: https://www.mediawiki.org/wiki/How_to_become_a_MediaWiki_hacker is a good starting point documentation-wise [22:22:45] then there's https://phabricator.wikimedia.org/project/view/169/ [22:22:58] tasks marked as "easy" which should be (hopefully) good starting point for new developers [22:23:20] Skizzerz: Perfect! Thats what I was I was looking for! Thanks. [22:28:10] don't doubt to ask anything you don't understand [22:43:09] Is there any way to change gerrit username? I mistyped it [22:43:44] probably not easy… :/ [22:43:48] create another account? [22:47:23] Ooph [22:47:59] it's possible, but a bit of a pain, i think. https://wikitech.wikimedia.org/wiki/LDAP/Renaming_users [22:48:27] you'd have to convince somebody with SSH access to Gerrit to follow this steps. i'm not even sure who can do that [22:48:55] if you really wanted, you could file a Phabricator task about it. someone will probably eventually do it, but it might take days, so probably easier to just make another account [22:48:57] being a new user, it's probably easier to create another account :P [22:50:48] Ill live with it for now because I have already requested acsess to things with this account. If it ever becomes I huge problem ill file a task [22:50:50] Thanks [22:52:03] I don't think you will have been given anything yet [22:52:07] you can probably request the same with the new one [22:52:12] before you start using the account [22:52:35] Is there any way to delete the account Im using so I can get my username back? [22:52:52] but… [22:53:02] is it the username you want to use or not? [22:53:54] My mediatech username I like its the shell acsess username so @gerrit.wikimedia.org that I did wrong [22:54:42] Sorry if I was unclear [22:54:55] what username did you register? [22:55:00] what username did you want? [22:56:06] I meant to set shell acsess uname as dalperin instead did something like dalpeirn [22:56:17] If I cant change it its not a big deal [22:58:03] yep, dalpeirn [22:58:18] but you can register a new account with name dalperin [22:59:23] Yeah but then I cant reuse my Developer account name again and then its not worth the effort [22:59:27] Thanks for the help [22:59:37] Developer account name? [23:01:30] I want to change my Instance shell account name, If i create a new account I cant reuse my Developer account username (login/signature at wikitech.wikimedia.org ect) [23:01:37] you could probably change it before creating the new accpint [23:02:07] you still haven't created the account at wikitech, it seems [23:02:40] I have it under DovAlp [23:02:59] My IRC username was there out of habit sorry [23:03:15] I looked it seems like its unchangeable [23:03:35] you can link the mediaiwki account to gerrit [23:03:42] you can probably unlink it, too [23:04:37] Not that I can see no [23:04:40] no_justification: wanna help idapper with their username issue? [23:05:12] Huh? [23:06:35] Hi. Sorry I was just asking around about if there was a way to change my Instance shell account name/gerrit username. Sorry to bother you it seems like this is an unsolvable problem it dosent really matter [23:07:10] I just misspelled it at account creation and I was wondering if there was a easy way to fix it [23:07:12] The display name (CN in ldap) can be changed, but as a rule the shell name we don't change [23:07:28] this is a new account [23:07:35] 'tis a pain in the butt [23:07:37] can you unlink it from his mediawiki user? [23:07:43] Unlink where? [23:07:45] so that he can register a new one [23:08:03] I see it's in LDAP in cn: and sn: [23:08:07] Gerrit login *is* the mediawiki/wikitech user [23:08:11] not sure if it's used in more places [23:08:25] As far as I see on my end [23:08:40] The CN we can fix, SN not so much [23:09:53] Thats fine it dosent change use at all. I was just wondering. Thank you guys so much again, sorry to bother you [23:22:12] idapper: i think the shell name is actually not shown anywhere (except in your own preferences), so it will be only annoying when you're setting up your repositories… i know at least one experienced developer at the WMF who mistyped it and has been stuck with it for years now ;) [23:22:40] That makes me feel a little better :) thanks [23:47:17] I am developing a MediaWiki extension. It adds tooltips to certain elements in articles. To accomplish this, it loads some scripts with ResourceLoader. I noticed that sometimes the tooltips don't work, and I think I tracked this down to when the script runs before the global wrapper element is created. What's the best way to postpone a script in this way? By (somehow) telling ResourceLoader to delay loading it? By (somehow) [23:47:44] Javascript and MediaWiki newbie, so small words appreciated. Code is here: https://github.com/NilsEnevoldsen/ScryfallLinks/blob/master/extension.json [23:51:15] NilsEnevoldsen: your message was cut off after the second "By (somehow)" [23:51:46] NilsEnevoldsen: but generally, you'd wrap your JS file in `$( function () { … } )` – this will run it after the page HTML has finished loading [23:51:58] What's the best way to postpone a script in this way? By (somehow) telling ResourceLoader to delay loading it? By (somehow) telling the script to delay running? [23:53:06] (after the document-ready event) [23:54:05] http://api.jquery.com/ready/ [23:54:18] MatmaRex: Here is the js: https://github.com/NilsEnevoldsen/ScryfallLinks/blob/master/modules/ext.scryfallLinks.tooltip.js [23:54:31] Should I just move the "const tip = tippy…" into the function() above it? [23:54:54] Or is that $ important? [23:55:21] NilsEnevoldsen: yeah, the $ matters [23:55:34] I see. Thank you! [23:55:35] $() is actually just an alias for jQuery() [23:55:53] and passing a function to jQuery() will execute it after the document is ready (see http://api.jquery.com/ready/ for details) [23:56:57] NilsEnevoldsen: the ( function () { … }() ); that you have there is an "immediately-invoked function expression", that's a mouthful, but it just means that variables you define inside this function do not "leak out" to the global scope [23:57:07] so e.g. you can't access that `el` variable from another script [23:57:57] Gotcha. Looks similar to the untrained eye, but actually has a completely different purpose.