[00:17:07] So I'm having trouble with one of my wikis, and i'm not really sure what to check first. Any time the site resizes an image, the rest of the site hangs until the image resize completes, and the actual image resize itself is really slow. I'm using mediawiki 1.22.6 on nginx & php-fpm 5.5 and using imagemagick. [00:20:21] *with my wiki (forgot I don't have the other one running anymore) [03:28:33] Ashfire908: Maybe search around for ImageMagick + memory issues? [03:28:41] Or try upgrading it to the latest version? [03:29:39] When I run the convert command myself it works fine, which is weird. And it has plenty of memory. [03:29:58] But I'll double check if it's out of date or if something funny is going on with the version it's on [03:30:16] (it's up to date in the package manager) [03:31:10] It's at the latest release. [03:37:16] If I switch to GD it works pretty much instantly [03:39:31] Hmm, strange. [03:57:25] Is there a good reason to use imagemagick (or an alternative) over gd? I remember when I set up this wiki years ago when I looked it up it was pretty much "don't use gd". I don't know if that's changed since then. [04:17:56] Well I just narrowed it down to being unrelated to mediawiki, something is wrong with the user mediawiki is running under, because the issue appears if I run the convert command by itself under that user. Thanks for your time anyway. [04:37:14] In the really rare case anyone comes in with the same issue, it turned out that imagemagick couldn't write out a cache file and had to keep regenerating it every run. Otherwise, bye. [07:25:54] if I do git commit without doing git-review, where does the commit go [07:27:52] Withoutaname: Local git repo. [07:28:50] so it doesn't get pushed to wmf servers? good [07:28:57] Yeah. [09:55:35] Hello [09:55:50] im trying to work on one bug in mediawiki api [09:55:57] and im facing some problem debug [09:56:06] debugging* [09:56:31] i have vagrant box up and have instance running. i can view mediawiki instance at localhost [09:56:41] but i don't see edits i make to code. [09:57:08] so naive i feel grr [09:58:02] Sounds like you're editing the wrong copy of the code then [09:58:25] I don't have experience in vagrant, but you may check whether you're editing the files being used by your vagrant instance by introducing some syntax error in LocalSettings.php and see if the wiki crashes [09:58:26] im editing files unders /vagrant/mediawiki/api/.php [09:58:51] Lol i did exact same. i just deleted page and it caused error [09:59:13] but anything i edit in page thought the page is referencing same function doesnt effect code. [10:00:52] maybe you're editing a code path that isn't being executed for the particular tests you're running [10:01:40] Vulpix: im not running test as of yet. Just putting some code into functions and refreshing the page. plain old and simple? [10:01:51] it doesnt seem to work. [10:02:09] put in a die(); [10:02:32] or some text at least so you know it's not fatalling elsewhere [10:02:34] well, for "test" I meant to say that, refreshing the page and testing that your code works [10:02:34] die( 'lol' ); [10:04:06] Vulpix: oh alright. my bad. but no it doesnt. [10:04:32] Reedy: so here is what im trying to do. im trying to solve this https://bugzilla.wikimedia.org/show_bug.cgi?id=45652 [10:04:42] to do so im editing a function makeHelpMsgParameters [10:05:00] and trying to see output at 127.0.0.1:8080/w/api.php [10:05:54] im editing function in ApiBase.php [10:06:25] i tried appending die('l0l') too [10:08:58] does anyone happen to have some time do to dome hand holding while I try to get started? [10:09:52] MartijnH: Are you in Zurich? ;) [10:10:00] Reedy, sorry, no [10:10:04] didn't have the time [10:10:17] kishanio: as I said, you're probably editing a code path that's not executing for the particular page you're refreshing, like if (false) { die('lol'); } <-- will not execute, even if editing the right file [10:10:21] but I figured I should at least remote-hackathon to be there in spirit [10:10:54] of course, the "false" can be any more complex logic here [10:11:03] it's just an example [10:12:21] MartijnH: I was taking hand holding literally [10:12:23] MartijnH: What's up? [10:13:54] Reedy, I'll be there in London, I'll make it up and hold your hand there :P I have a basic setup on windows/vagrant, and want to get started. I figured the first thing I wanted to do is run the test suite. Then I realised I don't know how to run the test suite :/ [10:14:06] this should be my hub right: https://www.mediawiki.org/wiki/Manual:PHP_unit_testing ? [10:14:26] From what I understand there's a command that'll run the test suite from outside vagrant [10:14:43] https://github.com/wikimedia/mediawiki-vagrant [10:15:00] oh, that's nice [10:15:23] I think/hope (I probably have to install some stuff on the non-virtual side too then) [10:16:15] Vulpix: Urm so i just dumped something in constructer that worked of-course. And by (false) -> this could be any function right? that suppose to execute something on page? [10:17:38] kishanio: yes. What I mean is that you are probably editing some lines of code that are in a function not being executed, or in a if () condition that evaluates to false for that particular page [10:18:55] brb, reboot :/ [10:23:42] Vulpix: i guess so. let me dig more. i just need to get my head around code-flow. [10:59:34] so, at least I managed to unbreak my system again, and see that the vagrant install has phpunit installed. So what's next? How can I run the suite? Just running phpunit doesn't autodiscover the tests as I had initially hoped [11:03:47] and phpunit tests fails with a php fatal PHP Fatal error: Class 'MediaWikiTestCase' not found in /vagrant/mediawiki/tests/phpunit/LessFileCompilationTest.php on [11:03:47] line 9 [11:08:42] is there anything else I should be doing to get the tests working? [11:09:34] bd808: ^^ [11:14:10] Vulpix: Is there a caching layer that always serves the old page. since i added some string a function being executed on a page it worked. but after i removed it from the code the string is still on the page. [11:14:22] seems like it being cached or something. [11:14:57] kishanio: your web browser, probably [11:15:49] MartijnH: I run unit tests like: `cd /vagrant/mediawiki; php tests/phpunit/phpunit.php` [11:16:19] I'll give that a swing [11:17:10] There's a `vagrant run-tests` command from the host machine that is supposed to do the same thing. I haven't tried using it for a while. [11:17:17] that give me the following bd808: http://pastie.org/9161945 [11:17:20] oh, that might be better [11:18:11] blerg. You have the problem where phpunit didn't install. [11:18:12] vagrant run-tests gives me the identical error as php tests/phpunit/phpunit.php [11:18:31] from within vagrant which phpunit gives me a phpunit [11:18:35] MartijnH: There is a fix https://gerrit.wikimedia.org/r/#/c/132377/ [11:18:55] awesome, thanks physikerwelt [11:19:48] so now comes the great git adventure where I'll try to merge that patch :) [11:20:41] if you don't want to get side-tracked the easy solution would be to run pear uninstall phpunit/PHPUnit pear install phpunit/PHPUnit-3.7.35 [11:21:34] MartijnH: Wait a few minutes, it's being merged to master [11:21:34] physikerwelt, MartijnH: Just +2'd that patch. Should land in master soon. [11:22:01] ok great [11:22:28] However this is a time bob... which will explode on 31.12.2014 [11:22:49] that bob, always exploding [11:23:19] (in happier news, tests are running :) [11:23:43] phpunit will stop to support pear [11:24:43] so it would be a good idea not to close the bug [11:25:25] Vulpix: thats what i thought first tried incognito still same. [11:25:40] Vulpix: thats what i thought first tried incognito still same. [11:26:45] kishanio: on MediaWiki it depends... there's a parser cache, file cache, language cache... [11:27:02] that really depends on where did you make the change [11:28:18] Vulpix: oka is it just possible to turn it off so i could just get the raw output. [11:28:49] somehow i feel its vagrant at cause too since on motd i saw it firing up 2 instance on differnet ips [11:29:31] !cache [11:29:31] General information about caches can be seen at , for configuration settings see [11:36:46] parser tests take very long to run, with no output. That is expected? [11:37:00] Vulpix: its was cache issue. i had to disable it from LocalSettings.php [11:59:49] hello, i've a problem installa recaptcha [12:00:07] it doesnì't show up when i edit pages.. [12:00:14] i've followed the manual [12:01:01] can anyone help? [12:12:03] ok it works [12:26:00] softplay: do you still need help? [12:28:56] Whenever i solve bugs referencing to bug tracker do i need to takecare of versions or running tests would take care of it? [12:29:26] take care of versions? [12:30:38] yes there is a version mentioned in the bug report [12:30:57] when i installed using vagrant i got 1.24alpha while the bug was filed for 1.21 [12:31:39] You can leave that [12:31:59] It's for the version that the bug was initially reported against [12:32:17] kishanio how do i link the "create account page in the main page? [12:32:48] Oh alright gotcha. [12:37:09] softplay: its already there on the top naviagation. or do you need another one? [12:37:41] yes i was hoping to place an other one inside the content.. [12:38:13] i know it is redundant but is for navigation issues [12:38:16] may i? [12:39:50] i will make an how-to.. thanks you anyway [12:52:31] softplay: can you use http://127.0.0.1:8080/w/index.php?title=Special:UserLogin&returnto=Main+Page&type=signup [13:07:35] kishanio i could but it would result in an external link in the wiki, so it's not semantically consistent.. [13:07:47] i think i'll go with the tutorial.. [13:08:04] it's usefull for complex website like wikis and online journals.. [13:08:05] softplay: yeah not very clean. [13:08:08] thanks :) [13:08:25] softplay: alright sure. [13:44:53] Hello #mediawiki, I (among a group of people) have taken over a wiki that has been completely abandoned for a long time, during which serious vandalism occured from a few user/ip's. Since the number of origins is small, I would like to know what is the best way to remove all edits from a certain user/ip, permantly if possible? Thank you all :) [13:45:05] !nuke [13:45:05] http://www.mediawiki.org/wiki/Extension:Nuke [13:45:09] CasperVector: ^^ [13:46:23] marktraceur: Thanks :) [14:36:20] Reedy: Hey [15:07:10] !class Maintenance [15:07:11] See https://doc.wikimedia.org/mediawiki-core/master/php/html/classMaintenance.html [16:55:57] I still can't get a clean test run. Right now it "gets stuck" on ParserTests, and after about 20 minutes, it fails with the following: [16:55:59] ParserTests [16:56:23] /usr/local/bin/run-mediawiki-tests: line 4: 2557 Killed php tests/phpunit/phpunit.php --testdox "$@" [17:11:52] * Gloria NP: "Candy" by Mandy Moore from "Now That's What I Call Music! Vol. 4" [17:27:33] hi world i like to know if there is a way to add a model on every page at the very end of each article [17:27:55] in a single pass [17:31:11] rerer: using the api, there's a appendtext parameter for action=edit [17:31:51] * MartijnH curses his network [17:41:01] Vulpix: thanks > i added $wgEnableAPI = "true" ; and $wgEnableWriteAPI = "true" ; but http://www.mysite.com/page/api.php is not avalable .. is something i missed ? [17:51:12] so, is Parser tests known to fail? How do I work around it? [17:51:23] * MartijnH fails around a little [17:52:14] nice day/night all [18:02:19] everyone eating geschnetzeltes I guess [18:10:17] is SVG transparency a lost cause without using something other than ImageMagick as the converter? [18:10:31] anything I upload gets a white background, making it more or less useless. [18:14:03] Quasar``: I get the same problem on my wiki. I don't know what the deal is since I think I used an array of converters [18:15:47] anyone have a source to a better layout design for Vector ? [18:26:15] Krinkle|detached: MatmaRex: if you have a good example and/or good HOWTOs for "Preserving positioning" I'd welcome it https://www.mediawiki.org/wiki/Performance_guidelines#Preserving_positioning [18:26:49] RoanKattouw_away: ^ [18:27:08] I could also use example *code* for the bad examples, e.g., fundraiser [18:30:24] DanielK_WMDE: https://www.mediawiki.org/wiki/Performance_profiling_for_Wikimedia_code [18:34:12] sumanah: http://qr.ae/yAxi6 (look like share=1 is indeed the correct url hack) [18:36:51] HI! I've just downloaded the last mediawiki, unpackeced, and run the configurator on http://sitw/mw-config, and save the resulting LocalSettings.php - Nothing works - erro.log shows "Cannot redeclare call LBFactory in ....../LBFactoty.php on line 28" - what is the problem? [18:42:17] DanielK_WMDE: https://www.mediawiki.org/wiki/Performance_guidelines [19:33:58] Hi im facing some troubles commiting to garrit. [19:34:19] it warns me that im about to submit multiple commits [19:34:58] my previous commit is for the another bug that i patched earlier [19:36:35] and the current one is the new commit. How does both coincide with one another [19:36:45] because you committed to the same branch [19:37:29] you can use rebase -i HEAD~2 [19:37:35] delete the line of the one you don't want [19:40:51] Reedy: your awesome. [19:41:58] hi kishanio - also - https://tools.wmflabs.org/gerrit-patch-uploader/ [19:42:10] you do not have to do Gerrit setup right now if you do not want to [19:44:56] sumanah: I didn't it came bundled along with vagrant. Yay. [19:45:02] Got it [19:45:16] already submitted patch for 2 bugs waiting for review. [19:45:58] Awesome! [19:46:02] High-five kishanio! [19:46:03] o/ [19:48:51] kishanio: I see no anchors :( [19:49:32] ignore that [19:49:50] Though, I'd suspect it'd be very useful if * action=createaccount * was hyperlinked so could be copied [19:50:28] Reedy: yes i was confused about that. Let me fix that. I'll ammend into another commit. Thanks. :) [19:51:05] Amend into the same commit! :) [19:52:02] marktraceur: oh yes same* my bad. [20:00:38] Reedy: do i hyperlink the whole title? it looks ugly though. Or do i use some html character like a arrow or something? [20:01:41] nvm i'll push it. We can decide this later. [20:02:10] I'd hyperlink action=foo [20:04:00] Reedy: Alright. [20:14:07] kishanio: Looks good to a quick look [20:14:38] Reedy: Yay. [20:16:02] Gotta crash now. Adios. More commits tomorrow. [20:16:24] I can think of more additions related to it ;) [20:17:14] Reedy: Can you put a comment or something. I'll fix it during lunch break tomorrow? [20:17:21] Just doing it now [20:17:29] Great. Thanks. [20:18:05] No, thankyou [21:04:14] what time is it there in zurich? [21:04:27] 23:04 [21:04:50] +9 o SF [21:04:51] on [21:06:05] jorm: Lots of people sitting around on IRC hacking and chatting over beer/chocolate whilst siebrand plays pop-house. [21:06:42] the design team probably isn't around, then. [21:07:54] Jared was here with a beer a minute ago [21:08:03] But I don't see any design people in this room right this second, np [21:08:05] *no [21:09:05] mostly i was looking for jared, but so it goes. [21:11:19] Lydia_WMDE: Is Jared still around? [21:11:33] Reedy: sitting next to me [21:11:42] Can you tell him jorm wants him? [21:12:02] done [21:12:08] i'm around; it's no immediate. [21:12:09] thanks [22:41:10] is Krinkle|detached awake and around the hostel somewhere? [22:41:12] I have a question [22:42:58] thedj_: hey there thedj[laptop] - you around? [22:43:07] I think someone is seeking you [22:46:16] sumanah: in room one [22:47:24] Thank you MatmaRex [22:59:20] I'm guessing ori has already left and gone to sleep [23:01:12] Krinkle: I was able to get another reflowing example! (but I still need an example of how not to do it.) [23:03:01] I'm also trying to get the story on the RL Language Data Module that RoanKattouw_away mentioned to me, the one with the bug in the freshness timestamp computation [23:07:31] sumanah: he's here too! [23:07:46] Oh that's where he is!