[05:42:34] Phabricator + Gerrit => Pherrit? [05:43:18] hmm? [05:45:17] wikimedians were discussing whether to switch to phabricator's code review, or stick with gerrit, etc. [05:45:24] so I applied Phabricator's Ph naming convention to gerrit [05:46:39] lol i see [07:46:08] My work has been approved on gerrit! [07:46:24] Can someone approve it on GCI? The deadline is about to go [07:47:59] Reedy: ^ [07:58:35] trying to setup ConfirmAccount, it complains when I try to confirm this account... could not create directory mwstore://accountcreds-backend/accountcreds-public/k/ka/kab [07:58:48] [Sat Dec 19 08:54:40 2015] [error] [client 51.175.188.246] PHP Warning: failed to mkdir "/accountcreds/k/ka/kab" mode 0777 [Called from wfMkdirParents in /var/www/kabelgalskap.karlsbakk.net/includes/GlobalFunctions.php at line 2551] in /var/www/kabelgalskap.karlsbakk.net/includes/debug/MWDebug.php on line 300, referer: http://kabelgalskap.karlsbakk.net/index.php/Spesial:Bekreft_konto/authors [07:59:04] looks like it's trying to mkdir something on the root [08:08:47] The issue is not documented at https://www.mediawiki.org/wiki/Extension:ConfirmAccount [08:09:51] Do you have in your LocalSettings.php a value for wgUploadDirectory ? [08:10:24] no [08:10:30] uploads work, btw [08:10:35] I see in ConfirmAccount.config.php the extension will use by default $wgUploadDirectory . "/accountcreds" [08:11:23] It defaults to the images/ folder. [08:12:37] then perhaps it should be trying a mkdir in there? [08:12:56] You could also chown this directory to your webuser [08:13:20] it's owned by my user with the www-data group and chmodded 775 [08:13:53] and the webserver runs as :www-data ? [08:14:03] www-data:www-data [08:14:22] as I said, uploads work [08:14:44] You can get a shell to inspect the actual values of the configuration variables : cd /var/www/kabelgalskap.karlsbakk.net/ ; php maintenance/eval.php [08:14:49] try echo $wgUploadDirectory [08:15:00] Do you have /var/www/kabelgalskap.karlsbakk.net/images as reply? [08:16:07] that's not an environmental variable, it's a php thing [08:17:24] https://www.mediawiki.org/wiki/Manual:Eval.php [08:19:53] eval.php opens a PHP shell, loads MediaWiki classes and your configuration, so this `echo $wgUploadDirectory` is to be evaluated as a PHP expression, not a shell environment one. [08:20:48] > echo $wgUploadDirectory [08:20:48] /var/www/kabelgalskap.karlsbakk.net/images [08:20:58] Perfect. [08:21:07] still same error, though [08:21:31] seems like some suggest to pull this one off git [08:22:35] print_r($wgConfirmAccountFSRepos) should give you the paths the extension wants to use [08:22:58] accountreqs / directory / /var/www/kabelgalskap.karlsbakk.net/images/accountreqs should be expected [08:23:11] same for /var/www/kabelgalskap.karlsbakk.net/images/accountcreds [08:23:49] http://paste.debian.net/351243/ [08:24:25] Dereckson: thanks for the advice so far :) [08:26:17] I didn't know that shell [08:28:22] any ideas further? [08:37:36] Hello there, I'm JLeow00. [08:48:47] Hi, nemo_bis [08:49:24] it's me Nimper. Else nimna Perera [08:50:35] RoyK: you could manually fix it adding in your configuration $wgConfirmAccountFSRepos['accountreqs']['directory'] = /path/where/you/want/and/can/write; Same for $wgConfirmAccountFSRepos['accountcreds']['directory']. [08:51:06] RoyK: you could also set $wgFileStore['accountreqs']['directory'] and $wgFileStore['accountcreds']['directory'] instead, and check again the print_r of $wgConfirmAccountFSRepos [08:51:31] In both case, that should be before the require_once extension line. [08:56:39] Dereckson: will try [08:56:52] Hi nemo_bis [08:56:55] Dereckson: why before it? [08:58:27] Dereckson: ah - before require - that was what made it a wee bit better ;) [08:59:24] Dereckson: didn't hardcode what you said, just $wgFileStore['accountcreds']['directory' and similar for accoutreqs [08:59:30] Dereckson: thanks [09:04:00] You're welcome. In the future, if you see something similar, you can look the extension code and see how it wants to read configuration variables, here it were in ConfirmAccount.config.php. Sometimes, you won't have a config file, and it's directly in .php [09:05:53] About the order config first, then require: when you include the extension code it sets its own configuration based on what is available at this moment, so if you write configuration after, it will be ignored, as the extension has already read these variables. [09:07:51] Dereckson: I don't do much php nowadays, so sometimes I forget ;) [09:08:18] pretty basic stuff, really [09:51:40] Niharika: the first instance didn't go well https://codein.withgoogle.com/dashboard/task-instances/6220288442236928/ [09:51:55] I suggest to rewrite the instructions so that they focus on the pages without links [10:01:33] Hi JLeow00 [10:02:27] (Sorry for the slow reply, this channel is rather quiet at this time in the week. There is more action at #wikimedia-dev right now!) [10:04:59] i'd join that channel but i'm sure i'd grind the development process to a halt if i tried to help :-S [10:12:13] greeter: #wikimedia-dev is mostly for robots though [10:12:40] well people often mistake me for one. perhaps i should join [10:12:48] :-D [10:13:07] I barely look at #wikimedia-dev myself [10:13:12] the bots are killing me [10:13:59] just ignore one or two of the bots [10:14:58] anyway, will finish watching some movie with my kids :D [10:15:07] have a good hacking week-end! [10:16:21] Nemo_bis: Hmm, for consistency I'd prefer to have the template on every page because sooner or later they're all going to be outdated. [10:16:54] Nemo_bis: Is there another template we could use instead of Outdated? More information or something? [10:18:54] Nemo_bis: Verifying if the page is outdated is not trivial for someone with zero familiarity with the docs. [10:29:36] Niharika: then change task [10:30:22] Nemo_bis: To? [17:04:02] Hello, any devs that can help me with an error I have on hacked.com [17:04:25] hacked.com/wiki [17:04:35] Using the skin BlueSky [17:08:23] What's the problem? [17:09:43] http://pastebin.com/A9xLHT36 [17:10:07] Something with TOC? [17:10:19] $wgBlueSkyTOC presumably isn't defined/an array [17:10:37] https://github.com/wikimedia/mediawiki-skins-BlueSky/blob/master/BlueSky.php#L191 [17:10:48] Well that's just stupid [17:11:25] https://github.com/wikimedia/mediawiki-skins-BlueSky/blob/ddc3b24158e2b0e36e6b1bdd048f9b97554a5b23/BlueSky.skin.php#L1571-L1585 [17:11:34] Are you using an up to date version of the skin? [17:11:48] Yes [17:11:54] Installed twice as well [17:11:58] with new mediawiki [17:12:01] same error [17:14:13] ashley: ^^ [17:14:46] php > var_dump( count( $foo ) ); [17:14:46] int(1) [17:16:54] Swapif ( isset( $wgBlueSkyTOC ) && count( $wgBlueSkyTOC ) > 0 ) { [17:16:58] sigh [17:16:59] Swap [17:17:00] if ( isset( $wgBlueSkyTOC ) && count( $wgBlueSkyTOC ) > 0 ) { [17:17:02] for [17:17:06] if ( is_array( $wgBlueSkyTOC ) && count( $wgBlueSkyTOC ) > 0 ) { [17:19:57] so is_array [17:19:59] instead? [17:29:31] @Reedy email? We can pay for mediawiki modifications if you are interested in helping us with hacked.com/wiki [18:35:06] jonasborchgrevin: did that change fix the error? [19:12:32] There use to be a rank on Google Code In's website last year. Has it been removed this year? [19:12:36] Someone told me. [19:14:33] yes [19:16:14] Google Code-in is not about who fixes the most tasks the fastest. It's about quality and learning together. [19:21:45] ananayarora: It was removed because there was a ridiculous race to the top with cutthroat tactics [19:22:03] (exaggeration) but it was still way too competitive [19:22:06] Hydronium: Oh my god. [19:23:56] Anyways, I always wanted to work with open source organizations, and I'm so happy that I finally got a chance. That too with MediaWiki [19:24:02] :D [19:24:32] After I gain more experience from this event, I'll start working with Wordpress :) [19:24:48] and MediaWiki too, ofcourse [19:25:21] <_atg> When you are preparing a wiki page for translation, do you need to add the tag at the top manually? Or does it get added automatically by the extension? [19:31:43] _atg: I think it's automatic [19:35:07] hey there, what does "[4da68724] 2015-12-19 19:34:14: Fatal exception of type MWException" mean? [19:35:56] Chiyo, https://www.mediawiki.org/wiki/Manual:How_to_debug#PHP_errors [19:36:08] Where did you get it? [19:36:58] !debug Chiyo [19:36:58] For information on debugging (including viewing errors), see http://www.mediawiki.org/wiki/Manual:How_to_debug . A list of related configuration variables is at https://www.mediawiki.org/wiki/Manual:Configuration_settings#Debug.2Flogging [20:53:45] !debug | Betacommand [20:53:46] Betacommand: For information on debugging (including viewing errors), see http://www.mediawiki.org/wiki/Manual:How_to_debug . A list of related configuration variables is at https://www.mediawiki.org/wiki/Manual:Configuration_settings#Debug.2Flogging [20:53:51] need to use a pipe :) [20:59:24] legoktm: couldnt remember which way it was [22:29:07] hi there, I'm setting up the short url, however it redirects me to /wiki/index.php/Main_Page and not /wiki/main_page, as well as breaking the stylesheet [23:03:22] hello? [23:03:29] !shortrul | Chiyo [23:03:47] !short | Chiyo [23:03:58] i've been following that in every possible way and it doesn't resolve it =/ [23:04:46] Chiyo: what is your wgserver set to? [23:05:16] it looks like your rewrite rules are not correct [23:06:53] http://pastebin.com/PG9DWL6w [23:10:13] no idea where it's wrong as it should work, but doesn't [23:10:51] Chiyo: your wgserver isnt set [23:11:30] it is, just not in that pastebin [23:11:44] what is it set to? [23:13:31] "http://wikimissingfoundation.org" [23:18:35] Chiyo: let me review my notes [23:20:40] ok [23:37:03] Betacommand, would it be worth making a post on mediawiki.org too? [23:37:20] Chiyo: let me find my rewrite rules [23:37:29] ok :) [23:45:45] Betacommand, oh, I found it... sort of [23:45:56] Chiyo: what did you see/ [23:46:28] $wgArticlePath and $wgScriptPath don't work if they are in the $wgConf->settings array... for some reason [23:46:36] ah [23:47:49] which is even more odd as it works here: https://github.com/miraheze/mw-config/blob/master/LocalSettings.php#L1073