[10:30:41] /nick Druddigon [10:31:35] /nick Druddigon [10:31:51] i'm confused:( [11:27:51] hi, I have a wiki farm wih several wikis lika a.domain.com, b.domain.com, and a default wiki domain.com, all those wikis are independent on each other, now I want to make a kind of alias wiki, alias.domain.com has the same content like the default wiki but runs under the same address, alias.domain.com/wiki/page has the same content like domain.com/wiki/page but the url address stays alias.domain.com/.. how can this be done please [12:54:38] aashaka: What does 'git remote -v' say? [13:05:10] hi Niharika, long time no see [13:05:26] Hi saper! How're you doing? [13:05:39] saper: Will I be seeing you at the hackathon? :) [13:05:58] don't think so, when and where is it? [13:06:59] saper: It's in Jerusalem, March 31 - April 3, I think. [13:08:40] no way :( [13:08:53] so, i'm looking into Captchas being put on my wiki for registration - any suggestions as to any specific Captcha extensions that work well, or better than others? [13:09:11] !captcha [13:09:11] For more information about CAPTCHAs and MediaWiki, see . [13:09:16] last time the comunity went to Jerusalem, I checked into the hospital :) [13:09:37] cześć Tomaszu [13:10:11] :o [13:13:03] morning [13:14:14] morning Auger [13:14:17] Niharika: origin git@github.com:wikimedia/mediawiki-tools-codesniffer.git (fetch). Similar for push. [13:14:31] morning saper [13:15:41] aashaka: I believe git-review cannot submit patches to git yet, Github mirror of MediaWiki tool codesniffer - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing) https://gerrit.wikimedia.org [13:16:12] aashaka: you can add a Wikimedia gerrit remote manually [13:16:51] aashaka: And before you do that, you need to add your ssh keys on Gerrit. [13:18:16] btw, like git clone ssh://@gerrit.wikimedia.org:29418/mediawiki/extensions/examples, what would be the host for the mediawiki-tools-codesniffer? [13:18:34] git remote add gerrit ssh://saper@gerrit.wikimedia.org:29418/mediawiki/tools/codesniffer [13:19:03] I have that done already, Niharika :) [13:19:15] aashaka: Good. [13:19:16] you can add it to your existing github repo, just replace "saper" with your Gerrit username, if you have one [13:19:33] Thanks! [13:19:36] with the "gerrit" remote, git-setup should work again [13:19:59] or you can add the hook yourself, since this is what it really does (adds a remote and downloads the hook) [13:22:55] Ah. I saw in the error msg that it failed in copying the commit-msg hook to .git/hook/commit-msg. [13:23:36] So, I can just download the hook and put it in .git/hook folder, I guess! [13:44:54] Niharika: thanks :) [13:46:25] teward: You're welcome! [13:47:07] Niharika: I was looking in the wrong place, but it looks like ConfirmEdit is designed to be a general 'captcha control' plugin, and I've got it working with reCaptcha NoCaptcha now. :) [13:47:13] this should help as well with the spammers :P [13:47:15] thanks again! [13:47:20] \o/ [13:47:45] Niharika: still hunting a way to nuke the remaining 150 users, but meh :) [13:47:52] up and running now :P [13:48:07] Godspeed! [13:53:14] Niharika: a general question on permissions: wgGrantPermission gives the permission for that group's members, but wgRevokePermission will revoke that permission if they get the permission from another group? Trying to understand this a bit better, so I can create a group that is "damned" and gets zero permissions regardless of groups they're in if they're in that one group... [13:55:01] teward: I am not sure. saper? [14:15:41] aashaka: did it work? [14:19:24] teward: yes, if the user is in the damned group then they effectively lose that right - https://phabricator.wikimedia.org/diffusion/MW/browse/master/includes/user/User.php;1c80fe572eec7610f35c87e0a43e49d886193d58$4559 [14:20:16] mobrovac: awesome, I guess I know what i'm going to create next for the permissions structure. Thanks! [14:24:06] mobrovac: there's no way to just do a one-off 'revoke all' permissions is there? I assume I have to enter the entire permissions structure to revoke (i.e. every permission in Default, plus those that've been added since) [14:25:34] teward: nope :( [14:25:56] teward: you can set the group for revocations to '*' (all groups), but the same can't be done for specific rights [14:26:08] you have to list them explicitly [14:26:08] makes sense. [14:26:28] mobrovac: any fancy commands I can run other than 'grep' on the DefaultPermissions file to get a list of all default permissions that come builtin? [14:26:58] not that i know of [14:28:39] guess I'll have to hunt, then. thanks. [14:28:58] mobrovac: the defaults that come with MW are on the Manual pages on the site, right, detailing what permissions exist in the latest mediawiki? [14:29:14] should be there, yes [14:30:11] i'll start there then analyze the extra permissions added so far. thanks. [14:30:13] teward: https://www.mediawiki.org/wiki/Manual:User_rights#Default_rights [14:30:33] "you should be able to list all the permissions available on your wiki by running User::getAllRights()" [14:30:58] at the PHP level or at the URL level? [14:31:20] * teward isn't sure :/ [14:31:41] not sure i understand the question [14:32:06] mobrovac: "by running User::getAllRights()" <-- where? as part of a page? As part of a PHP file run on the command line php? Basically, E:Ambiguous [14:32:19] ah, that [14:32:22] no no, PHP [14:32:27] mwscript.php is your friend [14:34:08] mobrovac: and that's found... where? [14:34:26] yeah, sorry, not in the mw repo :P [14:34:45] makes sense that it doesn't exist then [14:35:03] "not in repo" == "Does Not Exist" to the world not privy to mwscript [14:36:16] yup, sorry [14:36:32] so, then, there's no solution except to beat the code and hope it works [14:39:26] teward: https://phabricator.wikimedia.org/diffusion/MW/browse/master/includes/DefaultSettings.php;1c80fe572eec7610f35c87e0a43e49d886193d58$4759 [14:39:39] that's for the latest mediawiki [14:48:43] mobrovac: right, i pulled it from my copy currently running :) [14:48:50] i'm already working on the permissions list. thanks. [14:48:56] gr8! [14:53:49] mobrovac: required a lot of fancy sed, awk, etc. but i now have a complete revoke list. thanks for the pointers though :) [14:53:54] i'm sure i forgot something, but meh [15:07:12] saper: I removed the remote named origin and added the remote you said as origin. Worked then. [15:07:18] Hey there. Can someone help me ? https://www.mediawiki.org/wiki/Topic:T0f5tlszaqe3psfw [15:11:45] Brender: do you have $wgProfiler set? [15:11:55] no i dont... [15:13:47] well, a profiler is active [15:13:55] so it must have been enable somewhere [15:14:33] hm ok, in my localsettings.php i dont have "wgProfil" [15:16:26] what is a profiler? [15:17:15] in witch file i have to look? [15:39:44] hi, I have a wiki farm wih several wikis lika a.domain.com, b.domain.com, and a default wiki domain.com, all those wikis are independent on each other, now I want to make a kind of alias wiki, alias.domain.com has the same content like the default wiki but runs under the same address, alias.domain.com/wiki/page has the same content like domain.com/wiki/page but the url address stays alias.domain.com/.. how can this be done please [15:47:10] auvajs: you configure 'alias' the same as domain.com [15:47:40] mediawiki will mostly use relative links [15:47:56] you may get a few dirty cache entries, but those are probably acceptable [15:57:28] Platonides: so I basically must have 2 same localsettings's? [15:59:01] it works :)) [16:12:33] Can I used retrofit (http://square.github.io/retrofit/) HTTP client for query to the mediawiki api to search content [16:14:03] don't see why not [16:42:47] can someone help me to deaktivate a profiler on my wiki? i have an error.... http://www.opel66-72.de/mediawiki-1.24.1/index.php?title=Hauptseite [16:46:03] Hi Brender [16:46:22] hi [16:46:47] There could also have a need for a fix in the MediaWiki core code if it has'nt already been taken care of. [16:48:23] according https://www.mediawiki.org/wiki/Manual:Profiling you need to edit a StartProfiler.php file [16:48:43] but that's for MEdiaWiki 1.25+ and you're still in 1.24 [16:49:14] no i have 1.26.2 [16:49:18] Documentation for 1.24 were https://www.mediawiki.org/w/index.php?title=Manual:Profiling&oldid=1281616 [16:49:21] oh ok [16:49:22] so it's the correct doc [16:49:30] its only the dir name... [16:50:01] Yes, so you can remove your StartProfiler.php file or comment the part you don't want in it. [16:50:19] i dont have a startprofiler.php file in my wiki installation.... [16:50:40] would you see in LocalSettings.php some config for wgProfiler? [16:50:44] it should be in the root? [16:50:59] yes [16:51:20] so i dont have a startprofiler file [16:51:28] okay so it's probably in LocalSettings.php [16:51:44] in the localsettings i searched for "wgprofi" [16:51:50] for example you have a $wgEnableProfileInfo = true; [16:51:54] but i dont find anything [16:51:57] so search profil [16:52:48] it doesnt work [16:53:31] Oh my, I've only 3% of battery left, I won't be able to help you further right now, but I'll be around at 19:30 CET. [16:53:47] ok, im here ;) [16:54:03] https://drive.google.com/file/d/0B2rDwzTCs9KvZW9RYVl1cTMySTA/view?usp=sharing [16:54:15] here is my localsettings.php [16:54:48] you really should have removed the passwords from that [16:54:56] I recommend changing them now [16:55:24] e.g. your database password, and modify your SecretKey and UpgradeKey too while you're at it [16:55:39] (those can be any gibberish, so just flip some letters around) [16:56:02] anyway [16:56:12] ok, if i find the problem i changing... [16:56:14] thank you [17:03:50] Brender: I think your files may be not fully updated [17:03:58] did you update that wiki from 1.24 to 1.26 recently? [17:04:34] from 1.24.1 to 1.26.2 [17:05:25] yesterday. since i have this error [17:06:03] may I ask, how did you do the upgrade? what steps did you take [17:06:39] backup all files and the database [17:07:09] upload the new files [17:07:18] with ftp program [17:07:32] I think somehow you didn't quite upload all of the new files [17:07:38] there is an easy way to check this [17:08:07] oh okay?! [17:09:31] I can again upload the entire package... [17:09:35] hmm [17:09:58] no, you have the right file [17:10:01] now that I look at it again [17:11:02] after i uploaded all files i do the upgrad with /mw-config/index.php... [17:11:14] yeah, that's all fine [17:13:03] no, before i replace the Localsetting.php [17:13:17] before the update [17:15:21] just checking, but you have never edited DefaultSettings.php correct? [17:19:14] no i dont [17:19:41] i insertet this [17:19:42] error_reporting( E_ALL ); ini_set( 'display_errors', 1 ); [17:22:58] don't ever edit DefaultSettings.php [17:23:05] all edits should be in LocalSettings.php [17:24:07] to help figure out what's causing this, can you add the following at the end of your LocalSettings.php: $wgDebugLogGroups['DBPerformance'] = "$IP/perf.log"; [17:24:10] oh sorry... i dont have edited the default settings... [17:24:19] only the local settings [17:24:33] just a moment... [17:25:00] that will make a file called perf.log in your webroot which will contain more details about the error happening here [17:25:15] I want to check out those details, after which you can remove that setting and delete that file [17:25:27] (by webroot, I mean the root directory of the mediawiki install) [17:27:03] https://drive.google.com/file/d/0B2rDwzTCs9KvWTUwamZLWmVJSjQ/view?usp=sharing [17:27:05] done... [17:29:11] Brender: thanks. you can remove that line now [17:29:19] ok [17:29:35] keep the perf.log file around for now though, I'll ask you to delete it a bit later [17:30:02] I'm seeing some really weird things in it [17:30:49] doesent not sound good... [17:30:54] trying to figure out how it got that way [17:31:12] thanks a lot... [17:32:45] can you share your includes/profiler/TransactionProfiler.php file? [17:33:10] for sure! [17:34:01] https://drive.google.com/file/d/0B2rDwzTCs9KvNFNQYmxzanh4cjA/view?usp=sharing [17:36:06] that looks right [17:36:31] ok cool :) [17:48:31] I'm completely stumped; what I'm seeing should be impossible [17:49:10] lol [17:49:12] damn it... [17:49:47] can we fix it? [17:50:23] need to figure out what's causing it first [17:51:05] make a backup copy of that TransactionProfiler.php file; I'm going to ask you to modify it a bit for now, but you'll want to restore the unmodified version later [17:51:59] ok [17:54:59] Brender: upload this version in its place https://gist.github.com/skizzerz/a2bc0ae2aa0465265f99 and add that $wgDebugLogGroups['DBPerformance'] = "$IP/perf.log"; line back to LocalSettings.php [17:55:12] also go ahead and delete the perf.log file from the server before doing that [17:55:55] I added another logging call to figure out where the strange values are coming from [17:56:37] also thanks for being patient :) [17:56:56] haha no problem :). just a moment [17:56:59] this is turning out to be much harder than I anticipated [18:00:17] https://drive.google.com/file/d/0B2rDwzTCs9KvRTV0ekIyWTRGdlE/view?usp=sharing [18:00:23] here the new per.log [18:02:09] now this makes even LESS sense >_> [18:02:44] omg >_< [18:04:09] Hello [18:04:18] Lookign for small assistance with medwiki [18:04:46] Brender: what I'm seeing, in case that log looks like greek to you, is that the value readQueryTime is set to 5, and then later it's saying that the value of it is 0 [18:04:54] without saying how it went from 5 to 0 [18:05:03] and the fact it is 0 is what is causing all those errors [18:05:56] currently we will say my host is wiki/ and i can only get to my wiki by going to wiki/mediawiki-1.26.2 . when i go to wiki/ it goes to the installation screen everytime even though it is installed. Thank you in advance for the assistance [18:07:25] sorry, im trying to set my host name to go directly to the wiki [18:08:02] Brender: try this version of the file (keep the log stuff there) https://gist.github.com/skizzerz/a2bc0ae2aa0465265f99 [18:08:43] (also delete the perf.log file again before doing that) [18:11:55] https://drive.google.com/file/d/0B2rDwzTCs9Kva2xjanNKbzdjaDg/view?usp=sharing [18:12:03] the newest perf.log [18:12:25] ok yeah, I have no idea what's going on then [18:12:33] I'll just give you a workaround and file a bug [18:13:14] okay [18:13:21] thank you :) [18:13:27] restore your backup TransactionProfiler.php file, remove the logging line from LocalSettings.php, and delete the perf.log file [18:14:09] ok [18:14:47] then, in the backup TransactionProfiler.php file, on line 304 replace $by = $this->expectBy[$expect]; with $by = @$this->expectBy[$expect]; [18:15:39] also, if you can give me a phpinfo page that'd be nice -- upload a file called info.php with the contents [18:16:00] that'll help for the bug report and future reproduction efforts [18:17:08] wow. it works [18:17:14] many thanks for your help!!!! [18:17:28] it's still broken, that just makes the error messages not show up [18:17:54] okay, any restrictions? [18:18:18] no, the error doesn't impact any functionality of the wiki [18:18:25] probably [18:18:34] ok [18:19:07] can you do that info.php file though? [18:19:09] http://www.opel66-72.de/mediawiki-1.24.1/Info.php [18:19:38] thanks anyway!!!! [18:20:34] thanks [18:21:22] I may try to reproduce it again later on, but I don't really know [18:21:36] Skizzers would you be able to help me real quick / [18:21:36] ? [18:21:40] oh, and you'll likely need to apply that same edit every time you upgrade mediawiki if it keeps showing up [18:21:53] Asylum: sounds like you just uploaded your files to the wrong place [18:22:08] or wait [18:22:08] Where should they go / [18:22:10] ? [18:22:15] are you trying to set up short urls? [18:22:19] Yea [18:22:22] ok [18:22:29] i want them to go to wiki/ and get the wiki [18:22:31] what is your webserver [18:22:38] ok @ Skizzerz [18:22:45] its localhost [18:22:52] I mean, apache, nginx, etc. [18:22:52] making an internal wiki for my company [18:22:56] oh sry [18:22:58] apache2 [18:23:15] so to be clear, you want it so that people go to wiki/Pagename it gives them Pagename? [18:24:03] Well i want the wiki/ to point to the mediawiki [18:24:13] doesnt matter what it says after [18:24:20] currently it keeps pointing to installation [18:24:27] and i cant find where its hooked into that [18:24:31] so wiki/Pagename requires a bit of advanced setup [18:24:48] wiki/index.php/Pagename (or wiki/index.php?title=Pagename) requires no extra setup [18:25:28] for the second bit, it's a simple matter of moving all of the files from wiki/mediawiki-whatever to wiki/ itself [18:25:50] right now everything is in /var/www/html [18:25:54] for the first, you'll need to mess around with .htaccess files or your httpd.conf [18:26:18] yes so your wiki files are in /var/www/html/wiki/mediawiki-1.26.2 correct? [18:27:00] they are in /var/www/html/mediawiki-1.26.2 [18:27:47] hostname of the vm is wiki [18:28:02] so going to wiki/ on my domain accesses the wiki files [18:28:26] uh [18:28:31] but it points to the installer [18:28:50] and not the main wiki unless i go to wiki/mediawiki-1.26. [18:28:51] 2 [18:29:02] oh [18:29:08] I think I understand your setup [18:29:21] im thinking its an apache setting im missing but cant figure it out [18:29:22] that VM is only used for mediawiki? [18:29:28] yesir [18:29:30] 2 options [18:29:33] its a small vm [18:29:40] easiest is to simply move all the files directly into /var/www/html [18:29:56] second is to edit your apache conf and change the DocumentRoot to /var/www/html/mediawiki-1.26.2 [18:30:50] that is for "ugly" urls, to clarify (e.g. you'll have /wiki/index.php/Pagename or /wiki/index.php?title=Pagename -- probably the former) [18:33:11] cd [18:34:20] trying it no [18:34:21] w [18:56:51] @ Skizzerz where can i see the version of my wiki? [18:58:28] Brender: Special:Version [18:58:36] (or whatever that is in German) [18:58:50] ah ok [18:58:54] its version too :) [18:59:37] hmm [19:00:30] i think in the version 1.26 the "writer" or texteditor is [19:00:50] i dont know the right word >_< [19:01:19] near "microsoft word". It´s easer to link etc [19:04:02] Brender: if you are talking about the editor you see on wikipedia (What You See Is What You Get, aka WYSIWYG), that is an extension called VisualEditor and not part of mediawiki itself [19:04:12] setting it up is not easy [19:04:24] grml. okay [19:04:49] see https://www.mediawiki.org/wiki/Extension:VisualEditor for more details [19:05:50] thank you [19:06:42] the hard part is setting up and configuring the back-end parsoid service [19:07:12] which you will not be able to do unless you have SSH access, FTP won't cut it [19:08:00] ah ok [19:08:38] anyway, I'm heading off for lunch. If you have any other questions or issues, hopefully someone else will be around :) [19:09:24] I'm working on updating mediawiki, I updated all the extensions, but I'm unsure on how to, or if I even need to update the Libraries. I'm running mediawiki 1.26.2 on Gentoo. Any Ideas? [19:09:59] ok, have a good time Skizzerz [19:10:07] thanks :) [19:20:22] noshadow1: libraries? [19:22:41] under the special pages: version page, there is a section under the extensions that says "installed libraries" such as "composer/semver" and it lists the version, desc, etc. Im not sure how to update these to the latest version [19:23:18] Hello [19:23:26] Just need some help getting setu[ [19:23:28] setup [19:23:54] When I go to wiki/mw-config/index.php i get an error 500 [19:26:58] Anyone on who can help [19:27:40] you would that with composer, I think [19:27:59] Gator_Boss: you should have some info on your php error log [19:28:23] where do i find the logs [19:33:46] !debug | Gator_Boss [19:33:46] Gator_Boss: 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 [20:49:29] ori: you around? [20:49:36] arlolra: hey [20:49:41] https://github.com/wikimedia/mediawiki/commit/d1c4eafef54f638ef025816b17502250a5be9e73 [20:50:07] yes? [20:50:09] this broke php tests/parserTests.php, and by broke, i mean a test fails there now [20:50:49] are you sure? that was true of PS1, not PS2 [20:51:09] one sec, let me see [20:51:22] yeah, i'm sure [20:51:29] the phpunit test is not the same [20:51:48] often that passes but invoking the script directly doesn't [20:52:41] for example [20:52:42] https://github.com/wikimedia/mediawiki/commit/d13a933feed48020cfb55f7ee765090ac6af46b0 [20:52:49] and [20:52:49] https://github.com/wikimedia/mediawiki/commit/09be5db2b3c0c0a044bd612a89459662f680678d [20:53:05] fun. let me see if I can fix it, hang on. [20:53:24] thanks ... if you're busy, i can dig in further [20:54:20] I think it's just a matter of copying over the fix from PS2, which is to insert ObjectCache::getMainWANInstance()->clearProcessCache(); into the setup or teardown functions for the test [20:54:40] i just tried that and it didn't seem to work [20:54:49] but maybe i put it in the wrong place is all [20:56:22] L225 of tests/parser/parserTests.inc [20:56:29] WFM when I insert it into line 622, just above $local = isset( $opts['local'] ); [20:56:51] can you confirm? [20:57:30] yup [20:57:35] i had just grepped for DeferredUpdates::clearPendingUpdates(); [20:57:42] thanks :) [20:58:03] I'll submit a patch [20:58:13] thank you [21:01:31] arlolra: https://gerrit.wikimedia.org/r/#/c/279673/ [21:03:23] ok, I'll merge when the tests are happy. unless you feel others should see it too? [23:15:07] hi, any idea how to make a collapsable table row or column? [23:16:35] I don't want the whole table collapsable but only a part of a table [23:26:38] play with js to make it? [23:27:54] Platonides: well .. lol [23:32:15] I need help getting It setup [23:32:47] I encounter a error 500 when i click on setup the wiki