[01:39:14] MTres19: User::checkPassword will throw if any authentication extension is installed that requires user interaction [01:39:24] such as ConfirmEdit, or OATHAuth [01:39:43] and it will probably be removed in 1.29 [01:40:57] of course it doesn't really make sense to use HTTP Basic together with those extensions anyway [01:42:31] tgr: Okay: I'm not using it; instead I simply using AuthManaged directly with loadRequestsFromSubmission(). If it gets anything other than pass or fail with username/password auth it will echo a generic error message. [01:43:13] Not the best, of course, to perform the action the user has to be sysop by default anyway. [01:43:32] So the user would be likely to have a standard wiki account. [01:44:02] yeah, same thing applies: a lot of auth extensions will break it, although they probably would not be useful on a wiki with HTTP auth anyway [01:44:04] MTres19 please leave or kill, thanks [01:44:15] MIERDA [01:45:37] an alternative approach would be to store passwords in the webserver and set REMOTE_USER and read it with Extension:RemoteAuth or something similar [01:47:20] tgr: The idea is not to log into the wiki from the web with basic auth, but to be able to access the content of the wiki with git. https://github.com/MTres19/mw-extension-git [01:48:46] So storing passwords in .htaccess or the like isn't really practical. [01:52:20] Platonides: Thanks, by the way. [01:52:48] if you don't want to depend on the web server for authentication, you could also create a SessionProvider which checks the HTTP request credentials against the user table [01:53:06] but yeah, what you describe should work [01:59:33] tgr: So as long as no one with an oAuth/whatever-linked account tries to use basic auth with my extension, things should work? [02:00:46] I don't care whether my extension works for oAuth users, as long as having oAuth enabled doesn't prevent standard users from using my extension. [02:11:57] MTres19: yeah, the only case in which it will fail is if some extension adds another required fields to the login form (e.g. captcha or two-factor login) [02:14:08] tgr: Okay, and thanks for your help! [02:26:39] !flames [02:31:13] !flames [02:31:16] AlvaroMolina IT'S TRUSH AND LOVES ALEX Z AND UAWIKI IN #WIKIPEDIA-ES [02:31:18] MIERDA [02:47:45] MIERDA [05:43:36] MIERDA [05:43:40] AlvaroMolina IT'S TRUSH AND LOVES ALEX Z AND UAWIKI IN #WIKIPEDIA-ESAlvaroMolina IT'S TRUSH AND LOVES ALEX Z AND UAWIKI IN #WIKIPEDIA-ESAlvaroMolina IT'S TRUSH AND LOVES ALEX Z AND UAWIKI IN #WIKIPEDIA-ES [06:22:18] MIERDA [06:29:25] MIERDA [06:40:56] Hello all i ahve question [06:41:06] Run the update script which will automatically create the necessary database tables that this extension needs. [06:41:10] How to run it? [06:48:16] Hello i downloadedOAuth extension [06:48:21] I need help how to install it [06:48:35] I have no previous expierence with mediawiki framework [07:01:07] ctmarco: see https://www.mediawiki.org/wiki/Manual:Update.php [07:03:01] I cant [07:03:05] it show file not found [07:03:20] php update.php [07:03:25] It show file not found [07:03:36] Could not open input file: update.php [07:43:48] MIERDA [08:52:42] Where is routes in mediawiki? [08:52:50] Where i can add my own page route [08:52:53] I need router [08:52:59] Where i can access it? [08:54:31] ctmarco: what is a "page route"? [08:54:40] Router [08:54:48] ctmarco: what is a "router" in a software context? [08:55:02] For example it makes names of pages [08:55:07] myweb/page1 [08:55:09] myweb/page2 [08:55:14] myweb/other_page [08:55:41] I don't understand. *I* make names of pages when *I* decide under which name I save a file. [08:57:56] Where i logo placed [08:57:59] How i can edit logo [08:58:08] For example i need make logo as link [08:59:30] "root" maybe? [09:00:02] ctmarco, https://www.mediawiki.org/wiki/Manual:FAQ#How_do_I_change_the_logo.3F [09:00:33] The logo *is* already a link. As far as I know. [09:32:36] How to $router->add() in mediawiki ? [09:34:21] ctmarco: what is "$router->add()" supposed to do? [09:34:29] It makes more sense to explain what you want to achieve. [09:34:41] Instead of asking about what you think is a solution. Which might not be a solution. [09:35:24] For example adds url [09:35:32] when i write specific url i get page [09:35:55] For example in frameworks i can route actions [09:36:01] How i can do it in mediawiki? [09:42:43] ctmarco, you need to explain way more and clearer what you want to do. [09:42:56] where do you write some specific url? [09:43:01] are you editing a wiki page in a browser? [09:43:04] do you try to write some code? [09:43:28] and especially, *why* you want to write or add some url. in which situation. what underlying problem you want to solve. [09:45:03] I need to access framework of Mediawiki [09:45:09] But i cant understand it where to start [09:47:33] ctmarco: okay. you need to access the MediaWiki framework for what, and why? [09:47:57] which underlying problem would you like to solve by accessing the MediaWIki framework? [09:48:03] I need add extension AuthO [09:48:09] But i dont know how to do that [09:48:12] ctmarco, no, that's not an answer. [09:48:21] which *problem* would you like to solve? [09:48:40] "I need to add the OAuth extension" is a potential solution, but not a description of a problem. [09:48:51] I'd like to know the problem. [09:48:56] Auth [09:49:09] What would you like to do? [09:49:10] How i can add AuthO extension [09:49:16] There is only OAuth. [09:49:21] I need authentication allowed but page [09:49:32] How i can add it to my mediawiki? [09:49:38] ctmarco, by installing it. [09:49:39] See https://www.mediawiki.org/wiki/Extension:OAuth [09:49:44] I installed [09:49:47] There is an "Installation" section. [09:49:47] It wont work\ [09:49:58] Run the update script which will automatically create the necessary database tables that this extension needs. [09:50:04] I dont have any update script [09:50:06] If it does not work, explain what you did, what is shown, and what you expect. [09:50:28] ctmarco, where exactly did you look for the update script? [09:50:36] In wiki directory [09:50:39] Where it is? [09:50:46] ctmarco, what does "in wiki directory" mean? [09:50:52] Did you check /maintenance/update.php ? [09:50:57] root directory of wiki project [09:51:02] no [09:51:05] ctmarco, why not? [09:51:14] How i can php update.php it [09:51:38] ctmarco, did you find the script? [09:52:00] "Run the update script" on https://www.mediawiki.org/wiki/Extension:OAuth#Installation links to https://www.mediawiki.org/wiki/Manual:Update.php . https://www.mediawiki.org/wiki/Manual:Update.php shows the file name and the "Location" at the top. [09:52:09] so its location is /maintenance/update.php [09:52:27] ctmarco: https://www.mediawiki.org/wiki/Manual:Update.php explains how to run update.php [09:54:33] I runed [09:54:37] What need do next [09:54:43] And how i can check if it works [09:56:11] ctmarco, what to do next is written on the documentation page. Did you read it? :) [09:56:16] https://www.mediawiki.org/wiki/Extension:OAuth#Installation [09:56:49] Configure the user rights by putting them into the relevant groups in $wgGroupPermissions. [09:56:53] Where in which file ? [09:57:54] ctmarco, errrm, no, before that there is "Configure the general parameters as required." [09:58:37] settings are in LocalSettings.php [10:14:10] $wgMWOAuthCentralWiki no this variable in localconfig [10:14:22] There not variable with this name [10:18:56] i need simple tutorial where i can make mediawiki extension [10:19:19] ctmarco: of course there is no variable with that name. [10:19:33] you are in the configuration of the MediaWiki core software. [10:19:38] There are thousands of extensions. [10:19:59] It makes no sense to put the variable of each and every extension out there in a totally bloated huge LocalSettings.php file by default. [10:20:12] ctmarco: Have you thought about adding that variable yourself to the configuration? [10:20:19] Because that is what you are expected to do. [10:21:04] ctmarco: No, you do NOT need a simple tutorial where you can make mediawiki extension. Except for when you want to re-invent the wheel. [10:28:15] How i can try extension is it working or not [10:28:20] i cant experimate [10:57:50] ctmarco: by installing it by following the installation guide? [10:58:20] ...and if you have *specific* questions: by asking them. [13:41:37] hey, anyone familiar with the LDAPAuthentication part in mediawiki? Im upgrading from 1.12.0 to 1.27.1-1 and am running into conf problems [13:48:22] Hi ssmith. [13:48:30] It's just a single PHP file, I believe. [13:48:33] hi [13:48:41] It's usually easiest to figure out which error you're getting and follow the code path. [13:48:45] To see what's causing it. [13:59:32] thanks Debra. I guess i'll have to switch error_reporting on also... [14:12:33] Maybe. Depends what kind of error you're getting. [14:12:45] ssmith: If you tail your Web server error logs, you may see helpful info in there. [14:13:02] ssmith: Usually the error I've encountered is that the LDAP extension has a special database table. [14:13:10] So make sure you run maintenance/update.php after installing the extension. [14:13:19] That should trigger the creation of the database table, I believe. [14:13:32] Or you can manually create the table. [14:54:33] andre__: Hi Aklapper, are you on ? [14:56:06] Sophivorus: likely [14:56:11] on and off. as usual :) [14:56:19] heh ok, hi [14:56:36] i wanted to ask you if you could take a look at my request at the bottom of https://phabricator.wikimedia.org/T706 [14:57:00] im in a bit of a hurry because i want to migrate some issues from github to gerrit before the 16th [14:57:16] due to my mid-term report deadline [14:57:59] sorry, from github to phabricator i meant* [15:03:05] Sophivorus: Frankly, the "code of the thousand gadgets" sentence made me scared [15:03:16] Sophivorus, basically https://phabricator.wikimedia.org/T85433 [15:03:40] if you have specific gadgets, and if you make it clear in various places that the single place to track software issues is in Phabricator, I'd be fine with that. [15:03:59] However, I don't want Phabricator to be the 10th place to report gadget bugs, when 9 places were available beforehand already. [15:04:09] So that's where I come from and why I'm a bit... "reluctant". [15:04:26] Sophivorus, basically: https://phabricator.wikimedia.org/T85433#1196089 [15:04:56] so my position is in https://phabricator.wikimedia.org/T85433#1373799 and https://phabricator.wikimedia.org/T85433#1549981 [15:07:50] andre__: hm, interesting points, i need to think about them [15:09:09] Sophivorus: as you wrote "centralizing the code of the thousand gadgets", I'd love to see you add your thoughts to https://phabricator.wikimedia.org/T121470 [15:09:22] (or concepts. or links. or whatever comes to your mind. :) ) [15:10:38] Heh, rabbit hole. [15:11:10] "I want to have my issues tracked in Phabricator instead of GitHub" becomes "implement shadow namespaces for all the things." :P [15:15:31] I would love to see this solved. But it's complex as hell. We all know. :) [15:21:46] I bumped https://phabricator.wikimedia.org/T91162 a bit. [15:33:58] andre__: Added my two cents to https://phabricator.wikimedia.org/T121470 [15:34:24] I'm running into a weird bug with the InputBox extension on v.0.2.0 running Mediawiki v.1.24.2. I am planning on using the box to streamline the creation of personal pages. The Parameters include type=create, preload=Template:People, buttonlable=Create Personal Page, placeholder=Enter Your Name. I'm working in the Sandbox, but when I save my changes it saves everything to Main_Page, instead of Sandbox. Any [15:34:30] idea why this would be happening? [15:35:21] how is the Sandbox page called? [15:37:19] It's simply titled Sandbox and I'm making a basic edit adding the tags with the parameters inside and nothing else. [15:38:31] The same exact process with InputBox v0.3.0 on MediaWiki v1.27.1 works perfectly [15:38:55] icw: check https://www.mediawiki.org/wiki/Topic:Rl08zsw15u3qqw3b [15:42:50] That appears to be the issue, albeit an unfortunate one as the preview tabs are appreciated by our editors. Thanks for the help! [15:47:38] andre__: I've read your comments and related ones, and given it some thought, and i'd like to talk with you a bit here, because i think that my request may still be a good idea [15:48:06] Sophivorus: Probably, and if there's a bit of concept I'm definitely happy to see projects created for this. [15:48:21] Wondering if creating a task under #Project-Admins for your idea might make sense [15:48:29] basically, i want to migrate the tasks of the proveit gadget to phabricator because the gadget is just starting to spread to other wikis [15:48:52] so before it fragments, i want to keep it centralized [15:48:57] do you maintain the gadget? [15:49:05] yes, and i currently have a grant to do so [15:49:11] +1 from me then [15:49:21] (https://meta.wikimedia.org/wiki/Grants:IEG/Enhance_the_ProveIt_gadget) [15:49:55] plus, the code has already been migrated from github to gerrit, so having the code there and the issues at github is confusing [15:50:22] similarly with the other project for which im requesting phabricator projects (WikiWidgets) [15:50:55] hm, ProvIt [15:50:57] ProveIt* [15:51:11] i commit to migrate all the issues of the proveit gadget from github to phabricator and direct all feedback there [15:51:16] I think that might be the gadget I helped make work on trwiki years ago [15:51:58] heh, it's giving giant strides now, TemplateData integration, internationalization, and soon connected with Wikidata i hope [15:52:02] nice [15:52:10] Sophivorus: so that would be a project called #ProveIt-Gadget ? [15:52:30] sure, that sounds good [15:56:29] Krenair: i'm trying to localize and spread the gadget to as many wikis as possible, would you mind helping me out with trwiki when the time comes ? [15:56:45] Sophivorus: Alright, I've added you to #acl*Project-Admins. You know that this needs some more general thoughts (plus making sure that people bring up their issues in Phabricator) and you have reasonable arguments, so let's try. :) [15:56:55] I'm a global interface editor these days, my trwiki flag is redundant [15:57:16] me too, but i don't know any turkish [15:57:17] do you ? [15:57:20] Nope [15:57:37] sorry [15:57:42] hah ok, then i wont bother, you, i'll ask the turkish community, thanks ! [15:57:55] The local admin I did it for was called Vito [15:58:15] andre__: thanks! i'll start with the proveit gadget and familiarize myself a bit more with the current phabricator policies before i create more projects [15:58:46] Krenair: ah, thanks, that will be helpful :-) [15:58:52] https://tr.wikipedia.org/wiki/%C3%96zel:Katk%C4%B1lar/Vito_Genovese [15:59:23] this was just over 4 years ago [15:59:44] good luck [15:59:45] well he still looks active [15:59:47] thx [17:29:42] hi [17:29:44] :P [18:28:04] Anyone help me with __DIR__ in an extension. For some reason it is returning the full path on the server.../home/user/bla/bla/bla in the php output/source of the page. [18:28:07] php 5.6. [18:28:28] what's the code? [18:32:28] http://pastebin.com/myGfT3tz [18:32:36] It is the extension MsUpload.... [18:33:56] It outputs {"scriptPath":"","flash_swf_url":"/home/user/rootdir/extensions/MsUpload/plupload/Moxie.swf","silverlight_xap_url":"/home/user/rootdir/extensions/MsUpload/plupload/Moxie.xap" [18:33:56] I use this code in my localsettings.php thing: $wgDBtype = "mysql"; [18:33:57] $wgDBname = "wiki"; [18:33:57] $wgDBuser = "wikiDbUser"; [18:33:57] $wgDBpassword = "wikiDbUser"; and it gives me a error: http://146.185.183.34/mediawiki/ [19:56:16] damit [20:03:10] Is there a magic word in wikitext to get the protocol of the website? (e.g. http or https) [20:05:40] Nevermind, the fullurl parser function takes care of what I need. [20:22:16] are there any mediawiki developers on here, if so i just wanted to ask if ImportScript() was removed from mediawiki 1.27? i'm getting a reference error of it not being defined. [20:23:46] https://www.mediawiki.org/wiki/Topic:Qgo3q6e0hvae1dpj asked a question about deprecation [20:24:13] You could be interested by https://www.mediawiki.org/wiki/ResourceLoader/Legacy_JavaScript#wikibits.js [20:24:37] ctrl + f > importScript, you'll get the new mw.loader.load syntax to use [20:24:46] well the thing is it was working for mw 1.26.2 [20:25:10] that said, where is the resourceloader even located? [20:25:21] Funny the last commit is wikibits: Un-deprecate importScript and importStylesheet [20:25:30] Per discussion on T95964. No suitable replacement exists yet. [20:25:30] importScriptURI and importStylesheetURI stay deprecated, having been [20:25:31] superseded by mw.loader.load. [20:25:31] T95964: Deprecation status of importScript, importStylesheet, importScriptURI, importStylesheetURI - https://phabricator.wikimedia.org/T95964 [20:25:31] doesn't matter if it worked in a prevous version ;) [20:25:40] .26 -> .27 is a major bump [20:26:14] ok so where is mw.loader.load located? [20:26:29] oh the undeprecate was .25, ignore that [20:26:38] mw.loader.load( '/w/index.php?title=MediaWiki:Gadget-HotCat.js&action=raw&ctype=text/javascript' ); [20:26:46] where would i be adding the above as an example? [20:27:04] at the same places you added importScript [20:27:16] so mediawiki:common.js? [20:27:18] user JS, global JS, other extension JS code, etc. [20:27:19] yes [20:27:39] thanks, that should be added to docs [20:27:49] https://www.mediawiki.org/wiki/ResourceLoader/JavaScript_Deprecations#wikibits.js is the doc for that [20:28:44] yeah, i saw that and got the above example from. wasn't sure where that was dropped in. i'll test it now [20:41:43] Dereckson, does mw.loader.load not work for scripts rather only for gadgets? [20:43:48] merfie: you could like https://www.mediawiki.org/wiki/ResourceLoader/Developing_with_ResourceLoader#.40embed [20:44:00] (without the final anchor, I refered to the page in general) [20:44:47] So yes, the gadgets use resource loader, but it's also available elsewhere. [20:45:07] https://www.mediawiki.org/wiki/ResourceLoader/Developing_with_ResourceLoader#Client-side_.28dynamically.29 explains where to declare dependencies: [20:45:37] - in MediaWiki:Gadgets-definition for gadgets [20:45:46] - with mw.loader.using for userscripts [20:46:23] (or mw.loader.load) [20:52:23] must be due to php and MySQL not being updated, another wiki where i got a few of my scripts have their's still working