[00:13:42] hi, I tried to install mediawiki 1.25 from the tarball and it fails to work because psr-3 is missing, in the doc it says it should be dealt with from tarball [00:13:48] what did go wrong? [00:14:22] ostriches, legoktm ^ [00:15:29] myier: Do you have a vendor folder with stuff in it? [00:16:31] Reedy: yes [00:20:11] why can't I find this in the upgrade doc? [00:21:59] or the release notes [00:22:26] "The tarball will contain these dependencies and the upgrade process for tarball users should stay the same." [00:22:40] Which is the vendor folder [00:23:01] what am I supposed to do with this folder [00:23:16] You shouldn't have to do anything [00:23:27] It should be there when you extract the tarball, and that's enough [00:25:22] ok I understand, since it's a new dir it requires to be linked to the /var/lib install dir debian-style [00:25:43] thanks [00:26:29] Uh [00:26:36] Why would it need to be linked to /var/lib? [00:27:11] because on debian the websites are in /var/lib and the directories of /usr/share/mediawiki are linked in the websites dirs [00:27:34] Sounds scary [00:27:35] only if you apt-get install mediawiki presuambly [00:27:42] yes [00:27:43] Which you really shouldn't do [00:27:47] Because they do shit like that [00:28:11] I have three mediawiki sites, that's quite useful actually [00:28:33] You can do it in many other ways [00:28:35] all pointing to the same /usr/share/mediawiki [00:28:54] probably, but that works quite nicely in general [00:49:23] He used the tarball and apt-get? [00:49:25] Weird. [00:49:51] Hello, I got megabanned by abusefilter for trying to post a constructive response to an RfC ; _ ; [00:51:24] Thisismyrofl: o_o [00:51:31] Where? [00:51:34] mediawiki.org [00:52:24] There was a strange === .... === at the bottom of the page that I removed and that might have done it [00:52:43] hm [00:52:57] But indefinite, dayum. [00:53:01] Thisismyrofl: link diff please. [00:53:19] There's no diff, it didn't go through, I was just instabanned [00:53:26] o_o [00:53:39] Captcha fail? [00:53:56] No captcha to fail [00:54:18] Thank you, Matiia! [00:55:08] Thisismyrofl: she isn't in here, but heh.. I was thinking whether to ping Jack or not. :p [00:56:16] Ok, I made my edit successfully, the === ... === will just have to stay - I ain't touching it [00:56:30] lol [01:10:07] Thisismyrofl: actually banned, or just that your edit was prevented? [01:10:35] (we had issues with abusefilter actually banning people that matched some spambot filters) [01:19:43] (Block log); 00:45 . . Abuse filter (talk | contribs) blocked Thisismyrofl (talk | contribs) with an expiry time of indefinite (account creation blocked) ‎(Automatically blocked by abuse filter. Description of matched rule: Temporary mass spambot attack_wikitext) [01:20:22] it's fixed now but yeah [01:21:05] yeah, you were blocked and someone unblocked you. https://www.mediawiki.org/w/index.php?title=Special:Log/block&page=User%3AThisismyrofl [01:32:28] When was mediawiki.org attacked by a spambot? [01:32:31] Temporary? [01:33:30] Katie: the filter exists since 14 october [01:33:43] Doesn't sound very temporary to me. [01:34:14] such is life. [01:35:16] temporary solutions have a terrible habit of becoming permanent, around here [01:35:27] (from quips) [01:37:10] https://www.mediawiki.org/wiki/Special:AbuseLog/85032 [01:37:16] So like someone posts that and then gets insta-blocked. [01:39:59] the added_lines regex there does look pretty stupid [01:40:35] it matches four times in the traceback… :/ [02:36:49] MatmaRex: https://www.mediawiki.org/wiki/Project_talk:AbuseFilter [10:51:33] I have set up Mediawiki on nginx at port 8001, with Varnish in front on a different machine on port 80, and I have a problem that some URLs (as well as the redirect from /) gets the internal port number 8001 in the URL [10:51:44] I have looked at https://www.mediawiki.org/wiki/Manual:$wgSquidServers#Configuration_example_with_Varnish [10:52:30] if I have understood it correctly Varnish should now set X-forwarded-for on every request, so I don't think that is the issue [10:52:57] here is the site: http://wiki.perlrdf.org/view/Main_Page [10:54:18] This is what I've tried to solve the problem: https://dpaste.de/kqW7 [10:55:19] the stylesheet and javascript has the port number in their URLs at least [10:57:59] What is $wgServer etc set to? [11:00:34] Reedy, nothing, I thought I didn't need to be explicit about that... [11:04:41] ah, now, I think it works! I did a restart of php5-fpm [11:05:01] I have to admit that I have been cargo-culting much of this setup [16:54:56] Hey everyone. I just migrated our server to a new host and domain name, and now some of the links return a BIN file which the browser tries to download. e.g. https://wiki.zoneminder.com/Documentation == good and https://wiki.zoneminder.com/FAQ == bad. What could cause this? [16:56:04] In fact FAQ is the only such link which I can find that does that. [16:58:07] fixxxermet: this is because you're using a short URL setup with no "subpath" [16:58:18] fixxxermet: and there is a file called "FAQ" in the mediawiki directory [16:58:31] so it returns that file, rathe than your page. [16:59:01] Ah-hah! [16:59:55] YYup, removing that local file fixed the issue. [17:00:01] That you MatmaRex [18:42:59] hi [18:43:08] I've got a question on the translation plugin [18:44:47] we have some started translations that are heavily outdated. now we would like to hide the fact that there is a translation at, so that we don't confuse the users. is that possible? [18:46:24] phry: try asking at #mediawiki-i18n, Translate maintainers hang out there [18:47:16] okay, thanks [18:53:01] hi! [18:53:39] I'd like to add a class to all h2 inside the article [18:54:08] my skin.php line looks like this [18:54:12] html( 'bodytext' ) ?> [18:55:21] what would be the best way to add a class to all h2 of all articles? [18:55:42] that's not easily doable :( you'd have to get the HTML from $this->data['bodytext'] (IIRC), and then process it (some regexps, or DOM parsing) [18:57:13] uhmm I see.. [18:57:32] thank you! [18:58:17] do you know of a sample code processing $this->data['bodytext'] to have a look? [18:59:42] kuaiat: don't have any MW examples handly, but from a quick googling, this looks like a good example to copy-paste from: http://htmlparsing.com/php.html [19:01:19] neat! [19:27:05] kuaiat: why do you want to add a class to all h2 tags in the article? [19:27:27] wouldn't it be much easier to just use a css selector that matches all h2 tags in the article without adding a class? [19:28:37] like #mw-content-text h2 { .... } [19:29:44] the thing is that I dont want to change its css [19:37:20] sorry I got disconnected [19:38:42] DanielK_WMDE I was saying that I want to add collapse property to h2, like this example: https://en.m.wikipedia.org/wiki/1975_Australian_constitutional_crisis [19:38:59] perhaps there is a skin already available, but I dont seem to find it [19:40:43] kuaiat: the mobile skin does this, but i don't know how they do it. [19:41:24] kuaiat: you can use JS to add the class. with jquery, you can use the css selector to add another css class. should be trivial [19:41:29] * DanielK_WMDE is not a javascript guy [19:44:22] It’s a nice suggestion, but would it be recognized by mediawiki’s jquery script for the collapse built in effect? [19:44:55] perhaps my js adding a class would be executed after mediawiki’s jquery script [19:45:55] kuaiat: yes, order of initialization is an issue. Should be solvable, but I don't know the details. [19:46:20] probably a lot easier than trying to do this on the php side, though [19:47:11] I might give it a try as a last resource [19:47:12] thanks! [20:49:56] Hey there! I have a template that will not accept a hyperlink parameter:https://wiki.gamepaduniverse.com/wiki/Template:ShopButton [20:50:14] It accepts plain text just fine [20:50:26] but I want the parameter to be a hyperlink [20:50:47] I put a "[" and "]" in [20:51:12] but it give me Error: Template must be given at least one article name [20:51:38] ignore the remaing parameters on the list [20:51:43] just the first one matters [20:59:01] anyone there? [20:59:35] the template is inserted in https://wiki.gamepaduniverse.com/wiki/List_Of_XInput_Devices to see the effect [20:59:47] aha [21:00:19] why [:{{ ? [21:01:12] well the [ is for the hyperlink [21:01:18] the :{{ i dont know [21:02:19] can you try without? [21:02:44] (maybe just make a simple template just to test) [21:03:06] is [{{#if:{{{label 1|{{{l1|}}}}}}|{{!}}{{{label 1|{{{l1}}}}}}}} shop] look better? [21:03:19] i am a moron [21:04:37] omg [21:05:11] https://www.mediawiki.org/wiki/Help:Templates [21:05:17] [{{#if:{{{label 1|{{{l1|}}}}}} says that if the label is not null [21:05:53] my advice would be, simplify, try on small examples step by step and figure out when it breaks [21:08:35] saper:I always see {{{1|}}} in templates [21:08:45] what does the pipe symbol do? [21:08:53] I see dead people [21:08:59] !templates | helpplz [21:08:59] helpplz: For more information about templates, see . See also: !templateproblems , !wptemplates [21:09:10] there is no {{{1|}}} [21:09:15] on that page [21:09:39] this means "value of parameter one or nothing if parameter one is empty" [21:10:28] so why does that return nothing with a url passed as the parameter? [21:12:11] got it [21:12:18] had to put "1=" [21:12:23] because it's a table [21:12:31] a wikitable i should say [21:12:50] enjoy, I need to log off, sorry! [22:20:23] I have a few thousand spam accounts that I'd like to delete. Is there an easy way to delete all users that aren't member of a group? [22:27:41] alternatively, I could delete users that aren't in amongst the first ten that registered, and that has not made any edits [22:27:52] would the following SQL query do the trick: [22:27:57] DELETE FROM perlrdf_user WHERE user_editcount = 0 AND user_id>10 [22:27:59] ? [22:28:13] or are there side effects that may cause trouble? [23:31:16] Once I've submitted a patch and gotten a +1 on Code Review by a reviewer, can I add the author of the task as another code reviewer? Or should I be asking for explicit permission before doing so? [23:31:51] It depends on the author [23:32:00] Whether they've got any technical capability to review [23:32:18] If you added the bug: T12345, it will have notified the task [23:37:01] Most people don't mind being added on patches, as long as you don't go over the top (If anyone asks not to be added, or removes themselves, don't add them to any new patches. Also don't go crazy with rebases or otherwise do things that might send people a large amount of spam to someone) [23:37:13] Reedy, I see. I read the Gerrit guidelines, and it talked about adding maintainers as reviewers. For the Cite extension, it listed user: hoo man. [23:37:26] Can I add hoo man as a reviewer? [23:37:41] That should be fine [23:38:20] Reedy, bawolff, thanks!