[06:20:58] ? [06:21:28] help on mw 19.2 looking for yaron in semantic mediawiki [06:23:29] thank you just wanted a question about semantic forms [08:36:57] mediawiki 1.24.1, ldap auth plugin 2.0a. user creation/login fails with : PHP Fatal error: Call to a member function toString() on a non-object in includes/User.php on line 3493 [08:37:07] anybody with an idea why so ? [10:32:16] ok, ldap plugin upgrade helped :) [13:08:05] Was the default provider for MW Vagrant changed to Docker? [15:57:40] some api guru? how can I get information about revision when I know it's ID only? [15:57:46] this doesn't work: https://en.wikipedia.org/w/api.php?action=query&prop=revisions&rvstartid=647409524&rvprop=ids|flags|timestamp|user|contentmodel|comment|size&rvlimit=1&rvdiffto=prev&rawcontinue=1&format=xml [15:59:33] petan: yes [15:59:43] MatmaRex: yes? :P [15:59:52] it wasn't yes / no question, but how :D [16:00:06] petan: use revids instead of rvstartid [16:00:07] &revids=123456 [16:00:41] why I don't see it at https://www.mediawiki.org/wiki/API:Properties#revisions_.2F_rv [16:00:49] (and remove rvlimit=1 then, since it's incompatible apparently) [16:00:58] petan: it's a "generic" parameter, like 'titles' [16:01:04] titles is there [16:01:08] https://en.wikipedia.org/w/api.php?action=help&modules=query [16:01:09] but revids is not D: [16:01:10] it's on there [16:01:14] well, then it's a documentation bug [16:01:20] EDITTHEWIKI [16:01:21] use https://en.wikipedia.org/wiki/Special:ApiSandbox and not the on-wiki docs, really [16:01:30] / https://en.wikipedia.org/w/api.php [16:01:37] unless you *want* outdated and incorrect information [16:01:43] ;) [16:02:09] Speaking of the API sandbox: It doesn't seem to be possible to pass an empty 'continue' parameter, so the new style of continuations can't be used in it. [16:02:38] I am one of these few people who actually read the docs... and who suffer [16:03:14] I use the docs extensively in my work with the API. [16:03:54] I do find it lacking sometimes. Regarding CAPTCHAs for example. [16:04:05] I believe WMF was or did dire a tech writer to specfically work on the API docs [16:05:40] Also, it's a bit annoying that all the example API responses are in XML instead of JSON. Hopefully that will be changed once the XML API is deprecated. [16:06:52] That's likely a long way away [16:07:17] Though, considering the default format is jsonfm [16:07:28] You could argue the example urls should be updated if they define it explicitly [16:08:17] Actually [16:08:21] I love XML over JSON <3 [16:08:24] cgt: what are you talking about? [16:08:29] Oh [16:08:30] in the docs? [16:08:31] duh [16:08:32] at least from XML I don't get headaches [16:08:36] Yeah, those should be updated [16:08:41] file a task in phabricator [16:13:00] cgt: https://phabricator.wikimedia.org/T89660 [16:16:51] cool [16:17:30] Are contributions to fix the bug welcome? Even if I don't fix all the examples? [16:20:14] cgt: Please do! :) [16:20:40] Feel free to note on the task that you're doing some. It's unlikely that anyone is going to just take it on immediately [16:27:49] Great, I will do some work on it this week then. [16:29:24] signed up on phabricator and added a note [18:16:40] Hi. [18:17:03] Is it possible to use API export=1 to get all revisions like Special:Export does? [18:17:10] or is it latest-only? [18:26:13] anomie|holiday: mind taking a look at https://gerrit.wikimedia.org/r/#/c/188787/ ? It's very simple. [18:41:54] aharoni: Go for it. I'm more interested in T89386, which I hope to get to sometime soonish. [19:11:06] anomie|holiday: I can't self-merge :) [20:39:13] i am formatting my own wiki [20:40:01] when i add a div box on the Main_Page suddenly a Content box which lists all the
s as content appears [20:40:13] and it doesnt show anywhere in the formatting.. HM [20:41:54] table of contents suddenly appears in the first div of the main page [20:42:11] and i found the answer http://www.mediawiki.org/wiki/Manual:Table_of_contents [20:45:38] internetman: Yeah, that's automatic but configurable [20:45:44] You can configure NOTOC by default [20:45:57] internetman: You should probably just stick __NOTOC__ at the top of the main page, it usually doesn't need one [20:46:34] marktraceur, ive already did. worked wonders :) [20:46:50] Great! [20:54:15] Is there a REST library built-in to MediaWiki that extensions can take advantage of? [20:54:43] To do what? [20:54:55] make HTTP requests, pretty much [20:55:02] maybe parse JSON [20:55:49] GPHemsley: Yes, mw.Api will do most of that for you [20:56:04] GPHemsley: If you're making requests to a not-MediaWiki API, you can use jQuery.ajax as usual [20:56:10] MW has code for doing http requests from php too [20:56:22] And to parse json [20:56:28] Oh, right, it depends on whether this is frontend or backend I suppose [20:56:32] Reedy: Yeah, PHP is what I'm looking for. [20:56:38] all of ends [20:56:48] middle-end (Varnish?) [20:57:56] You can do effectively a Http::get( 'http://foo.bar.ext/page.ext' ); [20:58:11] OK, cool. Is Http autoloaded? [20:58:31] And then FormatJson::parse() [20:58:37] Yeah, everything should be [20:58:55] Where is the code for that? [20:59:06] ah, HttpFunctions.php [20:59:17] yeah, and FormatJson.php [20:59:32] excellent, thank you [21:15:43] Doesn't look like FormatJson is autoloaded :/ [21:16:25] Hi everyone. I have some problems with updating an image file. I experienced data loss a while ago, so some revisions of an image are missing on disk. Trying to upload a new version or deleting an old one always yields "[95c2ba5c] 2015-02-16 21:15:06: Fatal exception of type MWException" or similar. What can I do to remedy this? [21:16:25] Really? :/ [21:16:29] What version of MW? [21:16:34] !debug | Saga_Musix [21:16:34] Saga_Musix: 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 [21:16:55] oh, hmm, looks like it's new to 1.24 [21:17:02] I'm working against the 1.23 codebase [21:17:28] Maybe renamed... But I don't think it's completely new [21:17:43] constants in it are marked @since 1.22 :P [21:18:27] https://github.com/wikimedia/mediawiki/blob/REL1_23/includes/json/FormatJson.php [21:18:43] https://github.com/wikimedia/mediawiki/blob/REL1_23/includes/AutoLoader.php#L678 [21:18:56] No parse [21:19:09] that's my real problem [21:19:18] ah [21:19:42] decode probably will work fine [21:19:56] just some weird edge cases not caught etc [21:22:02] Reedy: Thanks. Apparently I forgot to chown the lockdir when restoring my files... [21:22:15] heh :) [21:27:01] Reedy: Is there a way to specify HTTP headers with the Http class? [21:27:44] There's a setHeader() function [21:28:23] ah, nice [21:28:28] seems obvious enough [21:28:59] You can't use the Http::get() shortcut, but it shouldn't be too much more code to use Http::factory() etc [21:32:17] java [21:39:11] is their a extension on mediawiki for discourse [21:40:24] discourse [21:40:26] ffs [21:40:34] !discourse [21:40:37] ?discourse [21:40:42] Reedy: yes [21:40:43] satdav: Use google [21:40:47] or a different search engine