[00:05:55] hey guys, any idea why when i tried to upload images to mediawiki [00:05:59] it gives me the this error (Could not create directory "mwstore://local-backend/local-public/4/43") [00:20:11] four: doid you try https://www.mediawiki.org/wiki/Manual:Configuring_file_uploads [00:26:48] u mean [00:27:00] this ($wgEnableUploads = true; # Enable uploads) on my localsettings.php file? [00:28:23] did you mean, do i have this code ($wgEnableUploads = true; #Enable uploads) on my localsettings.php file? [05:27:45] hallo [05:28:27] when I use API query prop=categories, is it possible to ask for names with canonical namespace? [05:29:00] so for example, if I'm running it at the Spanish Wikipedia, it will have "Category:" instead of "Categoría:"? [05:31:06] I don't think so [05:36:52] legoktm: ok... https://phabricator.wikimedia.org/T106644 fwiw [05:39:12] aharoni: can't you just strip the namespace and hardcode "Category"? [05:39:51] I can, with something like /^.+?:/, but mw.Title would be nicer. [05:40:07] uh, you don't even need a regex [05:40:35] "Categoría:FooBar".split(':', 1)[1] that's python but you get the idea [05:41:54] actually, that's JS too :) [05:42:12] >>> "Category:" + "Categoría:FooBar".split(':', 1)[1] [05:42:13] legoktm: (string) 'Category:undefined' [05:42:16] :| [05:42:42] >>> "Categoría:FooBar".split(':', 1) [05:42:43] legoktm: (object) ['Categoría'] [05:45:55] >>> "Categoría:FooBar".split(':').splice(0,1,'Category').join(':') [05:45:56] legoktm: (string) 'Categoría' [05:46:45] >>> var sp = "Categoría:FooBar".split(':'); sp.splice(0,1,'Category'); sp.join(':') [05:46:45] legoktm: (string) 'Category:FooBar' [05:46:50] aharoni: ^ [05:47:51] yeah, I get it [05:48:13] thanks [05:52:21] :) [06:00:32] hi [06:00:50] can I include special:allpages with parameters? [06:08:38] Juandev: Yes {{Special:Allpages|param1=1|param2=bla}} [06:08:51] * Juandev looks [06:10:26] glaisher: and what the parameters stays for? [06:10:45] Sorry, I don't understand your question. [06:12:08] so hi I translate this url: Speciální%3AVšechny+stránky&from=Juandev%2FProblémy%2F&to=&namespace=2 [06:12:44] and lets say to, should be the last subpage of user:Juandev/Problémy [06:12:59] s/hi/how [06:18:18] I see, param1 is e.g. from, so I just copy from=foo and it works [06:18:21] Juandev: {{Special:Allpages|from=Juandev/Problémy|ns=2}} [06:18:37] Glaisher: thx, you gave me new knowledge [06:18:39] :-) [06:19:17] Juandev: You can also do this for all includable special pages. [06:19:34] yes thats what I thougt [06:20:50] is there any character, which goes always on the end of the alphabet. I mean, that I may create something like User:Juandev/Problemy/Zzzzzz which will be just an empty page and serve as "to" param [06:23:29] I can see that our czech alphabet is not in normal alphabetical order in the list of allpages and it goes after English alphabet. So letter "č" which would normaly stay after"c" stayes after "z" and "á" [06:23:53] surprisingly after Czech alphabet goes Russian cyrilic [06:27:28] why would you want to= last character? [06:27:31] Does that work? [06:27:36] I mean, is there no limit? [06:27:37] umm seemingly I dont need to create an end page [06:27:51] Glaisher: well I want to limit [06:28:04] Juandev: then you can use limit parameter [06:28:50] I am looking for the way how to list within the page user:Juandev/Problemy/Foo, all Foo pages, but I found {{#titleparts:}} wont be helpfull, so I came to special:allpages [06:29:29] Why not Special:PrefixIndex? [06:30:31] I meant, there might be pages user:Juandev/Problemy/Foo1/Bar1, ser:Juandev/Problemy/Foo2/Bar2 and I wanted to list "Foo pages" on user:Juandev/Problemy to be exact [06:31:30] gee, thats better:-) [06:32:30] much better, thx [10:22:31] hmm, https://phabricator.wikimedia.org/T106359 had a much better outcome then I expected [10:26:02] i moved main page to B [10:26:09] is it possible to remove the title B? (http://postimg.org/image/onl5ouctd/) [10:45:57] !extension notitle [10:45:57] MediaWiki has been built so it can easily be customized by adding extensions. This is usually a simple process. See http://www.mediawiki.org/wiki/Manual:Extensions for instructions to install extensions, as well as for writing them. See http://www.mediawiki.org/wiki/Extension_Matrix for an overview of known extensions. [10:46:25] https://www.mediawiki.org/wiki/Manual:FAQ#How_do_I_hide_the_main_page_title.3F [10:53:25] !e notitle [10:53:25] https://www.mediawiki.org/wiki/Extension:notitle [10:58:20] tja [13:17:06] http://wikipediafs.sourceforge.net/ [13:17:07] lol [13:19:42] RobotsOnDrugs: Pretty neat stuff! [13:20:26] I wonder how well it does with the current API. [13:37:47] OK, this is actually super cool [13:52:10] Oh, my goodness. It's fetching the edit page, not the API? [14:38:22] Where are we supposed to ask about issues with Phabricator? [14:40:43] I just updated to 1.25.1, and SimpleAntiSpam is now part of the core product. Do I need to remove the module from /modules [14:43:42] trelane` you mean extension dir, or? [14:43:53] Erkan_Yilmaz, correct. [14:44:14] well, if it is in core, I assume it will be in the extensions dir already [14:44:22] thus removing it would remove the extension [14:44:25] aah [14:44:29] I hadn't thought about that [14:44:34] I should then check the dates in that folder [14:44:50] I am not sure how you updated [14:44:55] hasn't been updated since 2013, so it wasn't in the mediawiki tarball [14:45:05] Yaron: #wikimedia-devtools [14:46:38] Reedy: thanks. [14:55:10] * varnent sets up popcorn stand [15:03:00] varnent: Where's the show? :) [15:05:16] marktraceur: it’s wikiland - there’s a show somewhere - it’s just a question of finding it ;) [15:05:48] varnent: Well, aharoni just joined -ops instead of -operations, but that appears to be over... [15:06:40] *sigh* - see you can miss it just by being in the wrong (or right I suppose..) rooms [15:50:47] Hi [15:52:56] Hello [15:54:29] I have some questions [15:55:09] !ask | NR_ [15:55:09] NR_: Please feel free to ask your question: if anybody who knows the answer is around, they will surely reply. Don't ask for help or for attention before actually asking your question, that's just a waste of time – both yours and everybody else's. :) [15:56:00] actually i need to check what is session time out for wiki page [15:56:38] got it robertson this is different chat than i used to do before :) [15:57:51] NR_: I think timeout length is a PHP, or Apache, setting. [15:58:02] To clarify my question more better, How long is my session is active. Recently i left my page in edit page and when i tried to save it. I lost the changes and got session log error [15:58:27] so would like to know how much is this time and how to change it or pros and cons of doing it [15:58:27] where to check it [16:05:27] So I have used mediawiki for years but just did a major upgrade (1.15.5 => 1.25.1) and started trying to write my own extenstion for the first time. I want to have a second copy of the "Save page" "Show preview" "Show changes" buttons just above the textarea box. I have found the hoook "EditPage::showEditForm:fields" that allows me to place some testing text where I want the buttons. Is there an easy way to call a Mediawiki function? In [16:07:19] In my old version I modified the mediawiki source code to do this but I'm hoping to avoid that this time. [16:09:01] robertson: have you read the documentation on writing an extension? [16:09:40] anybody can help me? [16:10:10] Yaron: a litle, I have already successfull written an exension to add a button to the edit toolbar but I followed an example for that. [16:10:40] Oh, okay. Isn't that exactly the thing you were asking about? [16:14:39] Yaron: no, I want the Save page set to be next to or just above the toolbar [16:18:07] The example I followed used public functions from the OutPage class so there were no additional classes to load to gain access to addModules [16:19:37] for my testing text I'm using addHtml from OutPage but I don't know how to call a function that's not in OutPage. [16:24:19] Guys .. any idea on where to find session timeout setting for wiki [16:26:14] robertson: oh, I see. Is there a specific other function you want to call? [16:29:04] when a the hook I mentioned is run I want to execute getEditButtons() from includes/EditPage.php and wrap it in a proper span class to float it to the right. [16:32:01] NR_: I don't think there's a config variable for that [16:33:04] Hi Glaisher.. what is the default timeout for sesssion? [16:33:15] I've no idea [16:33:36] robertson: can you call EditPage::getEditButtons()? [16:34:27] my first thought was to get the html returned by the getEditButtons() function and use addElement to wrap it in my own div tag. [16:34:36] Yaron: I think I tried that but let me try again. [16:41:19] heh http://stackoverflow.com/help/badges/225/tenacious?userid=1333493 [17:12:38] Yaron: Thanks! When I tried before I had the syntax and arguments incorrect. With a bit of trial and error it is now working the way I'd hoped. I can finally go to lunch! [17:35:28] robertson: great! [19:30:03] Is there any known 'bug' that can be used to upload php backdor to my wiki? [19:30:56] wiki ver 1.25.1 [19:30:58] if you update to latest mw + its requirements: you lower the risk [19:31:44] wicktt: no, unless you enable the upload of PHP files yourself. file upload is disabled entirely by default, and the allowed file types are whitelisted to only allow some image types, not code. [19:33:58] this file is in the /w/ dir, not upload dir. [19:34:47] So, it cant be wiki 'issue', right? [19:41:52] wicktt: you can look at the file modification time to check where it was put there. If it's recent you may have access to access_log of the server to monitor the activity of the server and maybe see what action allowed to create that file there [19:45:12] Ok, this file was created several weeks ago. 27 seconds before it was created I was using FTP file upload to my wiki. [19:45:13] So for me it looks like some kind of MITM, I think. [19:46:23] that's a possibility, yes [20:25:20] should Hooks::run() be used now instead of wfRunHooks() ? [20:27:21] (i realize wfRunHooks is just a wrapper that does the same thing) [20:28:36] Yes, I think so [20:35:12] varnent: Still have some popcorn left? [20:35:36] marktraceur: always [20:35:50] well there was one time... [21:33:21] help with permissions? I log in as an ldap authenticated user, try to created a page, and get: you do not have permission to create this page. The namespace (page: IT:createtest) is set up with $wgNamespacePermissionLockdown[NS_IT]['createpage'] = array('user'); and 'edit', 'read'... but can only edit, can't create. [21:34:17] Well actually no, I can only read, not edit. [21:34:50] Hi [21:39:12] Hi Celelibi [21:41:14] How is the support of mobile devices? [21:42:19] Google sent me an e-mail complaining about rendering on mobile devices. [21:59:42] Is there a mediawiki page that will show User::getEffectiveGroups() for the current user? [21:59:43] - [22:00:59] ah, preferences.. [22:15:29] oh fucking hell [22:15:37] Namespaces aren't being recognized at all. [22:18:25] fixed.. just.. ugh. name space name, quoted name, isn't the same as the defined variable.