[08:50:00] Hi, what is the best way to integrate a private GIT/SVN repo into mediawiki? The goal is to have a box or area where the latest version etc. can be shown. Ideally it would be great to reference commits or branches from the mediawiki-page itself [10:38:21] PHP 7.0.3, mw 1.26.2, Scribunto, lua 5.1.5: When using Special:Import I receive: Warning: proc_open(): open_basedir restriction in effect. File(/dev/null) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/webapps/:/etc/webapps/mediawiki/:/usr/bin/:/var/lib/mediawiki/:/usr/share/webapps/phpMyAdmin/:/etc/webapps/phpmyadmin/:/dev/null/) in ... LuaStandaloneEngine.php on line 259. Yet I have /dev/null in open_basedi [10:39:36] My open_basedir: /srv/http/:/home/:/tmp/:/usr/share/webapps/:/etc/webapps/mediawiki/:/usr/bin/:/var/lib/mediawiki/:/usr/share/webapps/phpMyAdmin/:/etc/webapps/phpmyadmin/:/dev/null/ [10:41:35] /dev/null isn't a directory [10:42:25] it's also very unlikely that you want to use /dev/null [10:43:48] thanks, you are right, will change just to /.dev and will check [10:47:13] hello [10:47:38] I got quick question about MediaWiki - I have upgraded from 1.15 to 1.26 and one of my extensions is not working [10:48:09] how can I take URL to file previously uploaded, like it is done via [[Media:x.png]] ? [10:49:44] I need to rewrite this function: http://wklej.org/hash/187996d1c85/ [11:48:56] Hey question with template parameters. [11:49:41] Template Parameters, if not specified, are assumed {{convert|1=1500000|2=acre|3=km2}} [11:50:15] now you can set these numbers manually as well, say: [11:50:28] {{convert|3=1500000|2=acre|1=km2}} [11:50:49] what if you do: [11:51:01] {{convert|3=1500000|acre|km2}} [11:51:41] how are the unspecified parameters (acre and km2) assumed in that case? [11:52:11] are they 1 and 2? 2 and 3? 2 and 4? [12:07:09] you should be able to try easily [12:07:31] I would guess they would be 1 and 2 [12:22:42] Nikerabbit, I asked here so the question wouldn't have to be asked again~ http://stackoverflow.com/questions/35432209/how-are-template-parameters-assumed-when-following-specified-numbered-parameters [12:26:46] kivi: this might be helpful too: [12:26:47] https://en.wikipedia.org/wiki/Special:ExpandTemplates?wpInput=%7B%7Bmytemplate%7Cfoo%7Cbar%7Csnakes%7Cboat%7Cprogramming%7D%7D%0D%0A%0D%0A%7B%7Bmytemplate%7C1%3Dfoo%7C2%3Dbar%7C3%3Dsnakes%7C4%3Dboat%7C5%3Dprogramming%7D%7D%0D%0A%0D%0A%7B%7Bmytemplate%7C2%3Dfoo%7Cbar%7Csnakes%7Cparam%3Dboat%7C3%3Dprogramming%7D%7D&wpGenerateXml=1 [12:26:54] see the "XML output" section [12:27:01] MatmaRex, ty! [12:28:01] the API has action=expandtemplates that can give you the same output [13:19:23] quit [14:15:16] !cookie | MatmaRex [14:15:16] MatmaRex: To enable cookies for popular browsers, see [14:15:21] ty [14:15:33] :D [14:55:47] How can I unblock/recover a locked account from the database [14:56:02] Another administrator abused their priviledges, and locked my account [14:56:17] If I check the user tables, all I see is blobs [14:56:18] Hello Guys, My name is Donald, I am 23, and also a second year undergraduate student from Nigeria. I am interested in contributing to the Wikimedia foundation with intentions to eventually enroll in the GSoC 2016 program. I am particularly interested in the Wikipedia Android App development, I have over 3 years worth of Android development experience which I acquired before I enrolled into a university. I am very inspired about the work you guys do [14:56:19] Wikimedia, I am a heavy user of your softwares, they have made a huge impact in my life and I am so excited about participating in this community. I would apprieciate any advice from the team. Thank you. [14:59:58] Why is everything in the database blobs. [15:01:20] because MySQL really sucks at handling Unicode data [15:01:32] I don't think everythin is [15:01:46] CrystalMare: it's all just UTF-8, but whatever you're using to view it is thinking it's binary data. [15:01:56] k.. [15:02:01] let me open up my other editor then [15:02:06] How do I unblock a user ? [15:02:07] apparently phpMyAdmin sucks at this [15:02:12] Im using the MySQL Console [15:02:13] but ok [15:02:19] Ill fire up IntelliJ [15:02:23] CrystalMare: from Special:Unblock on the wiki [15:02:24] !unblock [15:02:24] There is no such key, you probably want to try: !blocking, [15:02:29] My account is locked [15:02:31] (assuming you're an administrator) [15:02:32] heh [15:02:33] They went rogue [15:02:41] They had an old account on the wiki [15:02:45] we werent aware of that [15:03:01] it'll probably be easiest to create yourself a new admin user and unbreak everything [15:03:04] !createandpromote [15:03:04] To recreate the admin user, run "php maintenance/createAndPromote.php" on the command line. [15:03:37] then using the new account, you can unblock your real account, undelete pages, restore user rights and whatnot [15:04:12] k [15:04:14] let me try that [15:10:21] Thanks! [15:37:48] anyone else besides cscott_away that know a thing or two about parsoid and/or ocg? [15:44:13] what are the project ideas for this year's gsoc? [15:48:40] ? [15:49:34] Hi sai. Here's an incubator for tasks that will possibly be good GSoC projects: https://phabricator.wikimedia.org/tag/possible-tech-projects/ [15:50:38] sai: If you're interested in a project, learn more about it, contact mentors etc. A lot of these don't have assigned mentors yet but you can comment on the task asking if anyone is interested in mentoring. [15:51:44] sai: We will be adding more projects to the board over the coming few days, so you can start with some general bug fixing meanwhile. Every contribution is valuable. :) [15:52:32] maa'm i am completely new to media wiki [15:52:37] how do i start? [15:54:30] !hacker [15:54:30] http://www.mediawiki.org/wiki/How_to_become_a_MediaWiki_hacker [15:55:45] sai: You can start here^. You can install mediawiki using the "Virtual machine with Vagrant" method. [15:56:32] what does this mean... [15:56:34] # Caution: Use of direct values required for MediaWiki 1.26+. TBLSRC_... variables are not longer defined! [15:57:07] @ https://www.mediawiki.org/wiki/Extension:TitleBlacklist#Multiple_blacklist_sources [15:57:42] QuasAtWork: Dunno, but you can check who added that code and ask them directly if they're around. [15:58:13] well Titleblacklist is just 'not working' on a friend of mine's wiki, I believe he's on 1.26-ish [15:58:45] yep, 1.26.2 [15:59:16] Any console errors? [15:59:23] I have no access to his server. [15:59:44] he just stated that no rules he puts into MediaWiki:Titleblacklist are being respected [15:59:55] I suspect they upgraded from 1.24 recently since it was working previously. [16:00:17] but if that half-English comment is the best documentation on how to use the extension w/1.26 maybe a bug needs to be opened [16:00:37] I consider myself smart but I have no idea what that is referring to or where the explanation is on how you're supposed to do it now [16:01:09] is the extension loaded? [16:01:18] yeah, it's listed in Special:Version [16:05:12] i think 1.26 got stricter with some things and so it required extensions and skins to be updated moreso than with previous version upgrades [16:05:48] some of the official skins were still broken at release time :P [16:05:52] they're on the latest extension release. [16:06:23] i mean the developers of the extension would need to fix some things [16:06:33] i don't know if that's the case here, though [16:07:10] given it's a core bundled extension I would expect it to work OoB [16:07:23] and especially since it's super-critical for fighting spam. [16:08:44] mistakes and oversights happen - like i said, some of the official skins were broken in 1.26.0 [16:09:44] a couple extensions too for the same reason [16:09:47] iirc [16:10:34] I've had to hotpatch REL-tagged extensions but usually for some minor issue [16:12:18] I remember a Special:AbuseFilter subpage not working one time... [16:18:00] the change in 1.25 to extension configuration seemed to me, as an outsider, to have all the coordination of a mob rushing for the door in a fire. [16:18:27] I had been hoping 1.25 release was going to be the stable code that had been running on WMF for months prior [16:18:37] it's why I put off upgrading to it for so long. [16:26:51] guess I can source dive and see if it's more clear in the php. [17:21:14] any familiar with woocommerce hook 'woocommerce_login_redirect' [17:21:58] specifically, using it to redirect to the current page you are on. I am receiving a blank white screen when I require users to login to checkout and then redirect to the same page [17:22:12] If i hit the refresh button it works, but the initial redirect is a blank white screen [17:25:04] i'm thinking about creating a fix that is essentially a page dedicated to redirect the checkout page [17:25:19] ie /checkout-login/ which always redirects back to /checkout/ [17:26:57] oh f wrong chan,s orry [18:54:26] so I am trying to figure out how to fix this, but it seems to be a persistent issue... 2016/02/14 16:45:19 [error] 1912#0: *14 FastCGI sent in stderr: "PHP message: PHP Notice: Uncommitted DB writes (transaction from DatabaseBase::query (SqlBagOStuff::getMulti)). in /var/www/teward/mediawiki-local/includes/db/Database.php on line 4262" while reading response header from upstream, client: 127.0.0.1, server: mediawiki-local, request: "GET [18:54:27] /opensearch_desc.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mediawiki-local" [18:54:28] bleh [18:54:31] postgresql backend [18:54:42] and getting "Uncommitted DB Writes" even with a new site [18:54:44] not sure how to fix it? [18:55:20] anyone know? [18:57:54] sounds like something is screwy with the php-pgsql extension/module/whatever it's called [18:58:12] what version of php and pgsql? [18:59:21] php 5.5.9 (Ubuntu), backend PostGres 9.4 [18:59:59] ooo wait i wonder... [19:01:33] okay, that's odd, `LocalSettings.php` shows a different database than the system is trying to access [19:02:09] which is... really weird [19:02:25] wowwwwwwww [19:02:29] RobotsOnDrugs: okay, so it was a php5-fpm issue [19:02:33] it was remembering OLD data [19:02:42] really odd o.O [19:02:45] working now [20:24:23] Hi guys, I have create a user group "special_editors" and I'd like them to be able to edit Templates. But its not working. is it possible? [20:24:41] $wgGroupPermissions['special_editors']['template-edit'] = true; [20:24:46] probably wrong [20:28:15] There's no right for it [20:28:45] the person has to be admin to edit template? [20:29:09] templates aren't any different from any other article [20:29:55] in terms of rights, i think it is [20:30:12] no [20:30:35] You can set namespace protections [20:30:36] you may be able to have restrictions on namespaces [20:31:07] anyone can create an article and transclude it into another [20:31:27] Reedy, thanks. Can I set edit tight to a usergroup? [20:31:32] for templates? [20:31:49] Yes [20:31:56] Well, a permission [20:32:00] !wg NamespaceProtection [20:32:01] https://www.mediawiki.org/wiki/Manual:%24wgNamespaceProtection [20:32:10] i'm there right now [20:32:40] ok, let me see [20:33:18] enwiki does this with the template namespace [20:33:33] or was it only certain templates [20:33:33] hm [20:34:49] Reedy, totally right answer! Thanks [20:49:05] !wg Reedy [20:49:05] https://www.mediawiki.org/wiki/Manual:%24wgReedy [20:49:17] I am disappointed [21:35:29] Where can I configure the email address that I am sending from ? [21:36:19] There's no option in the config [21:36:34] Because the username field is not actually the emailadress I'm sending from [21:37:20] Im not positive but that might be the same as $wgEmergencyContact [21:37:29] at least that's where I get my emails from [21:38:14] I'm trying to configure this: [21:38:14] https://www.mediawiki.org/wiki/Manual:$wgSMTP [21:44:01] CrystalMare, I'm using the built in PHP mail. Looks like you could use your server name and domain for $wgSMTP or try the workaround down the page: https://www.mediawiki.org/wiki/Manual:$wgSMTP#Error_sending_mail:_Unknown_error_in_PHP.27s_mail.28.29_function_Mediawiki [21:45:09] drvela I'm not installing packages on the server. [21:45:52] It should be possible to send mail with SMTP without going through that hastle [21:47:58] I dont think it will work without the PEAR dependencies. you could try setting $wgSMTP = false and see how the PHP mail works for you otherwise [21:48:13] Isn't phpmail system wide ? [21:50:15] How difficult is it to just configure 'simple' smtp on this?? [21:50:28] I've done my share of php, and I've never had this problem. [21:52:04] In the php.ini file you can configure it and choose the mail server [21:53:35] I believe you can use an external mail service like Google for it [21:53:45] I dont use google [21:53:49] I use mandrillapp [21:57:26] Not sure what OS youre on but maybe this will help. Im not familiar with mandrillapp myself: http://slavi.ca/programming/configure-php-mails-function-windows-mandrill/ [22:12:39] Does anyone know of an extension which converts directly from wiki to CHM? [22:19:02] jdlrobson: i replied at https://en.wikipedia.org/wiki/MediaWiki_talk:Gadget-switcher.js [22:19:08] thanks jackmcbarn [22:20:20] jackmcbarn: i see it now yup i didnt realise that's what it did- that said do you know why it's top loading CSS given they are just radio buttons? [22:20:31] i wasn't aware it was top loading any css [22:20:33] * jackmcbarn looks [22:20:52] i can't see any css it's loading anywhere at all. where do you see it at? [22:21:30] yeh that's what legoktm was suggesting [22:21:37] i suspect there's some kind of bug in the stack.. [22:24:27] nihonjoe: you mean the Microsoft help format? I don't think so... [22:24:48] legoktm: Yes. [22:24:49] nihonjoe: oh, http://www.gossamer-threads.com/lists/wiki/mediawiki/81773 looks interesting [22:25:45] Legoktm: Though that is going the wrong way. I'm looking for something which can take wiki pages and turn them into a CHM file. [22:25:55] I found plenty which go the other way. :) [22:26:06] oh, whoops [22:26:43] https://sourceforge.net/projects/chmprocessor/ looks like it goes from HTML -> chm [22:40:51] That looks like it might be promising, though it hasn't been updated for a year. [22:40:57] (almost) [22:46:34] jdlrobson: that bug would then be in ResourceLoader or Extension:Gadgets and not in that gadget, right? [22:46:45] also, are you okay with me posting this conversation on that talk page? [22:46:57] jackmcbarn: maybe i'm not too familiar with the gadgets ecoystem [22:47:05] but yes quote me on anything you want in this conversation :) [22:58:19] are you guys aware of this problem with loudflare? [22:58:20] https://phabricator.wikimedia.org/T64356 [22:58:24] clouflare [23:01:07] Just disable caching of non-image pages in cloudflare... [23:02:54] i actually wanted to cache pages [23:03:01] i'll give the reason [23:03:33] Use varnish or squid then :) [23:03:50] my website have about 6k visitors in a bad day. 8k in a normal day. 100k/day in carnival. [23:04:03] Or write your own middle layer to convert htcp to cloudflare purges [23:04:07] or use File cache [23:04:25] a server to handle that in brazil would cost me like 1000 dollars/month [23:04:42] so i host on hetzner, thats a good host, but have hight ping [23:04:42] (Or I guess convince someone to fix that bug, which is what you're trying to do :) [23:05:37] well. i think i have a good issue here... lol [23:06:12] Sorry, the best I can say, is that nobody has fixed that bug, and it doesn't look likely anyone will in the near future due to very little interest in it (but that can always change) [23:06:25] but, of course, u guys maybe could give me an idea f what to do [23:13:26] Oh of course, if you want to fix the bug - Basically there's 2 ways: You can abuse the TitleSquidURLs & LocalFilePurgeThumbnails hooks to run extra code at that point which calls the cloudflare api to purge content at that url [23:15:35] Or more properly, add a hook to CdnCacheUpdate::purge so that code can be run from there [23:21:13] i have one question, and it's a granularity of permissions question... [23:21:52] is it possible to have a permission written in which a group can set a user to have membership in one specific group but not edit other group permissions [23:30:21] teward: https://www.mediawiki.org/wiki/Manual:$wgAddGroups https://www.mediawiki.org/wiki/Manual:$wgRemoveGroups