[00:07:42] Hello [00:08:04] Is there anyone here, it seems empty [00:08:28] anyway, I need some help, guidance on Wikipedia API [00:09:00] i think maybe you need a wikipedia channel then? (mediawiki is the underlying software, but not Wikipedia) [00:10:05] Is this the right place for Wikipedia API - https://www.mediawiki.org/wiki/API:Main_page ? [00:12:24] I would really appreciate some guidance on this [00:16:03] Wikipedia doesn't have it's own custom API, it has the MediaWiki API [00:16:19] and RB etc. [02:57:22] Hallo, looking around for a method of keeping two mediawiki sites in sync as in mirrored...possible? [06:50:17] I tried copying /var/www/wiki onto a new server but I am getting "Sorry! This site is experiencing technical difficulties." "(Cannot access the database)" [06:50:38] The DB is sqlite and in the data folder [06:50:43] The new server does not have permissions on the database server to access it? [06:50:52] (Or the folder.) [06:51:08] Its all owned by www-data [06:51:47] 775 or 770? [06:52:26] -rw-r--r-- 1 www-data www-data [06:53:08] Might need to be -rwxrwxr-- [06:53:15] Fixed it [06:53:26] Cool. :D [06:53:29] Needed to install php-sqlite3 [06:53:42] Oh, yeah that would do it. [10:53:04] I just moved my wiki onto a new server buy coping /var/www/wiki over but when I create a new account I get " Fatal exception of type "MWException"" [10:53:13] I think this might have to do with email [10:56:46] Qwertie: have a look at the PHP error log [10:57:32] saper: Where can I find that on ubuntu? [11:02:56] Depends on your webserver [11:03:43] apache2 [11:28:00] guys I am trying to use an external smtp server but I get the error "SMTP: SMTP server does not support authentication" [11:28:32] I think it is because my mailserver requires encryption before authentication, so it doesn't advertise the AUTH capability before STARTTLS [11:28:39] is there a way around this? [11:47:34] Qwertie: create a page with " I figured it out, I was missing php-openssl which wasn't obvious from the error message [11:52:52] Error message isn't a MW one I guess [11:52:55] Just wrapped by MW [12:12:12] Reedy: sure [12:28:45] Hi, I am truing to use the WIKIPEDIA API to parse some text: "https://en.wikipedia.org/w/api.php?action=parse&text=some_text&contentmodel=wikitext" [12:28:53] The problem is that when the text is too long [12:28:57] I have an error [12:29:21] I have read that I need to do a "POST REQUEST" [12:29:35] does some body know how to do this "POST REQUEST" [12:29:48] ? [12:49:26] ruthy_gg: you need to POST the request, rather than use a GET request https://en.wikipedia.org/wiki/POST_(HTTP) [12:49:42] what are you using to access the API with? [12:54:22] macaronei, thank you [12:54:30] I still have a small doubt [12:55:01] so I am using this type of query to obtain the links in the text "https://en.wikipedia.org/w/api.php?action=parse&text=some_text&contentmodel=wikitext&prop=links" [12:55:08] I still can not understand [12:55:20] Can you please tell me how to do this with POST? [12:55:57] I'm guessing you're only using your browser to access the API? So Chrome, Firefox, Internet Explorer, etc.? [12:56:03] yes [12:56:05] only that [12:56:14] If so, you can't really do POST requests like that [12:56:30] !ApiSandbox ? [12:56:38] https://en.wikipedia.org/wiki/Special:ApiSandbox [12:56:42] How to do it? [12:57:00] try using that link instead, I think it does POST requests [12:57:07] So ,can I do this automatically? [12:57:32] yes, that's what API is for [12:57:41] for example, if my text = [[Germanwings Flight 9525]] [12:57:53] how would you do the call? [12:58:13] https://en.wikipedia.org/wiki/Special:ApiSandbox/api.php?action=parse&text=some_text&contentmodel=wikitext&prop=links" [12:58:16] ? [12:59:44] where to put the text in the ApiSandbox? [13:00:12] In truth, I'm not sure. Any idea saper? [13:00:53] Ah, I see it. Select the parse action in the dropdown, then slick action=parse in the sidebar [13:01:07] click* [13:01:32] Maybe I am not explaining myself right [13:01:41] For example, gives me a result https://en.wikipedia.org/w/api.php?action=parse&text=[[Germanwings Flight 9525]]&contentmodel=wikitext&prop=links [13:02:04] if you copy and past in Chrome, it will give you the link in that text [13:02:24] The problem is when the text is too long [13:02:42] Could you translate this url : https://en.wikipedia.org/w/api.php?action=parse&text=[[Germanwings Flight 9525]]&contentmodel=wikitext&prop=links [14:02] if you copy and past in Chrome, it will give you the link in that text [13:03:02] Could you translate this url : https://en.wikipedia.org/w/api.php?action=parse&text=[[Germanwings Flight 9525]]&contentmodel=wikitext&prop=links to the method you point out [13:03:08] ? [13:03:53] https://en.wikipedia.org/wiki/Special:ApiSandbox#action=parse&format=json&text=%5B%5BGermanwings+Flight+9525%5D%5D&prop=links&contentmodel=wikitext [13:04:00] then click make request [13:05:35] Oh I see [13:05:45] it only works when I make a click [13:05:47] correct? [13:06:06] The thing is that I would like to do it for several texts [13:06:19] so I wanted to pass it on automatically without the need to make a click [13:06:58] in that case you'll need to look at using a bot/script of some description [13:08:01] I was doing that using GET [13:08:11] I think I will need to split the text then into smaller chunks [13:08:14] so that it works [13:08:21] thanks anyway [13:11:22] morning [14:03:10] o/ [14:15:51] hello all [14:16:08] I am trying to use api to edit wiki pages [14:16:23] in wikisource for tamil language [14:16:33] I can do all the basic edits [14:16:53] but this wikisource has some special form based buttons to mention the edit status [14:16:55] https://snag.gy/f3aTBn.jpg [14:17:01] see here for a screenshots [14:17:14] how to click those buttons via api ? [14:28:05] What do they say? [14:28:16] shrini: ?uselang=en and screenshot again? [14:28:21] The 2 checkboxes are minor and watch [14:29:00] Reedy: I suspect flaggedrevs [14:29:07] without looking [14:29:14] Colours? [14:29:26] (well looking at the screen, not the actual page) [14:29:53] Reedy: iirc, you could do quality settings on revisions etc, no idea what the UI was like [14:30:06] Me neither [14:32:29] Isn't that ProofreadPage p858snake|L_ ? [14:34:59] * Reedy logs in [14:35:00] * Reedy sets his ui to en-gb [14:35:41] [14:35:54] Krenair: Looks like it [14:36:42] shrini: Looks like it's not exposed [14:38:37] Filed as https://phabricator.wikimedia.org/T133781 [14:38:45] Can someone help me debug an api login problem? I keep getting WrongToken; both with action=login and action=query;meta=tokens methods. [14:39:39] G_SabinoMullane: Cookies? [14:41:08] Not sending/receiving any as far as I know. Let me poke around [14:43:13] Reedy: Krenair yes. the html source for the quality settings button is same as you entered [14:43:28] they are quality settings buttons [14:44:40] is there any way access them via api? [14:47:01] The color scheme is as https://www.mediawiki.org/wiki/Help:Extension:ProofreadPage/Page_quality_system [14:48:58] shrini: No, it's not exposed, unfortuantely [14:49:04] So I opened a phab request for it to be done [14:50:49] okey Reedy Thanks. [14:51:14] If no api is available for now, thinking on doing via browser automation [14:53:15] You *may* be able to fudge it, if you pass the parameters [15:04:39] Reedy: is it possible via api? [15:04:50] or you mean by browser automation ? [15:05:06] will be happy if it possible via api with parameters [17:24:48] hello - if i create an extension and I want some css classes to be created (i.e. for use in a special table that has a css class) can I do that easily? not by telling user to update css page but packaged along with the extension [20:39:01] i need to upgrade from 5.5 to 5.6 what is the best practice on doing so? [20:40:29] Is there possibly and automated tool out there somewhere? [20:40:46] upgrade what? PHP? [20:41:26] version of our wiki [20:41:56] I'm sorry but MediaWiki is still version 1.x, not 5.5 or 5.6 [20:42:43] Understood, and this may be were I've gotten confused. [20:43:00] When I went to check our version it is 1.23 [20:43:27] Latest 1.23 is 1.23.13 [20:43:31] Give me a sec and I will tell you where they found the 5.5... [20:43:43] 5.5 should be PHP [20:44:40] you can see that if you navigate to the page [[Special:Version]] [20:44:57] We are on 5.5.14, and I would like to take it to 5.6.16 [20:45:25] Does your OS provide it? [20:45:30] FWIW 5.6.20 is out [20:46:06] Its running on 2008r2 build [20:46:21] windows... [20:46:44] yes [20:46:54] So 5.6.20 then [20:47:03] so... maybe download the installer and just install over the old installation [20:47:22] It's not even an installer [20:47:24] extract the zip [20:47:41] really.... [20:47:51] that sounds easier than I'm thinking? [20:48:12] http://windows.php.net/downloads/releases/php-5.6.20-Win32-VC11-x86.zip [20:48:21] Unless, are you using XAMPP or somethign? [20:48:40] no...none of that, give me a sec.. [20:49:37] I have it...thanks a bunch [20:50:05] so if I understand simply unzip it to the proper location and it overwrites and we are good?? [20:50:21] yes, that should be it [20:51:00] Omg....I've been racking my brain for a day on this thing... [20:51:03] you may need to stop/restart IIS before oberwriting, in case old PHP binaries are in use and locked [20:51:07] one more question.. [20:51:17] IIS/Apache, whatever [20:51:26] Will that 5.6 have any issues with 1.23 that we are running [20:51:45] or does that need to be done as well.. [20:52:03] I'd recommend upgrading, but shouldn't be necessary [20:52:07] Backup your php dir before you replace it [20:52:28] yeah, specially php.ini [20:52:38] Understood on the back up thanks...and I will get the other piece scheduled. [20:53:11] Will you all be here for a moment, I will go to our DR side and take a peak.. [20:58:06] You all are a life saver I really really appreciate that.....but I've learned a lot [21:06:40] @Vulpix / I would need to stop the service and IIS as well right? [21:08:23] yes [21:08:48] otherwise some files may be unlocked and you won't be able to overwrite them [21:09:50] Understood thank you [23:34:09] ahoy [23:34:29] quick question: how do i do indents inside a table [23:34:48] | :: thing1 ... doesnt work