[00:22:35] What would be best practice for how many extra namespaces would be feasable? I was trying to run 3 but I'm having issues initializing the 3rd. I think I will be fine with just the two but I wanted to ask because I'm hitting a brick wall with the 3rd. [00:22:59] You can have hundreds if you really wanted [00:23:12] I figured as much. Very scalable software. [00:23:38] 2147483647/2 [00:23:58] * James_F grins at Reedy. [00:24:14] If we need more than 2^32 I guess we could hack something in. [00:24:22] I'm not sure then why I'm having issues with the 3rd when I defined them virtually the same way as the other two. [00:24:24] I don't think MW will let you use the negative numbers, right? [00:24:32] rendysurvage: Pastebin the code/config? :) [00:24:44] Reedy: Nope, -1 and -2 are special. [00:24:45] Yeah let me tidy it up of creds and I'll post [00:24:56] You shouldn't need the whole file, just the namespace adding bit [00:25:07] James_F: Sure, but what about < -2 down to -2147483647? :P [00:26:09] Reedy: I'm pretty sure I've seen code checking < 0 to mean "special". [00:26:18] Probably [00:26:27] * AntiComposite would not be surprised [00:26:39] public function isSpecialPage() { [00:26:39] return $this->mNamespace == NS_SPECIAL; [00:26:39] } [00:26:55] I mean, 2147483647/2 namespaces ought to be enough for anyone.. [00:27:24] http://ix.io/2eDA [00:27:26] // Can't protect pages in special namespaces [00:27:26] if ( $this->mNamespace < 0 ) { [00:27:26] return false; [00:27:26] } [00:28:01] /$wgContentNamespaces[NS_POLICY, NS_PROCEDURE, NS_METHOD, NS_MAIN]; [00:28:03] translatewiki.net probably won't even use that many [00:28:07] I have angered the bot gods [00:28:08] That wouldn't be valid PHP btw [00:28:27] $wgContentNamespaces = [NS_POLICY, NS_PROCEDURE, NS_METHOD, NS_MAIN]; [00:28:30] would work [00:28:56] Anyway. What do you mean they don't work? [00:29:12] Oh, and you can't use the NS_* before the define [00:29:15] enabled gives me error 500 [00:29:50] OH so my defines are resulting in NS_NS_POLICY? [00:29:56] $wgNamespaceProtection{NS_METHOD] = array( 'editmethod' ); [00:30:00] You've got a { and a ] [00:30:05] Not a [ and a ] [00:30:57] No, I was meaning if your code was in that order, $wgContentNamespaces[] = NS_PROCEDURE; (if uncommented) wouldn't work [00:31:45] Got it. The tutorial said = NS_FOO so i thought I'd just put it in the brackets as I assumed it was an array [00:31:58] linear linked list or something similar [00:33:02] is NS_MAIN predefined? I saw it in defaults. I put it in because my pages won't display after uncommenting my ContentNamespaces [00:33:21] It is [00:34:55] https://phabricator.wikimedia.org/P10726 [00:34:58] Should work fine [00:36:40] I appreciate you helping out. It's working fine now. Must be my fat fingers. [00:37:12] [ { are on the same button... maybe mispressed shift [00:37:24] was it because my defines were after my contentnamespaces? [00:37:34] ah well [00:38:03] thank you. I'm going to look over the changes you made. Now to migrate my pages to the new namespaces. [00:38:37] Like I say, you had a { where you should've had a [ [00:38:44] on this line [00:38:44] $wgNamespaceProtection{NS_METHOD] = array( 'editmethod' ); [00:39:14] vs [00:39:20] $wgNamespaceProtection[NS_METHOD] = array( 'editmethod' ); [00:40:07] Yeah I had made that correction but it didn't work. I think maybe I misunderstood how difinitions work in php. Like C, have to define before you use? [00:40:59] yeah, you can't use something before it's defined [00:41:16] You might want to check your webserver logs for the actual errors [00:41:59] Yeah I'm working with someone and he hasn't given me an ssh login yet. aka I don't own the server. [00:42:07] I'll get it though. That will be very helpful. [00:42:34] For information on debugging (including viewing errors), see https://mediawiki.org/wiki/Manual:How_to_debug . A list of related configuration variables is at https://mediawiki.org/wiki/Manual:Configuration_settings#Debug.2Flogging Also see https://mediawiki.org/wiki/Manual:Errors_and_symptoms [00:42:39] I have ftp to the wiki folder and a sql login but no ssh [00:43:49] Thank you again, Reedy [05:46:17] zhuyifei1999_: Hi, Yesterday we developed our newer version of VideoCutTool version 0.3 and deployed here https://videocuttool.wmflabs.org/ Can you please update in the gadget script and in the commons side bar link? [06:28:40] Gopa: mind ending an {{edit request}}? [06:28:44] *sending [06:44:25] zhuyifei1999_: yeah Where should I request the edit request ? [06:44:48] the talk page of the gadget [06:45:00] okay sure :) [06:45:04] where the code of the gadget is located [06:45:29] lemme check now [06:45:38] it's best if you post a diff of old version vs new version [06:46:22] okay [06:47:01] * Gopa currently outside I will be back in 30min from now [08:06:09] zhuyifei1999_: Requested here: https://commons.wikimedia.org/wiki/MediaWiki_talk:Gadget-VideoCutTool [08:12:02] i.e. I don't want whether the request to be done to be dependent on whether you ping me. [08:12:25] what if I vanish / die one day :) [08:14:15] zhuyifei1999_: then we'd be sad :'( [08:19:09] :( [08:22:24] * Gopa sorry for the pings :| [08:25:20] why is MediaWiki:Retrievedfrom at bottom of each page on mediawiki.org (and test.wikipedia)? example: https://www.mediawiki.org/wiki/MediaWiki [08:25:55] Stryn: Its a bug, we are aware, it will be fixed tomorrow [08:26:11] ok thanks, is there any task on phab? [08:26:24] Stryn: https://phabricator.wikimedia.org/T247566 [08:26:40] The fixed tomorrow part is from various irc discussions [08:37:54] it's only on test wikis and mediawiki.org at the moment [08:40:32] I expect that in the evening for europe/morning for the US everything will be double checked and then the fix will go out [08:52:14] (10:49:45 πμ) marostegui: We have a maintenance window in 10 minutes that might affect gerrit, for around 30-45 seconds [12:26:25] Hi all! Not sure this is the best channel for my question, but where can I find information about setting up a project on gerrit.wikimedia.org that is synced from a GitHub project? I.e. the GitHub project is the primary source. Is there something deployed in the infra that already does this, or should we setup a cronjob somewhere? [12:35:22] kalle: what is the purpose of the gerrit mirror, if I may ask? [12:35:53] IIRC we sometimes made some secondary mirrors on Phabricator's Diffusion, dunno if that's still recommended. [12:41:55] Nemo_bis: It's for Blubberization of our services in the Wikispeech/Speechoid project, to make a long story short. [12:48:29] I see [13:36:40] kalle, that's strange, normally gerrit is the primary and github gets a read-only mirror [13:36:45] why this way around? [13:43:19] Krenair: To make the story a little bit longer, some services we use aren't ours, and there are security policies when blubberizing. [13:44:05] what is blubberising? [13:44:36] Krenair: https://wikitech.wikimedia.org/wiki/Blubber [13:46:48] so it'll only pull from gerrit? [13:47:59] No external communication what so ever. [13:48:33] Only trusted WM docker images and WM apt repo, etc. [13:48:45] so you want to evade this by having gerrit mirror a repo it wouldn't trust? [13:49:07] We trust the repo, we will have to manually confirm each merge [13:50:54] Is is a rather different discussion than the original question though, if there is a tool for syncing Gerrit from an external repo. [13:50:57] :D [14:31:43] kalle: gerrit syncs to github [14:32:08] but it's just _from_ gerrit, not to [15:05:30] hello, I'm getting 408 on wikimedia and wikipedia when trying to upload images or edit pages. "Request from - via cp5008.eqsin.wmnet, ATS/8.0.6Error: 408, Inactive Timeout at 2020-03-19 14:57:18 GMT" [15:27:58] pinchies, hi, on which website? [15:28:35] that error was from wikimedia [15:28:43] but was having issues saving pages on wikipedia too [15:28:56] uploading images would time out [15:29:28] worked fine intermittenly [15:34:56] pinchies: I don't think you can upload on wikimedia.org. Did you mean meta.wikimedia.org? Or commons.wikimedia.org? Which Wikipedia? [15:39:28] sorry, uploading to wikimedia commons using the wizard (https://commons.wikimedia.org/wiki/Special:UploadWizard) and saving edits to pages on en.wikipedia.org [15:39:47] was having problems with both [15:40:14] the error message was from wikimedia though