[07:53:07] Is there a way to make headings not show up in the TOC? [07:53:23] e.g. there's a section where someone's talking about headings, and they include one as an example - how can the example one be suppressed in the TOC? [10:47:39] hello. where can I edit [10:47:55] "You might want to create a documentation page for this Scribunto module." message on top of every scribuntu module page? [10:48:37] or better speaking I want to remove this message [11:01:49] hello all [11:02:20] I need help about a API for a script that I have write for edit a page [11:02:57] when I try to call /api.php?action=login I have this error: [11:03:41] result [11:03:41] : [11:03:42] "NeedToken" [11:03:42] token [11:03:42] : [11:03:43] "2f7df90e4fc5d23f9c1629ff4ae765415a5ddb17+\" [11:04:05] but this token is request from this call api.php?action=query&format=json&meta=tokens&type=login [11:04:11] and I pass it via POST [11:04:16] where I wrong? [11:14:44] NeedToken means the lgtoken parameter was not provided or no session was active (e.g. your cookie handling is broken). [11:20:44] but I don't have a session, I have a javascript code that try to connect and edit one page [11:21:25] the javascript has ajax call [11:21:37] it is necessary Oauth for this? [11:30:59] hello I have a problem with proofread page configuring In Speical:version of my localhost it shows me that proofread page is installed but when Iwent to my list of uploaded files and click on edit it nither show any image nor text but display a blank edit page also installed pdfhandler but I am not able to see the djvu files for transclusion can anyone help me out ? [11:37:12] rammanoj_, punctuation welcome when posting. For the blank page, see https://www.mediawiki.org/wiki/Manual:Errors_and_symptoms#You_see_a_Blank_Page [12:04:31] I tried even with it but not working still by adding the lines in localsettings.php [12:13:19] rammanoj_, what is "it"? [12:15:21] with the description there of handling errors in blankpage I couldn't see any compilation errors [13:51:11] please take my system by remote session and fix the issue as soon as possible [14:15:30] auvajs, I have verify [14:15:46] After the first request, I have a cookie [14:16:24] dialettiw30_wiki__session [14:16:29] rgh792bd01hohfjmnm9i33q9sngq4ov8 [14:16:58] but doesn't works, at second request I have [14:17:02] the same problem [14:23:16] the version is 1.30 [14:36:50] seen tonythomas01 [14:37:33] do you can help me with Mediawiki:API? [14:38:18] !ask | temuccio [14:38:18] temuccio: 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. :) [14:38:28] akash_, missing a ! in front of your command? :) [14:39:10] @andre__ Oh yeah. Thanks [14:39:20] seen tonythomas01 ! [14:39:32] seen tonythomas01! [14:40:25] !seen tonythomas01 [14:40:25] Did you mean @seen tonythomas01? [14:40:35] @wm-bot yeah [14:41:55] @wm-bot Oh no. I wish to see if the user tonythomas01 was online recently or not [14:51:28] akash_, use "@seen". @ not !. Sorry. [14:52:07] @andre__ Ohkay [14:52:32] no need for @ in front of names :) [14:52:40] @seen akash_ [14:52:40] andre__: akash_ is in here, right now [14:52:45] like this. [14:53:10] @seen tonythomas01 [14:53:11] akash_: I have never seen tonythomas01 [14:53:19] @seen tonythomas [14:53:19] andre__: Last time I saw tonythomas they were quitting the network with reason: Quit: Connection closed for inactivity N/A at 1/15/2018 11:39:36 AM (1d3h13m43s ago) [14:53:39] cool [14:54:30] I have a problem with mediawiki 1.30 API. I need to authenticate a BOT. I POST first request and I have the response NeedToken wih the token. I POST the second request with the token but doesn't works. I receive always need token. [14:55:01] what is the exact reply (copy and paste, not paraphrasing)? [14:55:10] I am working on https://phabricator.wikimedia.org/T58860 so I want to clone mediawiki 1.22 but I do not find any link to clone mediawiki1.22 can you please help me [14:55:24] Gopa_, no you do not want to clone MediaWiki 1.22. Why would you do that? [14:56:19] andre__, at the first request api.php?action=query&format=json&meta=tokens&type=login I receive this: {"warnings":{"main":{"*":"Subscribe to the mediawiki-api-announce mailing list at for notice of API deprecations and breaking changes."},"login":{"*":"Fetching a token via \"action=login\" is deprecated. Use \"action=query&meta=tokens&type=login\" instead."}},"login": [14:56:20] {"result":"NeedToken","token":"131307a8b3a0e0d8bb6fd9c0fe6592fa5a5e073c+\\"}} [14:56:46] at the second request I have the same response [14:57:18] andre__: I did not find those file in mediawiki 1.30 so I am trying to clone mediawiki1.22 [14:57:24] Gopa_, which exact file? [14:58:19] If I try with before action=query&meta=tokens&tyle=login and after with login, I have this response [14:58:37] andre__: http://brlcad.org/w/api.php as mentioned in T58860 [14:58:37] T58860: Improve documentation of API's "dir" parameter - https://phabricator.wikimedia.org/T58860 [14:58:45] Gopa_, that is not a file but an URL. [14:58:57] Gopa_, how is that even relevant for the problem? [14:59:20] Gopa_, it's about *any* MediaWiki installation. Not only the one that is/was hosted on some server called brlcad.org [14:59:32] {"warnings":{"main":{"*":"Subscribe to the mediawiki-api-announce mailing list at for notice of API deprecations and breaking changes."},"login":{"*":"Fetching a token via \"action=login\" is deprecated. Use \"action=query&meta=tokens&type=login\" instead."}},"login":{"result":"NeedToken","token":"131307a8b3a0e0d8bb6fd9c0fe6592fa5a5e073c+\\"}} [15:00:21] temuccio: we don't know what you send as the second request [15:01:24] andre__: Can you help me how to reproduce that api.php [15:01:54] Gopa_, "api.php" is a file. It is not "something to reproduce". What is your question? [15:01:59] Or what do you exactly want to do? [15:04:31] andre__: So how to find that documentation to work on [15:04:55] andre__: https://phabricator.wikimedia.org/T58860 [15:04:56] Gopa_: Have you cloned MediaWiki from git? [15:05:08] andre__:yes [15:05:13] Gopa: Then search in your cloned copy of MediaWiki for those strings? [15:05:27] Have you searched for "api-help-param-direction"? [15:06:00] and yes, http://brlcad.org/w/api.php shows what the output was for version 1.22. You can compare with that. But I don't see why you'd want to clone a 1.22 version. Because that's nothing to work on. [15:06:54] andre__, I need to login a boot with api [15:07:24] andre__: Ya I tried to find that documentation in mediawiki1.30 which I am currently working on so I tried to clone mediawiki 1.22 to get that documentation [15:07:34] I send a POST request for get a login token, api.php?action=query&format=json&meta=tokens&type=login [15:08:07] next I send a POST request for login bot, with the token that I have received... [15:08:24] api.php?action=login&format=json [15:08:36] In the second request, I have this output: [15:09:06] result [15:09:06] : [15:09:07] "NeedToken" [15:09:07] token [15:09:07] : [15:09:08] "710f3e410c77724d74f3eb15264596ad5a5e14e1+\" [15:09:23] If I try with sendBox, it's works fine, GRRR [15:13:52] andre__: Please help me to find that documentation in mediawiki 1.30 [15:23:02] Gopa_, have you considered searching your code checkout for the string "enumerate", for example? [15:26:36] Gopa_, also, "git branch -a" shows you available branches. For example, "remotes/origin/REL1_22". [15:26:48] Gopa_, so if you wanted to look into 1.22 code to compare, "git checkout remotes/origin/REL1_22" would make that locally. [15:27:01] and "git checkout master" will let you go back to the latest development version. [15:28:22] andre__: When I tried those commands I am getting to move only up to mediawiki1.23 but not mediawiki 1.22 [15:29:06] Gopa_, what are "those commands"? [15:29:13] please be exact which complete command you used. [15:29:30] When I run "git checkout remotes/origin/REL1_22" I get MediaWiki 1.22. Just like its name implies. [15:29:36] If you do not, explain how and why. [15:30:44] andre__: git tag -l when I used this command it is only listing till mediawiki 1.23 [15:31:52] Gopa_, here it does not. [15:32:13] Gopa: "git tag -l" starts with "1.1.0" here [15:32:14] https://usercontent.irccloud-cdn.com/file/R7jrqHcU/Screenshot%20from%202018-01-16%2021-01-40.png [15:32:58] Gopa_, maybe you have a shallow clone instead of a full one? [15:33:16] which exact doc (link) did you follow to clone MediaWiki? [15:34:09] andre__: https://github.com/wikimedia/mediawiki from here I cloned mediawiki1.30 [15:39:29] Gopa: which exact doc (link) did you follow to clone MediaWiki? [15:39:53] no doc? [15:40:03] I'd recommend https://www.mediawiki.org/wiki/Gerrit/Tutorial [15:41:45] andre__: Yeah I followed the same tutorial [15:42:46] Gopa_: You contradict yourself. [15:43:09] ...or I cannot read. [15:43:20] Gopa_, you wrote 10min ago that you cloned from https://github.com/wikimedia/mediawiki . Now you say that you followed https://www.mediawiki.org/wiki/Gerrit/Tutorial [15:43:49] What is correct? [15:45:38] andre__: When I was following gerrit tutorial there is also given that you can also get from git so I cloned from git [15:46:26] Gopa_, err, no? You cloned from GitHub you said. Not from Wikimedia Git. [15:47:23] Gopa_: If there is " you can also get from github" on https://www.mediawiki.org/wiki/Gerrit/Tutorial , please post that sentence [15:47:32] maybe I completely miss something here and am wrong [15:47:46] andre__: oh sorry that is what I want to say [15:49:03] Gopa_, I'd recommend to follow https://www.mediawiki.org/wiki/Gerrit/Tutorial and set up your development environment. No Github involved. [15:49:05] * andre__ is out [16:09:28] I have write an http POST for login as a bot a client. It is not compatible with mediawiki 1.30? It is necessary connect via Oauth? [17:31:25] hello. where can I edit [17:31:30] or better speaking I want to remove this message [17:31:37] "You might want to create a documentation page for this Scribunto module." message on top of every scribuntu module page? [17:34:12] auvajs: Interesting. That message seems to be defined in mediawiki/extensions/PageTriage/NewPagesFeed_Templates.xml (grep'ing the code base) [17:35:37] hi andre__, i can't solve my problem with API [17:35:45] can you help me? [17:37:35] temuccio: Not really, sorry. Maybe post what you exactly send and receive the first and second time into a Paste somewhere, like https://phabricator.wikimedia.org/paste/ , so someone could take a look at the whole thing? [17:37:46] I have make a bot password via Special:BotPasswords but doesn't work. [17:38:03] ok I send it [17:38:10] andre__: well my wiki is in another language and that file doesn't contain that message [17:39:59] temuccio: do you have access to console? [17:40:29] yes, I have ssh access [17:42:15] temuccio: try to run this code: https://pastebin.com/pgszQUH8 [17:42:35] temuccio: of course change username, pass and yourwiki [17:42:57] auvajs, I have make a page for the request and with inspector (for chrome or firefox) it is possible to see request and response [17:43:02] I make it [17:46:09] auvajs: Hmm, then you may want to grep / search your code base on your server for that string, maybe :-/ [17:46:59] auvajs, T is empty [17:51:38] temuccio: the address of your wiki was probably wrong [17:52:33] curl --silent -c mycookie "/homez.645/dialetti/www/w30/api.php?action=query&format=xml&meta=tokens&type=login" > T [17:52:43] I use the full path [17:53:23] I'm not sure about curl, shouldn't contain https:// or http:// ? [17:55:15] temuccio: on localhost it should look like http://localhost/.. something I think [17:55:27] ok with address from my pc works [17:57:47] ok auvajs, on my console works... [17:57:57] I have this message: [17:58:10] I suppose that username e password are right :D [17:59:29] temuccio: so there's something with your code then [17:59:58] yes I post the code on nopaste.... [18:05:10] this is part of code [18:05:11] https://nopaste.xyz/?1d6079c8ed6a302a#lKJYZjMn64iaWJEfRgMdrAzEmXq5AWXS57fNOFfNM+4= [18:06:17] if you prefer, I can post the link of script for see the request/response [18:12:15] auvajs, can I enable log on server for see the data? [18:13:18] temuccio: I'm sorry but I don't know Javascript.. I can't help you [18:15:12] thanks auvajs ;) [20:27:12] hey [20:27:13] extdist.wmflabs.org down? [20:27:33] lazowik: wmflabs is currently going through scheduled restarts [20:27:38] ah [20:27:38] thx [20:27:57] lazowik: i am not sure when it will be done. [20:28:13] I'm not in a hurry :) [20:29:15] where can one follow progress? [20:29:50] I would expect the cloud list to be updated when it's done [20:30:02] maybe #wikimedia-cloud channel [21:00:56] What's the best way of adding a non-header anchor to text? I'm trying to do so for entries on a Glossary page. [21:03:32] Berashith: [21:04:00] Perfect, thanks Skizzerz [21:47:04] hey guys following the installation and running into an issue can anyone help? [21:47:57] i have a working apache server, i have extracted the files, and follwoed the making and moving instructions [21:48:01] set my sql pass [21:48:38] and now im stuck none of the links that should work do.. [21:48:51] ls [21:50:57] its telling mbstring, and xml are not installed yet both are. [21:51:16] computron: can you try a2enmod [21:51:23] Then type mbstring [21:51:33] its telling mbstring, and xml are not installed yet both are. [21:51:45] command not found [21:51:57] however if i apt-get install it says allready installed [21:51:58] What apache version? [21:52:14] the latest hang on [21:52:38] 2.4.25-3 [21:53:02] Hmm [21:55:31] any ideas why it cant see it... or why its not working? [21:56:01] what did you want me to enable with a2enmod? [21:57:01] Try mbstring [21:57:17] Oh wait thats a php module isnt it... [21:57:25] yes it is [21:57:40] Hold on let me check again [21:57:47] computron: forget about that cmd [21:58:00] Php version? [21:58:05] 7 [21:58:24] everything is from a now setup [21:58:45] debian.... all the way up less then 3 hours hold [21:58:46] old [21:58:46] Can you run apt-get build-deps and see if that does anything I think you may be missing a dependceny [21:58:55] Build-dep* [21:59:37] for mbstring? [21:59:50] Yes [21:59:59] running, yes it found some.. [22:00:40] restart apache? [22:00:43] Yes [22:00:54] php extensions are generally shipped as separate packages in apt [22:01:11] the solution is probably something akin to apt install php7-mbstring php7-xml [22:02:17] ok now we have "localsettings.php not found [22:03:35] we are progressing.... [22:08:46] ok i think i am missing something in the install instructions. it mentions nothing on starting the install script [22:12:12] computron: /mw-config/install.php in your browser [22:13:23] dont have an install.php [22:13:31] does not exist in the directory either [22:15:15] i have an index.php but it throws an error Error starting session: session_start(): open(/var/www/tmp/sess_ticjoh3ve0g7a46262doivmja7, O_RDWR) failed: No such file or directory (2) [22:16:34] section directory is misconfigured? [22:16:43] s/section/session/ [22:17:48] max how can i check that? [22:25:39] haha found it.