[07:19:24] i am out of hello kitty band-aids. this is a problem. [07:20:40] oh nooes [07:20:56] for reals oh noes. [08:15:15] Hi. Is there some quick way to add suggestions to a custom searchbox? We would like to add this on our main new page: [08:15:16] http://pl.wikipedia.org/wiki/Strona_g%C5%82%C3%B3wna/Nowa [08:25:25] You could probably re-use some JavaScript for that. [18:10:21] jorm: Can you edit Main_Page five times for me real quick? [18:10:28] I'm an anon so I get the damn CAPTCHA every time [18:10:35] i'm anon, too. [18:10:42] i fucking hate that captcha. [18:10:47] but i'll edit for you. [18:10:50] Thanks [18:10:55] I mean you can log in [18:10:59] But I can't, I'll lose my rating [18:13:48] done. [18:13:49] Note BTW that staleness is defined as /more than/ 5 revs (I thought it was >= 5 revs initially) [18:13:50] Thanks [18:14:04] haha captcha suckaaaaaaaas [18:14:20] i'm going to go beg ryan lane to remove it. [18:14:26] oh. i'll go to 6 revs for you, then. [18:15:09] I made one myself [18:15:16] You know we can also just create accounts [18:16:28] yes. but i, too, have an anonymous rating on there, and want to keep it. [18:18:48] OK I'm definitely seeing "stale":"" in the JSON [18:19:14] if( data.query.articleassessment.stale ) { [18:19:20] Fail [18:32:41] jorm: Found and fixed the bug, committing to SVN [18:40:33] heh... http://fundraising.wikimedia.org/ says "foo" [18:42:35] brion, you should really stop breaking things :P [18:42:59] has that fix been deployed to prototype? [18:43:02] jorm: Yes [18:43:09] You may need to Shift+Refresh though [18:43:19] Reedy: Well we took brion 's access away so I guess he's off the blame wheel now [18:43:32] Did we do that yet? :) [18:43:40] Well, you reset root password, no? [18:43:58] it takes more than that to take his access away [18:44:02] heh [18:44:12] it's a step in the right direction.. [18:44:25] and yay! it goes pale. [18:44:29] thanks! [18:44:44] Now let's make it disappear from the edit page [18:45:19] TrevorParscal: heh I have your problem now, want to only include a script on a page view as opposed to edit/history/... [18:45:35] ha ha [18:45:36] hackhackhack [18:45:55] $wgRequest->getVal( 'action', 'view' ) == 'view' ? :P [18:46:14] Hm oh and the ext only works in NS_MAIN, that needs to be documented too [18:46:23] /TODO:Oh fuck it, it displays everywhere, but #cba preventing it [18:46:44] ? [18:47:26] RoanKattouw: do you recall why a wikieditor context's fn.getCaretPosition() is commented saying never call this directly, yet the wikiEditor code calls it directly? [18:48:16] my port is breaking because it's saying context.$iframe doesn't exist, and it's breaking at context.fn.getCaretPosition - which should never be getting called cause the iframe is not on... [18:48:25] I'm sure this stuff is a bit blury [18:49:53] lol that definitely is blurry [18:50:03] i think i figured out what happened [18:50:12] OK so the never call it directly thing is probably outdated [18:50:14] gosh this is allot of code [18:50:28] And the functon simply needs to have a textarea mode in addition to an iframe mode [18:50:39] This happens when you switch from textarea mode to iframe mode and back in such a huge codebar [18:50:41] *codebase [18:50:49] And yes, wikiEditor is a /crapload/ of code [18:51:06] ok, so there was this thing with the TOC that trigger ready when it was addedg [18:51:32] I cleverly moved that to the create function, as the comment hinted should probably be done [18:51:41] but now ready seems to be being called prematurely.. [18:54:24] I have no idea what you're talking about, and frankly, I don't care right now; I'm working on AA :) [19:04:07] TrevorParscal: global $mediaWiki; $mediaWiki->getVal( 'action' ) :D not totally evil I guess [19:04:39] $mediaWiki? [19:09:15] See index.php [19:49:06] RoanKattouw: Database returned error "1153: Got a packet bigger than 'max_allowed_packet' bytes (localhost)" [19:49:16] MessageBlobStore::updateModule [19:52:21] http://img816.imageshack.us/img816/7301/screenshot20100916at125.png [19:53:48] this happens when 33 modules are requested [19:54:11] but not when only a few are [19:59:35] RoanKattouw: ... hello? [20:12:48] Oh sorry I'm back [20:12:54] OK that's weird [20:13:05] ok [20:13:08] basically [20:13:13] Well what's happening is pretty obvious, what's not is why it's being allowed to happen [20:13:13] updateModule [20:14:48] it's running 4 times, each time with double the number of $newRows [20:15:07] 2048, 4096, 8192, then 16384 [20:15:10] then it bombs [20:15:17] because the packet size is too big [20:15:44] Wait, why are you getting such a huge number of $newRows [20:15:48] That's not normal [20:16:01] agreed [20:16:11] I'm working on the WikiEditor stuff [20:16:22] You sure this isn't $newLinksRows[] instead? [20:16:50] Presumably you have a module that contains a crapload of messages? [20:16:52] I got that number from adding [20:16:53] var_dump( count( $newRows ) ); to line 151 [20:16:56] Oh [20:17:14] That's... shocking [20:17:36] each new row is the same thing, too [20:17:37] Actually it's theoretically impossible, because it gets rows with mr_resource='something' AND mr_lang=anything [20:17:42] Right [20:17:49] I think your DB is missing a unique index [20:17:58] i ran update [20:18:13] OK well [20:18:16] how can I purge the message blob store? [20:18:28] Can you pastebin the output of the SQL statements SHOW CREATE TABLE msg_resource; and SHOW CREATE TABLE msg_resource_links; ? [20:18:29] did you add a script for it, or do I need to do it manually? [20:18:39] Did not add a script, no [20:18:49] But please don't purge it yet [20:19:01] I'm interested in this bug and in the state of your DB [20:19:58] http://pastebin.com/KpysgEn8 [20:20:26] Yup, there's no unique index on msg_resource [20:20:50] so if I drop the table and update, I should be fine? [20:20:55] Run SELECT COUNT(*), mr_lang FROM msg_resource WHERE mr_resource='the name of the module causing problems' GROUP BY mr_lang [20:20:57] yes [20:21:04] That last query will illustrate the problem for you :) [20:21:45] btw - that query was empty [20:21:54] oops [20:21:58] i messed it up [20:22:00] 2048 [20:22:14] | 2048 | en | ? [20:22:46] right [20:23:10] fixed [20:23:13] tons of fun [20:24:30] that was crazy [20:24:31] ok [20:24:33] thank you! [20:24:41] I'm surprised it was as low as 2048 [20:24:53] That means updateModule() only ran 11 or 12 times [20:25:11] 11 [20:25:29] Oh there you go [20:25:36] It's only called when the messages array changes [20:26:38] Which apparently happened 11 times (that's a lot, what were you doing :P ) [20:28:37] ok [20:29:08] also, someting that triggered it was defining messages incorrectly when creating a ResoruceLoaderFileModule [20:30:01] I copy-pasted from the i18n file, but forgot to convert it from array( key => value, key => value, key => value ) to array( key, key, key ) [20:30:37] Right [20:35:50] OK I'm gonna go to bed now [20:36:04] I'll be working tomorrow but will be on line a bit later than usual I think