[00:15:28] hey we're trying to track down an issue with mediawiki's way of loading resources [00:15:30] https://psychonautwiki.org/wiki/Acetylcholine [00:15:39] anyone aware of why the resources are loading twice? [00:16:11] Some styles are inline AND loaded via load.php [00:16:32] at least chrome reports most resources (styles et al.) to be existent twice [00:17:26] e.g. vector.css is loaded and injected, but also vector.css is loaded explicitly [00:17:49] http://data.sly.mn/031D0H021R0D [03:19:42] can someone tell me the name of default edit source of wikipedia ? [03:20:24] was not the ui edit "VisualEditor" [03:25:07] i think was Extension:WikiEditor [03:27:43] Yeah, it is [03:27:56] if not using visual editor [03:32:32] i'm using visualeditor too [03:45:06] so i'm testing js at a friend's wiki and doubt that js was disabled. it was upgraded to 1.27 (most recent stable). was ImportScript removed between 1.26.2 and 1.27? [03:45:34] ReferenceError: importScript is not defined ReferenceError: importScript is not defined(…) [03:56:20] nerfie: Race condition thing, I think. [03:56:24] You gotta declare your dependency? [03:56:29] Or, umm, [03:56:36] switch to mw.loader.load()? [03:57:44] i'm currently using mediawiki:common.js, none of the scripts are loading despite them working perfectly fine without errors on 1.26.2 [03:59:08] since you mentioned dependency, could you define what you mean by that? [04:00:21] @Debra [04:01:50] If you're using importScript, you need to make sure it's initialized/available when it's called. [04:02:31] all the js is stored under mediawiki namespace [04:02:59] page history says i'm the last person to edit and i didn't disable anything [04:05:48] if i were to use mw.load and the scripts are all local under mediawiki namespace, would the following be correct? [04:05:49] mw.loader.load( '/w/index.php?title=MediaWiki:Random.js&action=raw&ctype=text/javascript' ); mw.loader.load( '/w/index.php?title=MediaWiki:Random.css&action=raw&ctype=text/css', 'text/css' ); [05:46:44] hi folks. i have a table for a file listing like this: http://imgur.com/a/5fziD , where i've used '_' characters for indentation, because   is so cumbersome to use. is there some wiki shortcut i can use? [05:47:58] (cumbersome to type/read i mean) [05:49:48] i guess i could maybe create some custom css, to use row padding, but if there's an even better way.. [06:32:21] anyonw know how i see module editor like wikipedia ? [06:32:33] https://en.wikipedia.org/w/index.php?title=Module:Unsubst&action=edit [06:33:11] actually it's wikieditor, but mine don't have the code icon on top left corner [11:29:17] hello everyone, I have an up-and-running site. how can I install mediawiki to it? the install guide seems to provide distro-specific information only, but not for installing on websites [11:30:37] kernello: your website likely runs on a server computer, which likely runs an operating system? :) [11:30:57] andre__ lol [11:31:47] so first I need to find out which OS it is, then open a terminal in my control panel and follow the instructions? [11:32:15] whatever "your control panel" (no idea) is, likely yes :) [11:33:27] it is a plexiglas panel that I mounted at the back of my website [11:33:50] :D [11:39:44] https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki isn't OS specific... [11:39:54] gosh. I just found it, that's very simple [11:40:16] Reedy, yes :) ^ [11:45:19] I presume the X-sql procedures are to be followed only if not everything runs smoothly with UI way of creating the database? [12:19:44] I see that PHP 5.6.26 needs to be installed, in my hosted server I see 5.6. and then the Zend Framework is shown as 'v2.6.0-dev' does it meet the sysrec? [12:40:30] hello again, am I going to place LocalSettings.php file under http://mysite.com/ or http://mysite.com/w/ ? [12:42:36] solved, thank you! [13:27:42] legoktm: hi. did you see my comment on T147536 just now? [13:27:43] T147536: Disable magic link functionality by default in MediaWiki - https://phabricator.wikimedia.org/T147536 [13:28:29] basically, I found an error in a merged patch. what is the procedure now? Do I fetch that same patch and create a new patch set, or do I create a fresh patch set? [13:30:30] huji, is the patch merged already or not? [13:30:37] if not merged, https://www.mediawiki.org/wiki/Gerrit/Tutorial#Amending_a_change_.28your_own_or_someone_else.27s.29 [13:30:50] oh, merged. then a followup patch, I'd say [13:32:42] huji you would do a followup [13:32:47] oh i see andre__ beat me xD [13:33:26] By nearly 2 minutes? [13:34:51] my internet dropped so i didnt recieve the msg when he sent it [13:35:13] correction this channel dropped (i accidently closed it( [13:35:27] on my phone [13:35:57] and i have my ways of a no disc msg [13:36:25] andre__: it is merged so I guess like Zppix said I would do a follow-up [13:36:38] Zppix: do we have special commit message requirements for followups? [13:37:08] huji I believe its just general commit guidelines but i think you add like follow up: gerrit change id [13:37:40] well, if you're usng a bouncer, and it doesn't load backscroll... [13:38:11] There's no strict guidelines on noting followups [13:38:22] Just mention the change id in the commit msg [13:38:26] And probably link to it ont he old change [13:38:35] or on its phab task [13:39:25] Zppix: thanks [13:40:17] np [13:55:46] huh, seems like problem is on my end [13:56:06] somehow, mysql complains on INSERT that a field doesn't have a default value, when it actually does have a default value [13:56:17] hsa anyone run into that problem recently? [13:58:00] I dont do much in the way of DB work sorry! [13:58:37] Example sql? [14:02:27] Reedy: actually, I think my DB is saying the correct thing [14:02:34] here is the query, from SecurePoll extension: [14:02:36] INSERT INTO `securepoll_elections` (el_title,el_ballot,el_tally,el_primary_lang,el_start_date,el_end_date,el_auth_type,el_entity) VALUES ('Test','approval','plurality','en','20161011000000','20161012000000','local','3') [14:03:04] And it *should* throw an error; el_owner really doesn't have a default value because it is defined as "INT NOT NULL" and no value is being passed [14:03:12] amazingly, this used to work until a week ago [14:03:23] It's an MW error, right? [14:03:43] Reedy: no a MYSQL serror caught by MW as an exception [14:03:53] I meant a not [14:03:59] Did you update your mysql recently? [14:04:01] I have updated my linux box .. I wonder if MYSQL has changed their default settings to something more strict recently [14:04:05] That looks like strict mode [14:04:07] Yeah [14:04:09] Reedy: that is what I am thinking [14:04:12] I think we changed something... [14:04:14] But I thought only for beta [14:04:27] well, I am using Git code, as in beta [14:04:48] Reedy: curious to know what the change was, as it affects SecurePoll (and probably lots of other pieces of code) [14:04:56] $wgSQLMode = ''; [14:05:04] if we are going to suppor strict mode, we should do it through and through [14:05:07] "SQL Mode - default is turning off all modes, including strict, if set." [14:05:25] hello, I was wondering if it was possible to implement a random page-style page in which the destination does not include subpages [14:05:28] hashar: I know you were doing some stuff with it... Was it just beta, or was there an MW change too? [14:05:52] I believe there is something called RandomRootPage for it, but i'm not sure how it would be added to a normal MediaWiki installation [14:06:00] FD: extenson https://www.mediawiki.org/wiki/Extension:Randomrootpage [14:06:11] It's been merged into MW core 1.27 though [14:06:15] FD: I created RandomRootPage ;) you can install it as an extension [14:06:24] en.wikipedia.org/wiki/Special:RandomRootPage [14:06:33] I see, thank you for your help [14:06:33] unless .. oh well, Reedy answered it faster :) [14:06:34] huji: It's no longer an extension [14:06:48] Reedy: you type fast man [14:06:59] I also vastly simplified your extension ;) [14:07:00] en.wikipedia.org/wiki/Special:RandomRootPage [14:07:44] Reedy: I noted; I should have done it that way from the get go [14:08:12] Reedy: but I was not familiar enough with code to do it that way [14:08:17] so thank you :) [14:08:26] heh [14:08:28] All good fun [14:09:11] when I try to go to RandomRootPage on my wiki, it displays a "No such special page" error. Is this normal for the latest version? [14:10:09] Reedy: setting $wgSQLMode to '' in LocalSettings is not fixing my problem. Ideas? [14:10:17] That's what it already is [14:10:28] FD: go to Special:Version and tell us what version you see [14:10:28] FD: What verison are you on? Latest version isn't a useful answer :) [14:10:36] It says I have 1.26.2, so that may explain the error [14:10:52] FD: yeah, for 1.26* you still need to instal it as an extension [14:11:18] Would updating MediaWiki risk clearing any data, assuming I know the steps? [14:11:50] There shouldn't be [14:11:56] As usual, suggested you backup first [14:14:20] Reedy: okay I am confused. Did MW assume mysql does NOT use strict mode? And did we change that assumption recently? [14:14:32] huji: AFAIK no and no [14:14:38] It is possible something broke in the refactorings [14:15:32] Reedy: but here is what I did: I knew the code was working on Sep 10 so I reset both MW and SecurePoll code to Sep 10 (git reset --hard sep10versionid) [14:15:35] and it still does not work [14:15:50] so it cannot be a recent code change [14:15:55] SELECT @@GLOBAL.sql_mode; [14:15:55] SELECT @@SESSION.sql_mode; [14:16:01] What dod they tell you in sql.php? [14:16:21] ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION [14:16:35] STRICT_TRANS_TABLES is probably the culprit [14:16:38] mmm [14:16:45] WP shows [@@GLOBAL.sql_mode] => IGNORE_BAD_TABLE_OPTIONS [14:16:48] Let me check my dev wiki [14:16:50] but that is why I asked: did we assume mysql is NOT running in strict mode? [14:16:54] please do [14:17:24] [@@GLOBAL.sql_mode] => NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION [14:17:43] okay, so then I would say that MW is assuming MySql is *not* using strict mode [14:17:50] and if it does, MW code will break [14:18:00] that is a serious issue, IMHO [14:18:50] well, it'll only break because of poorly written SQL queries etc [14:19:00] MW presumably only expects strict if it's told it to do strict [14:19:16] poorly written SQL code is everywhere! [14:19:20] let me make a task for it [14:19:30] "Fix poor SQL" [14:19:44] yeah, but until then "force non-strict mode" [14:20:17] I thought $wgSQLMode = '' means no modes, as in no strict mode [14:20:19] but that is not the case [14:23:27] Well, depends if MW is setting those options on connection [14:23:29] Whch is hte question [14:29:35] Reedy: see T147852 [14:29:35] T147852: Strict mode in MySQL breaks MediaWiki and its exntesions - https://phabricator.wikimedia.org/T147852 [14:41:07] ... what sorcery is this [14:41:20] its called the internet [14:41:23] How did an extension that was balky last week suddenly fix this week? I changed nothing! [14:41:38] Ulfr maybe mediawiki changed? [14:42:00] Zppix: No, the internet is tubes. Good try though! and I certainly hope not. I'm the only one with SSH access and I wasn't logged in all weekend [14:42:04] Ulfr: Do you require a flippant answer from me today? [14:42:38] Reedy: A little bit. I think you're actually at fault this time. ConfirmAccount is your baby, isn't it? [14:42:45] God no [14:43:01] blame Aaron :) [14:43:07] Well, he doesn't sass me enough for blame [14:43:20] Though, it doesn't mean I haven't broken it [14:43:26] im too lazy to write an ext [14:43:31] Have to keep people on their toes [14:43:32] HOWEVER last week, I couldn't actually confirm account requests, because there was a syntax error or sommat and nobody could do it [14:44:01] I just did it now to get the exact text of the error message to head off getting mocked for an imprecise report and it went through, easy as you please [14:44:16] Vulpix was there! I'm not crazy. [14:45:55] ..okay, I am crazy. But I'm not one to hallucinate [14:46:10] Take more/less drugs as appropriate [14:46:42] This is going to drive me mental. I don't even know how to figure out which frontend I'm using at the moment >< [15:05:51] hello ladies and gentlemen, I am trying to find the editing permissions settings that I was shown at install, like anyone, authorized, private etc..could you help me know where it is? [15:07:19] That's just a simplified display of it [15:07:29] !wg GroupPermissions [15:07:29] https://www.mediawiki.org/wiki/Manual:%24wgGroupPermissions [15:08:18] thank you Reedy, simple is beautiful. [15:08:32] Unfortunately, that setting is anything but simple [15:08:58] while having not used it, I can understand why it is not. [15:09:13] not used it yet* [15:11:12] 'bureaucrat' :D [15:11:16] who is it? [15:13:59] really, what is it pertinent to? [15:16:04] it's just a user group [15:21:18] yes, I haven't thought that they were a jazz band, either, but why named bureaucrats? [15:22:08] legacy? [15:23:29] historically, on Wikipedia sites, they process requests for rights, community votes to accept/deny a request [15:23:55] ah, so it is for larger wikis, managed by a group of people [15:24:03] I imagine the action to close their requests, balance the opinions and take a decision is a good fit for bureaucracy [15:24:24] by default it's the user group allowed to grant rights like admin to others [15:25:20] so it's community management [15:26:16] it's just a word [15:30:07] a word is never just a word [15:30:15] just like football is never football [15:30:21] never just football [15:31:25] it could say fibble for it matters [15:31:53] somtimes, an arbitrary identifier is just an arbitrary identifier. [15:32:18] i'm sure someone had a discussion somewhere about the name, fifteen years ago ;) [15:34:04] like burocracy itself, once came, never left [15:36:48] Reedy: Can you make that a config option? Change the i18n so it's Fibble or Fop instead of Beuracrat? [15:37:16] Just change the message for the group name :P [15:37:48] you mean this: http://www.fibble.com/ [15:41:34] Reedy uses the word 'just' often. because it is just a word [15:46:00] anyway..having a wiki site looks and feels good. that's what look&feel is about. thank you for all those involved in bringing it to people [15:46:15] thank you to* [15:46:36] thanks to* [15:46:41] (tired) [15:50:55] kernello: I know that feel. [15:51:16] Ulfr, which feel? [15:51:30] all of them [15:51:32] being super tired, and wishing Reedy didn't make me feel like such a dummy when the solution is obvious! [15:51:44] you just change that value, duh [15:51:45] I only troll when it's deserved [15:52:15] naturally, do you really think I'd sass you about it if I thought you were actually a jerk, and didn't just play one on tv [15:52:28] How did you know I'm on TV? :O [15:52:47] I didn't, nor do I believe you [15:52:56] ever? [15:53:36] when it's stuff related to MW, I will trust your word. When you start talking about your career in soap operas, I take it with a grain of salt [15:54:12] fml [16:00:36] When I started doing homework about visual editor, I couldn't believe the users demanded it be removed. Then I installed it on my wiki, and users not only refuse to use it, they get upset when edits get lost after their sessions time out because they never clicked save. Even though VE has some form of autosave AND is less clunky to use than wikicode [16:00:58] Ulfr: I take no blame for any of that,. [16:01:23] Trust me. If I could blame you for the average user having a density approaching a neutron star, I would [16:02:06] Ulfr: i don't think it has autosave, but it should handle session timeouts, unless you're using a somewhat old version. i think i worked on that code a year ago or so [16:03:02] what i'm talking about is the actual user is logged in session, like, they get logged off because it's been hours since they did anything and don't have the keep me logged in box ticked [16:03:03] -.- [16:03:48] Default it on? [16:06:13] Man, I got tickets because people had to log into an app and they didn't like that, even though they were the ones who wanted session metrics [16:06:26] trust me, I can fix a lot of stupid, but I really can't patch out all of it [16:08:12] * kernello takes his leave, thanking all participants and wishing them a fulfilling life [16:10:28] Ok, how am I supposed to copy/pasta this nonsense. https://en.wikipedia.org/wiki/MediaWiki:Visualeditor-cite-tool-definition.json [16:10:51] oh, hey. A view source button. [16:10:53] I'ma shut up [16:31:19] MatmaRex: Silly question and sorry to bovver directly, but how do I actually add the citation button to the VE interface? It doesn't want to pop in :| [16:32:16] Ulfr: sorry, no idea [16:32:27] Ulfr: do you have Cite installed? i think most of the code was moved there at some point [16:32:31] !e Cite [16:32:31] https://www.mediawiki.org/wiki/Extension:Cite [16:33:16] Well, that's a good place to look. I just did a ctrl-f on the version page to make sure it was there. Turns out my version's kinda old [16:35:17] MatmaRex: Got it in one! thanks bud [16:48:04] And my last frivilous question that probably has no good answer, are there any tools out there that I can use to prevent plagiarism on my site? apparently folks have been blatantly copy/pastaing and management wants me to stop it. [16:49:50] Ulfr: what license is your site content listed as? [16:51:20] if the source they are copy/pasting from is under a compatible license, then there likely is not an issue, although attribution may be required. [17:54:25] Skizzerz: the problem isn't that we're copyrighted, it's that some of the content authors are less particular about where they copy/paste from and who gets cited. We've gotten a few cease and desists, and I'm just poking around [17:57:23] this is a tough issue, your best bet imo would be talking to those authors and getting them to stop [17:58:27] I know of no good ways to detect it automatically [17:59:32] That's what my googling concluded. Unfortunately a lot of these folks aren't paid and the quality shows, so it's painful getting them to stop before it's all over the place. [17:59:34] Thanks anyway! [19:12:48] is there away to upload pdfs into a wiki? [19:12:54] Yes [19:12:57] how [19:13:21] when i go to upload pdfs is not an allowed file type [19:15:24] Add them [19:16:02] $wgFileExtensions[] = 'pdf'; [19:20:13] reedy where do i put that? [19:20:22] in your LocalSettings [19:20:44] Reedy, thanks [20:59:20] Question: Is it possible, in a MediaWiki extension, for the edit button to result in a JavaScript popup instead of the usual action=edit? [20:59:40] no [20:59:48] Good to know. Thank you. [21:04:47] Why no, btw? :P [21:05:20] s/no/yes/ -- just add a js module into resourceloader that hooks into that caction [21:05:40] The SkinTemplateNavigation::Universal hook can make that easier by adding classes to that particular link [21:05:41] Zppix, that's precisely what MobileFrontend does, for example [21:07:53] Pretty much anything is possible [21:09:18] except for a thing I was looking into [21:09:20] :( [21:09:32] although I could probably just add a new hook for it [21:10:15] Skizzerz: never know, Reedy might be able to suggest a way [21:10:23] (I wanted to expand the types of allowable blocks to allow for ASN blocks, because I was getting annoyed at a particular hosting company for ignoring my abuse emails from them, and it's easier to block that then block the ranges individually) [21:10:42] s/from them/to them/ [21:11:17] the only hooks that touch that side of blocking don't allow for customization in any way/shape/form from what I could tell [21:13:03] then after 10 minutes I stopped caring again and will probably just be really annoyed when it happens again [21:13:26] AbuseFilter is catching the edits anyway, so it's really just to make the abuselog have less stuff in it [21:13:47] Skizzerz: just bribe Reedy to do it for you >.> [21:14:22] that sounds like it also involves effort :) [21:23:18] Reedy: what refactoring are you talking about? [21:23:35] huji: all the db code has been moved into libs, some base class changes etc [21:23:47] ah I see [21:24:10] https://github.com/wikimedia/mediawiki/commits/master/includes/libs/rdbms [21:24:11] Quite a bit [21:24:20] Reedy: also, it doesn't make sense to me: how can the construct not be called before any member function is called? [21:24:46] I mean, I put like "echo"s in the functions and I see the open() function echos before construct doesn, but I cannot udnerstand how this is even possible [21:25:04] isn't a class constructor supposed to be called before any method/property could be accessed? [21:25:29] huji: well, the constructor calls open [21:25:42] Certainly in the Database::__construct [21:25:52] if ( $user ) { [21:25:52] $this->open( $server, $user, $password, $dbName ); [21:25:52] } elseif ( $this->requiresDatabaseUser() ) { [21:25:52] throw new InvalidArgumentException( "No database user provided." ); [21:25:53] } [21:25:55] Line 270 of Database.php [21:26:19] huji: I think see it... [21:26:23] ah [21:26:27] grrr [21:26:35] Not all the params get transferred [21:27:16] yup, huji I see it [21:27:21] function __construct( array $params ) { [21:27:21] parent::__construct( $params ); [21:27:29] in DatabaseMysqlBase [21:27:37] $this->sqlMode = isset( $params['sqlMode'] ) ? $params['sqlMode'] : ''; [21:27:41] Is then after [21:27:43] I'll make a patch [21:27:49] yes [21:27:55] how'd you patch it though? [21:28:03] very easily [21:28:05] watch :) [21:28:07] put the parent::__constrcut() at the end? [21:28:11] Yup [21:28:15] Which the other DB classes do [21:29:57] huji: https://gerrit.wikimedia.org/r/315423 [21:31:06] fetching ... [21:33:12] Reedy: test 1/2 passed [21:33:18] moving to test 2/2 [21:33:41] how you render something like render, but instead detect newline and render exactly what i put between tags ? [21:34:12] Reedy: looks good [21:34:15] I'll give you a +1 ;) [21:34:18] don't render newlines. for example when i paste code [21:34:37] I guess it's due to the underlying refactoring [21:36:53] it's
 tag ? or should i use extension:code ?
[21:38:53] 	 Tried the syntaxhighlight extension?
[21:43:21] 	 reading extension:code documentation i believe that depends on syntaxhighlight extension. it's not ?
[21:43:58] 	 No
[21:44:11] 	 It depends on GeSHi seperately...
[21:44:22] 	 The SyntaxHighlight_GeSHi extension doesn't depend on GeSHi anymore
[21:44:30] 	 Confusingly
[21:44:34] 	 oh ok "This extension was formerly known as SyntaxHighlight_GeSHi since it used GeSHi for syntax highlighting. Since June 2015 it uses Pygments."
[21:45:03] 	 thanks, Reedy . what is more decent for rendering code ? i don't get the differences
[21:45:23] 	 Well, GeSHi was replaced because it wasn't as good as pygments for many reasons
[21:46:02] 	 A big one, being that it's not actively maintaned upstream
[21:46:20] 	 the extension code right ?
[21:46:28] 	 No, the GeSHi library
[21:46:37] 	 The SyntaxHighlight_GeSHi extension is maintained as necessary
[21:46:54] 	 We had numerous bug reports and feature requests upstream, ncluding some patches, and they weren't dealt with timely
[21:47:15] 	 i will try to implement SyntaxHighlight using pygments then
[21:47:18] 	 thanks Reedy