[00:00:18] I'm stuck on the recursive calls part with a bug I can't seem to figure out, but after this there's just caching left, and then we can do the first major release [00:07:41] recursive calls sounds not very nice, I just found a bad recursion issue leading to a very nice stack overflow (but it's in some JavaScript/C++ software I work on, not MediaWiki) [00:11:06] saper, haha, yeah. I'm working on an Android project though, not really on MW software. It's for the Upload to Commons app that lets people upload Commons pics from their phone [00:11:39] I have to head off for a bit though, nice talking to you :) [00:12:34] https://www.mediawiki.org/wiki/File:MediaWiki-Manual_bookstyle-transparent.png omg [00:12:40] an unfree file [00:19:42] Missing the ten page license? [00:21:11] well mediawiki.org does not seem to have an EDP [00:21:34] so the file violates the Licensing policy [01:02:08] Hello. I'm looking at https://www.mediawiki.org/wiki/API:Query#Continuing_queries and wondering if there is an example of how to use continue with JavaScript/jQuery. [01:03:49] !commands [01:03:49] I don't know everything about everything. I am mostly for lazy experienced users to echo quick answers to very common mediawiki questions. Please don't randomly experiment with me for help. Everything I know is at http://bots.wmflabs.org/~wm-bot/db/%23mediawiki.htm and you can visit #mwbot which shares the same db (read only) [01:06:43] What I have so far is http://pastebin.com/C3VTG7eQ but I'm not sure how to loop through with continue until it runs out. Is there an example of this kind of thing on mediawiki.org someplace? [01:07:54] And yes, that's a copy paste error on leuser: mw.config.get( 'wgUserName' ), I've already fixed. [01:17:17] http://pastebin.com/pcfgvm6F is the revised version. How do I make it continue? [01:17:29] in JavaScript/jQuery. [01:18:40] I tried wrapping it with a while ( nextSet != 'stop' ) { ... } but I'm having async issues I don't know how to deal with. [01:37:13] Slow in here tonight I guess. [01:38:49] OIK: many devs are travelling today to go to the dev summit [01:39:08] addshore: Can you help me figure out how to make http://pastebin.com/pcfgvm6F work? I want to count all of my logged move actions. Not sure how to make the api continue work on MW1.23 in JavaScript. Thanks. [01:48:24] Can anyone help me with https://www.mediawiki.org/wiki/Project:Support_desk/Sections/Misc I've been waiting almost two months on? [01:52:57] Please? [02:03:31] OIK_: aulimit has a max of 500 [02:03:56] OIK_: can you do this as a SQL query instead? [02:04:01] Yes, wmat, so how do I get more than 500? [02:05:28] OIK_: I'm not sure if this will work, but have you tried giving yourself the 'bot' permission and trying again? [02:05:36] OIK_: bots aulimit is 5000 [02:06:12] Yes, wmat, so how do I get more than 500? That get's me the first 500, how do I tell it to run again from query-continue until there is no query=continue? Is there an example? [02:12:20] perhaps try setting aulimit to 5000 [02:18:29] OIK: or set apihighlimits for your account to 5000 [02:23:18] wmat: not sure if I can. I'm not the host, only a sysop (and no-one currently has apihighlimits). Sending an email to the host to get that added for sysop and bot. How would I do it otherwise? [02:24:02] OIK: can you edit LocalSettings.php? [02:24:09] OIK: $wgGroupPermissions['sysop']['apihighlimits'] = true; [02:24:46] not directly. I need to put in a pull request on GitHub for those kinds of changes and send the guy hosting the wiki an email... Sometimes he get's back quickly, sometimes it takes a year. [02:25:37] in that case, I'm not sure what else you can do other than a database query [02:25:57] but i'm guessing you don't my access for that [02:28:36] I don't. [02:30:06] fetch 500 at a time, and do continuation queries [02:30:19] Skizzerz: How do i do continuation queries? [02:31:05] easiest way is to use a pre-made API client that has it all coded for you [02:31:09] I can pull the first 500 and get the query-continue, but I'm not sure how to loop through until there are no more continues. [02:31:14] link? [02:31:36] otherwise, https://www.mediawiki.org/wiki/API:Query#Continuing_queries [02:32:08] I saw that, but it only has a python example. I have no idea to turn that into a .js example to get it to do what I want. [02:32:15] and https://www.mediawiki.org/wiki/API:Client_code for premade clients [02:32:39] if you're running inside mediawiki itself, it has a built-in js library to make API requests [02:32:52] (e.g. as a gadget or in Common.js or your user js) [02:33:40] The code I am working on may eventually be a gadget, but I'm just trying to get data from console testing at the moment. [02:34:49] And I'm doing it in the console on Special:BlankPage for now. [02:35:37] yeah, so use the builtin mw.Api [02:35:44] there's a link to documentation on the second link I gave [02:35:54] then use the first link I gave for an idea on how to do continuation queries [02:37:07] try it out a bit to see how the output looks/changes [02:37:13] and if you're still confused pop back here [02:37:50] * Skizzerz isn't an API expert so isn't all that familiar with it [05:54:52] what's going on wverybody ? [05:56:26] Hi Alipediaa. [06:47:31] Idea's? https://www.mediawiki.org/wiki/Topic:Svtjl8x46n92y72a [07:02:15] Typically plurals don't use an apostrophe. [07:02:30] Apostrophes are reserved for possessives. [07:02:33] And contractions! [07:04:39] Reception|away: How are you running/executing CreateWiki? [07:05:26] You probably have two options: modify the CreateWiki extension or modify a wrapper script to do what you want after running CreateWiki. [07:05:38] Depends whether you like to code in PHP, I suppose. [07:07:02] I guess using a PHP hook would be simplest. [07:07:22] It looks like the extension is already calling like createMainPage, so keeping the logic in PHP probably makes the most sense. [07:07:53] Do you want to create only the founder's talk page? Or any new user? [07:08:21] You could be making a welcome extension, in which case, that already exists as an extension. [07:36:21] Leah : Not any new user, only founders, saying its {{subst:Wiki created|wiki=https://NAMEOFWIKIWHICHDIFFERS.miraheze.org}} [07:36:39] So how would I do that? If it's a hook could you please give me one (im not too good with this stuff) [13:48:00] morning [14:42:16] hi. is mediawiki 1.26.2 ready for use with php7? [14:44:28] there are still a few issues, but you can certainly try it and see if there is anything that affects you [14:47:13] ford_p: It will crash immediately due to an issue with the internal exception handler. It is fixed in the 1.27 alpha branch. [14:48:05] heh, i didn't realize it had any issues quite that serious [14:53:40] I love finding API bugs..... [15:06:14] Trela: thank you, i will wait for 1.27 then. is there some schedule for that release or is it "done, when its done"? [15:55:15] Hey guys. How's the mediawiki support for php7? [15:56:20] 14:44 < RobotsOnDrugs> there are still a few issues, but you can certainly try it and see if there is anything that affects you [15:56:23] 14:47 < Trela> ford_p: It will crash immediately due to an issue with the internal exception handler. It is fixed in the 1.27 alpha branch. [15:56:32] from few minutes ago [15:56:47] Oh, nice. [15:57:15] !php7 [15:57:15] https://www.digitalocean.com/company/blog/getting-ready-for-php-7/get_ready-03a8c363.jpg [15:57:37] I'm running arch, which recently updated to php7, so guess I have to move to alpha version of mediawiki then. [15:59:46] thanks [16:00:13] greetings, I'm observing a funny behaviour I've been trying to fiugre out for the last two days, convert returns errors unable to find file in paths if they have non latin/ascii characters :/ ... if they are letters the error shows underscores instead, if they are accents they are simply skipped ... any idea what could cause such a behaviour ? [16:01:09] Uwe: window? [16:01:17] *windows [16:04:25] bawolff, nop, Debian jessie [16:05:32] is LANG/LC_CTYPE/LC_ALL set to something in the environment uwe ? [16:24:07] saper, https://textb.org/t/s0ua33766p/ [16:31:30] and what does 'locale: Cannot set LC_ALL to default locale: No such file or directory' mean? [16:36:38] saper, i've added en_ZA.UTF-8 and the error disappeared from locale output , I've restarted apache, but still the same issue [16:37:07] and LC_ALL is still empty [16:38:41] are the filenames in question utf-8? [16:40:09] well, yes : https://historyworkshopsegypt.net/wiki/%D9%85%D9%84%D9%81:%D9%90Ahaly_9_Jan_2002.jpeg [16:41:58] saper, you see the first character is an arabic KASRA character [16:43:29] it is also stored this way in the fs, ls | hexdump -C shows: d9 90 41 68 61 6c 79 , first character is this kasra, in two bytes [16:44:53] what happens if you don't set any LANG or LC* variables? just all empty or set to "C"? [16:45:02] do you set locale in the LocalSettings.php? [16:48:10] saper, thank you :D setting $wgShellLocale = "en_US.utf8"; fixed it magically [16:50:10] another happy customer ^G [19:33:58] Heya, anyone got any advice for how to update PHP? (I need it updated to update MW.) I can't seem to find anything much on the web about it. We have a VPS with nginx [19:36:46] What is? [19:36:50] OS [19:36:51] Ffs [19:36:55] And what version? [19:46:45] Debian 6.0 [19:46:54] @Reedy sorry [19:47:26] So you want to upgrade to Jessie I guess [19:49:31] wait do I need to update debian to update PHP? (is Jessie debian?) [19:49:57] Generally, yes [19:50:18] * saper love the linux distribution model [19:50:19] FYI, Debian Squeeze (6.0) is only LTS until next month [19:50:25] loves [19:50:26] It's nearly 5 years old [19:51:54] oh right [19:52:09] Newer is always better. [19:56:16] So is that much more complicated than apt-get upgrade-ing? [19:56:35] It can be, if things break [19:56:48] But in debian, you change the sources, apt-get update, apt-get upgrade then apt-get dist-upgrade [19:57:32] https://www.debian.org/releases/wheezy/i386/release-notes/ch-upgrading.html [20:02:32] ah thanks [20:03:07] Backup first! [20:08:25] lcawte you might be interested in this [20:14:47] Once I have debian updated, what do I do then? Thanks for your help :) [20:16:41] Check things still work [20:16:51] PHP will be updated in the process, along with mysql, nginx etc [20:19:38] marktraceur: yeah but updating all at once [20:20:01] saper: Wat? [20:20:21] Oh, do you mean the general concept of package managers, which is not actually included in the Linux kernel, but in various distributions of GNU/Linux? [20:20:28] (and in different forms) [20:23:26] marktraceur: yeah, I don't like the notion that particular third-party software version (say apache, mysql) is bound to the "distribution version" [20:23:58] that's how I was stuck with php 5.2 on Suse Enterprise recently [20:24:22] You can use ppa and such [20:24:26] And then get to dependancy hell [20:24:28] And turtles [20:25:20] I like turtles. [20:27:45] yeah, had to resort to the equivalent of ppa [20:28:06] was okay for hhvm, since its many build dependencies are pretty self-contained