[00:08:15] how can i set my wiki to read only , and if i do will i be able to import .xml pages with importDump.php ? [00:08:42] readonly for guests and registered users that is [01:19:56] how do you enable cascade protection to work with semi-protection? [01:21:28] the page itself is semi-protected, anything included in it is fully protected [01:21:45] i know, how do u enable it? [01:22:03] just check semi-protection and click cascade [01:22:21] by default, you can click cascade with full protection [01:22:27] only [01:22:43] hmm, i haven't seen it not enabled [01:25:00] I thought that cascade can only be set with full protection by default. but I know there is some kind of setting to control that [01:25:40] allowing cascading to cause full protection (or even just cascading protection) gives the power of protection to autoconfirmed users [01:26:28] i know [01:28:49] I would just like to know how to enable it, not that I want it done anywhere [01:35:17] 03(mod) Undelete page with invalid title at en.wikipedia - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=13729 +shell (10grahamwp) [01:36:22] 03(mod) pre-built search returns no matches - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=12627 (10filop) [01:50:20] can you restric non-logged in users from reading a namespace [01:52:54] http://www.mediawiki.org/wiki/Manual:Preventing_access#Restrict_viewing_of_certain_specific_pages [01:53:24] better to make a separate wiki (same install, separate db) with all read access restricted [01:54:48] yea i see that now :/ [02:22:39] 03(FIXED) FlaggedRevs caching/slave lag issues (tracking) - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14029 +comment (10JSchulz_4587) [02:35:21] 03(NEW) Special:OnlyPages, like AllPages but doesn't go on and on - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14188 15enhancement; normal; MediaWiki: Special pages; (jidanni) [02:35:49] O_o [02:37:56] hi, i'm trying to set up several mediawikis (e.g. for multiple languages) but don't want to do a new mediawiki install for each language (to make updates/patches/etc. easier), i was thinking of creating several directories which each have a "ReallyLocalSettings.php" file and a symbolic link to 1 shared mediawiki directory and have the LocalSettings file refer to the ReallyLocalSettings in the parent directory but it turns out that [02:38:49] 14(WFM) Special:OnlyPages, like AllPages but doesn't go on and on - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14188 +comment (10pathoschild) [02:39:46] Splarka: Would you happen to know how to configure what I previously asked? [02:41:01] how do I use the User function getId to get the database number of the current user? [02:41:03] csar: You cut off at "it turns out tha", but you're probably looking for [02:41:15] $wgUser->getId() [02:41:42] is wgUser already defined, or do i need to do so? [02:41:51] it is a global variable [02:42:06] Pathoschild: yes! thanks! [02:42:07] ok. [02:42:11] Welcome. :) [02:42:21] thankyou. I'll try it. [02:44:12] Fatal error: Call to a member function getId() on a non-object in /home/content/d/e/m/demonscarnage/html/extensions/SecurePHP/SecurePHP.body.php(65) : eval()'d code on line 2 [02:44:30] I am trying to use within the extension tags [02:44:43] please, tell me you aren't writing an extension to include PHP code in pages [02:44:52] no, just using one [02:44:56] ... [02:45:03] or attempring to anyways [02:45:21] yeah... i think the solution to that is: don't. [02:45:24] *attempting [02:46:11] what would you suggest? I am trying to make dynamic pages, and database calls, seems to be the easiest way to do it. [02:46:29] create a special page or parser tag [02:49:10] hm... is it as tricky as it looks? [02:49:31] i'm in the middle of trying to install easytimeline [02:49:35] and... [02:49:44] not sure about [02:50:04] I dont know if a full blown extension would be overkill or not (http://www.mediawiki.org/wiki/Manual:Special_Pages) [02:50:05] $wgTimelineSettings->ploticusCommand = "/usr/local/bin/pl"; [02:50:22] i installed ploticus on ubuntu hardy using sudo apt-get install ploticus [02:50:27] it installed it fine [02:50:38] which ploticus returns [02:50:46] /usr/bin/ploticus [02:50:50] so what should this line be [02:51:03] $wgTimelineSettings->ploticusCommand = "/usr/local/bin/pl"; [02:51:07] i have it like this [02:51:17] $wgTimelineSettings->ploticusCommand = "/usr/bin/ploticus"; [02:51:52] anyone ? [02:56:32] flyingparchment: I am getting the same error when I put it in LocalSettings.php. [02:56:42] I am not sure why. [02:58:54] 03aaron * r35066 10/trunk/phase3/includes/filerepo/ (FileRepo.php LocalFile.php OldLocalFile.php): Add functions to get an image via sha-1 [03:07:22] have anyone here installed easytimeline extension ? [03:13:44] 03(mod) Special:Categories PREFIX= or REGEXP=, not just OFFSET - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14188 (10N/A) [03:15:19] 03aaron * r35067 10/trunk/phase3/includes/ImagePage.php: Tweak $time default [03:18:46] 03(mod) Special:Categories PREFIX= or REGEXP=, not just OFFSET - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14188 (10N/A) [03:20:00] does anyone know of ploticus? i'm having trouble to getting pl to be executable [03:24:00] someone should know the answer to that [03:24:16] its something so simple and i'm just stuck [03:24:39] 03aaron * r35068 10/trunk/extensions/FlaggedRevs/FlaggedRevs.php: File must match [03:27:12] 03aaron * r35069 10/trunk/phase3/includes/ImagePage.php: [03:27:12] * Use lazy initialization with loadFile() [03:27:12] * Add $current/$time to field list [03:27:12] * Fix some ugly coding style [03:28:50] 03(NEW) Feature request: special page listing IPs with maxed out account registrations - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14189 15enhancement; normal; MediaWiki extensions: CheckUser; (mapellegrini) [03:30:40] 03(ASSIGNED) Feature request: special page listing IPs with maxed out account registrations - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14189 +comment (10JSchulz_4587) [03:32:15] <^demon|brb> Quick question: If you've added a namespace, which maintenance script reassigns the pages to the correct namespace? [03:33:51] ^demon, i dont know how to answer that cause i am a noob, but i have an easy question for you if you dont mind [03:34:07] ^demon|brb: let me check [03:35:03] <^demon> orudie: Shoot. [03:35:07] <^demon> AaronSchulz: Thanks. [03:35:35] cleanupTitles.php [03:35:47] i'm trying to get easytimeline to work, stuck at getting pl executable [03:35:53] <^demon> AaronSchulz: What a fantastically guessable name. [03:36:01] <^demon> orudie: What's the permissions on it? [03:36:21] ^demon, i dont even know where its installed/located [03:36:29] which pl returns nothing [03:36:45] ^demon: I was almost sure that was it, just had to check the code [03:36:54] which ploticus returns /usr/bin/ploticus [03:37:44] <^demon> orudie: I really don't know I'm afraid. [03:38:05] so should i use $wgTimelineSettings->perlCommand = "/usr/bin/ploticus"; or ..."usr/bin/pl"; [03:38:07] 03(mod) Addition of "LIKE" parameter to doQuery() - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=12127 (10N/A) [03:39:46] <^demon> /usr/bin/perl? [03:42:14] Maximillion|away: don't know, check DefaultSettings.php maybe [03:43:13] Splarka, could you assess my question please maybe ? [03:44:14] k, thanks [03:44:14] Splarka, stuck at this tutorial http://www.mediawiki.org/wiki/Extension:EasyTimeline/installation#Download_Ploticus [03:46:15] orudie: dunno about it, I do know Wikia has some wikis using easytimeline tho [03:54:26] Hey, quick question! I cannot remember how to keep my medawiki pages from storing cache pages (which require a Shift + F5 refresh), and I cannot find the page [03:54:30] Can anyone direct me there? [04:11:13] 03raymond * r35070 10/trunk/phase3/ (3 files in 2 dirs): [04:11:14] Follow up for r35065: [04:11:14] * Add new message 'categoriesfrom' to messages.inc [04:11:14] * Add default existing 'categories-summary' as optional message [04:11:14] * Stick together all Special:Categories messages [04:15:14] <^demon> AaronSchulz: Didn't work, I'm afraid. Still have nothing in namespaces 100-103 [04:56:05] 03raymond * r35071 10/trunk/phase3/ (2 files in 2 dirs): Add a new section for parser/template warnings [05:03:27] 03(mod) "You've got new messages" is displayed for a non-existent discussion page - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14077 (10innocentkiller) [05:04:01] 03(mod) "You've got new messages" is displayed for a non-existent discussion page - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14077 +need-review +patch (10innocentkiller) [05:11:14] 03raymond * r35072 10/trunk/extensions/FlaggedRevs/FlaggedRevsPage.i18n.php: Add comment about optional variable $1 [05:23:50] 03raymond * r35073 10/trunk/phase3/includes/Parser.php: Add corresponding messages to have a chance to find the usage of these messages via grep [05:28:19] 03aaron * r35074 10/trunk/extensions/FlaggedRevs/FlaggedRevsPage.php: Pass on wpApprove [06:23:56] 03(mod) Please enable autopromotion for flagged revisions on de. wp again - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14153 (10pbirken) [06:26:21] lol @ http://valleywag.com/391633/steve-ballmer-gets-egged-in-hungary [06:30:49] 03brion * r35075 10/trunk/phase3/includes/ (4 files in 2 dirs): (log message trimmed) [06:30:49] Got sick of testing local copies of Wikipedia articles with no images handy. [06:30:49] Threw together a really quick hack FileRepo class to grab images from the remote wiki using the MediaWiki API. [06:30:49] Amazingly it sort of works -- be warned however: [06:30:49] * no scaling seems to be done yet -- multi-megapixel images in your browser :D [06:30:53] * no caching of lookups -- verrrry slow [06:30:55] * lookups are done one at a time, not in any kind of batching [06:50:54] what scheme is brion hatching, no scaling, no caching, no batching? [06:51:42] *AaronSchulz snickers [06:58:23] 03(mod) Please enable autopromotion for flagged revisions on de. wp again - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14153 (10JSchulz_4587) [06:58:35] 03(mod) Support appending to the toolbox - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=4086 (10jayvdb) [07:07:23] 03aaron * r35076 10/trunk/extensions/Renameuser/SpecialRenameuser.php: Might as well [07:26:29] 03siebrand * r35077 10/trunk/phase3/languages/messages/ (21 files): Localisation updates for core messages from Betawiki (2008-05-20 09:15 CEST) [07:56:54] Werdna: hey its ok [07:57:01] Werdna: what was the problem? [07:57:49] spsneo: you don't have a required extension. [07:58:02] what extension do irequire? [07:58:17] Werdna: is it available in fedora yum repo? [07:59:03] TimStarling: Would you kill me if I loaded an array of 1452 IP addresses from memcached as an 'expensive' permissions check? (That's the number of tor exit nodes we need to block), or should I be putting that in a global table, or adding a memcached item for each individual IP and setting that to 1 [07:59:09] spsneo: XML extension, I don't know [07:59:57] you could probably load it [08:00:02] we already load a few lists like that [08:00:52] so there's no stress with loading a big array like that? I figured memory wasn't an issue... 22kb v. 50MB or so for wikipedia s a whole. [08:01:52] but I'm wondering whether memcached or mysql does the searching noticeably faster. [08:05:11] sorry, got to go, bbl [08:05:17] you could always benchmark it [08:05:19] okay [08:05:54] hi Tim, bye Tim [08:06:56] 03btongminh * r35080 10/trunk/phase3/includes/User.php: Force reindexation of User::mRights. Hooks have the possibility to unset rights, leaving the array out of order. [08:07:04] hi domas [08:09:18] hey domas, wanna hear my weird plan for reducing DB requests? [08:09:30] listening. [08:09:42] caching in Database object. [08:09:45] permissions queries can be eliminated [08:09:47] I did it on one of my other projects. [08:09:48] ok, you are crazy [08:10:01] why? where? [08:10:06] You can't get every query, but some very simple selects can cache in the Database object. [08:10:20] where would you cache it? [08:10:26] in Database.php [08:10:37] yeah, but what would be cache storage? [08:10:57] oh, it's just per request [08:11:13] so if the same query is executed twice, we don't hit DB twice. [08:11:15] we don't do much repetitive requests [08:11:20] do we? [08:11:26] I don't know. [08:11:58] A lot of extensions might .. the poorly written ones at least :) [08:12:27] <_wooz> lo [08:13:15] I found it useful in cutting down queries on one of my projects [08:14:30] one of my ex-colleagues has developed a graph storage engine for mysql [08:14:42] the problem - for now it has proprietary license [08:14:51] otherwise we could have lots of very interesting applications for that [08:47:53] 03(mod) Wrong table schema / invalid queries in PostgreSQL - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14071 normal->04CRIT (10meier.uli) [08:54:37] 03(mod) "Log in" and "E-mail password" buttons too close together on login form - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14187 summary (10roan.kattouw) [09:16:14] 03catrope * r35081 10/trunk/phase3/ (3 files in 2 dirs): [09:16:14] Unified aiprop and iiprop somewhat by adding iiprop=mime and aiprop=metadata. [09:16:14] The size vs. dimensions discrepancy is weird, but won't be fixed for backwards [09:16:14] compatibility. Also iiprop has user, comment and archivename because it handles [09:16:14] file *revisions*, whereas allimages doesn't. [09:18:07] hi folks, does anyone know if there's plans for a 1.12.1? [09:18:41] why> [09:20:13] just wondering [09:22:39] If there is a security vulnerability in 1.12.0, then yes; otherwise unlikelry. [09:22:43] *unlikely [09:30:53] /w 24 [09:42:34] 03rotem * r35082 10/trunk/phase3/languages/messages/MessagesHe.php: Update. [09:56:08] 03(mod) robots.txt -- exclude ro:VfD - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=12546 (10rsocol) [09:56:09] hi there, i'm trying to include a within a template. i use {{#tag:}} magic word, but it always constructs something like even when using {{#tag:ref||foo}}, and this form of throws an error ... any ideas? [09:57:02] what exactly do you want? no name? [09:57:13] only a name [09:57:27] but ref only works without content when using [09:57:40] is apparently not supported [09:57:48] ahh, you wern't clear on that... [09:58:03] I don't think #tag does self closing [09:58:47] Splarka: I think the problem is that doesn't support and #tag doesn't self close tags when called without content ... [09:59:34] right, but you said "i'm trying to include a within a template" not "i'm trying to include a within a template" [09:59:38] so were confusing us! [10:00:33] one of the two behaviors should be changed then [10:00:36] sorry for that. indeed I want to provide both ways, i. e. creating a new ref only with content (which is no problem) and using an old ref only with name (which is a problem as i stated above) [10:00:51] Splarka: Maybe you have any other idea how to create such a ref? [10:01:12] you could pass it as a parameter to a template maybe [10:01:25] {{foo|bar=}} [10:01:27] ugly tho [10:01:43] jep, quite ugly. [10:02:42] I think it would be quite an improvement to both mechanisms (ref and #tag) if they would cope with this case. the ref behaviour is nearly a bug imho [10:02:43] is [10:02:43] {{#tag:ref| |name=foo}} [10:02:50] not to your liking? [10:03:26] hmm, from what I can see, the content is just ignored on subsequent named tags [10:04:14] bar [10:04:15] anything here is ignored [10:04:17] nope, that's not working. it overwrites the content of the ref [10:04:21] jep [10:04:46] well, depends on the order [10:04:57] if you can have the first named one load first it seems to work, right? [10:05:13] yeah, but this is quite ugly [10:05:20] okay, file a bug [10:05:26] hello [10:05:28] produces an error [10:05:39] Cite error: Invalid <ref> tag; refs with no name must have content [10:05:42] as you know [10:05:51] Splarka: im typing already ;) [10:05:56] and instead should be treated identical to [10:06:09] heh [10:06:12] fair enough [10:06:24] that is a horrible error too, incorrect and bass ackwards [10:07:21] but that is a good point about #tag [10:07:35] it can't predict if an extension supports vs [10:07:54] 03(NEW) accept explicitly closed empty tags - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14190 normal; normal; MediaWiki extensions: Cite; (codeispoetry) [10:08:05] Splarka: I'm going to file the next bug for #tag [10:08:31] oh hell, what a layout ... [10:08:41] but what would the syntax be? {{#tag:foo|/|name="bar"}} ? [10:08:55] vs {{#tag:foo||name="bar"}} for [10:09:39] is there any reason to do ? [10:09:40] I'm not sure. I think both should create right, they aren't real parameters... [10:11:20] the first option is always the content [10:11:25] (unlike the extension, where the last always was) [10:11:25] Splarka: how can they "not support" it when the hook function is just called with a little different params? [10:11:33] I think a behaviour more like templates would be nice [10:13:56] Niker: well, if every parser extension used the same hook function... instead of say, a preg match on the text [10:14:19] who knows what evil lurks in the minds of men! [10:15:16] but if changing the expected behavior of #tag breaks them, who will take the blame? not I, the buck doesn't stop here, it never arrives ^_^ [10:15:29] [10:22:53] Splarka: everything that uses preg_match is broken? [10:25:35] 03(mod) Enable GlobalBlocking extension - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=8707 (10cometstyles) [10:31:28] Nikerabbit: I mean, if they're just scraping the text expecting only non-self-closing tags [10:38:24] Hi [10:39:29] was that /amsg? [10:40:06] "Hi" ? [10:40:27] no, It wasn't [10:40:31] [12:38] Fire: Hallo [10:42:15] *Fire just wrote a 3h Corporate Finance Test and has a bad headache. [12:04:44] 03(FIXED) Search by first letters or digits in [[Special:Categories]] - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=13095 +comment (10lejonel) [12:22:33] hi.. I have a small question.. if user logs out from mediawiki while being in user preferences page.. mediawiki correctly forwards to logout page. but then if you press "back" in your browser, you get back to the last users preferences and can see his information.. is there way to prevent this? [12:23:08] no, that's a limitation of your browser. [12:23:49] your browser stores the information from the page. If you refresh that page, you correctly get an error message. [12:26:07] Werdna: no way to force browser to reload that page? [12:26:44] no [12:26:50] why is this a big deal? [12:27:04] on public computers people get to see your email address for example. [12:27:55] it's up to the browser to provide a way to erase all such data. [12:28:06] this is the same for all webpages, as far as i know [12:28:10] but how do other web services do this.. after logging out you can't go back.. [12:28:17] pressing "back" in the browser does not cause it to reload the page. [12:28:28] basse: do they? really? [12:28:34] even with javascript off? [12:28:45] havent tried without javascript [12:29:29] a js protection agains going "back" is easy to circumvent anyway [12:33:33] well, maybe we can live with it.. i dont think it's such a big deal but i was just asked why this happens.. [12:33:53] people should clear their data anyway after using public compus [12:50:38] *Sasa^Stefanovic off [12:55:47] 03(FIXED) Allow alphabetic offset specifier in Special:Categories - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=8881 +comment (10lejonel) [13:04:07] 03(NEW) Change autoconfirmed settings on enwiki - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14191 15enhancement; normal; Wikimedia: Site requests; (Andrew) [13:31:34] 03raymond * r35083 10/trunk/phase3/RELEASE-NOTES: Add bug per r35065 [14:01:16] gm all [14:01:39] it's rather hard to customize some special pages [14:02:18] it seems that the text put into corresponding system message pages is not parsed as wikitext [14:02:37] Not all text is, no. [14:02:40] Because wikitext is *slow*. [14:02:44] for instance, i don't see an obvious way to customize the create account screen [14:03:02] well, if i wanted speed, i'd do everything in assembler [14:03:36] i wouldn't mind if i could rig it in HTML [14:04:10] "Slow" as in if every message accepted wikitext, some pages might take minutes to load just the interface. [14:04:12] http://arms.x10hosting.com/w/index.php?title=Special:Userlogin&type=signup [14:04:31] here, customization failed using HTML [14:04:43] Messages allowing HTML would be fine as far as I'm concerned, but Brion is antsy about allowing any raw-HTML messages, so they're being phased out. [14:05:07] well, one or the other, i say [14:05:18] http://arms.x10hosting.com/w/index.php?title=MediaWiki:Gotaccount&curid=65&action=history [14:05:23] tried it first as wikitext [14:05:26] then as html [14:06:08] this particular screen seems especially annoying to me [14:06:14] philosophies differ [14:06:32] but i think right when someone is being invited to join, this is the time to point him in the direction of rules [14:07:01] especially rules for usernames! [14:07:30] ideas? workarounds? [14:07:34] Hello [14:07:38] hi [14:08:52] After my 1.12 update, I haven't remember that on one wiki edittool are no longer displayed (whereas MediaWiki:Edittools article is not empty). Is there any change about that ? [14:10:10] Xiong, which message is it? [14:10:38] http://arms.x10hosting.com/w/index.php?title=MediaWiki:Gotaccount&curid=65&action=history [14:11:43] s/remember/notice/ [14:12:22] 03(mod) Please enable autopromotion for flagged revisions on de. wp again - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14153 (10DaB.) [14:12:23] Morning/Afternoon/Evening all, was wondering if anyone can help. Seems such a simple one but can't fathom it. I have a Debian Etch setup running a website, I am trying to installl latest stable V of mediawiki, when i goto the /wiki directory for the first time its prompting me to 'open' or 'save' the file. I have checked and php5 is installed and DirectoryIndex for that domain does have index.php listed. What am I missing? [14:13:41] do other php files work? [14:14:02] Did you get mediawiki yourself, or are you using the buggy and unsupported debian package? [14:14:02] php5 is tinstalled as/for what? [14:14:13] thast the only php thing on there [14:14:14] mod_php? suphp? php-cgi? php-cli? [14:14:19] i d/l from mediawiki.org [14:14:30] Ok... that's one issue down [14:14:38] *Dantman|FS wishes debian would delete that damn package [14:14:55] hehe [14:14:56] <3 debian [14:14:59] What webserver are you running? [14:15:00] did mw get shovelwared? [14:15:02] when you say php5 is installed as/for what - What do you mean [14:15:06] apache 2 [14:15:10] Ya, Debian is nice... But not that crappy MW package [14:15:23] did you "apt-get install php5"? [14:15:25] or that crappy openssl package [14:15:28] yup [14:15:33] imho something like mediawiki isnt best suited for a debian package [14:15:42] Eh? OpenSSL is working for me... [14:15:48] so is my issue fubar? [14:15:51] Well... actually I'm on ubuntu [14:15:55] and such things never seem to get maintained properly. a badly maintained package is worse than no package imho [14:16:15] Ya, honnestly php applications are not good package material [14:16:20] Same goes for phpMyAdmin [14:16:24] Dantman|FS: hes referring to the huge security hole recently [14:16:26] UKPbz___: have you installed libapache2-mod-php5 ? [14:16:34] ^_^ Just update [14:16:37] Dantman|FS: Openssl could work, but your key can be very weak [14:16:42] Buzz_, the Debian package seems to be up-to-date. [14:16:46] funny that ubuntu made a better fix earlier on with the ssh-vulnkey program. although at least it got into debian a couple of days later [14:16:48] But it moves stuff around randomly. [14:16:57] let me check [14:17:02] Also has this weird pgsql patch that seems wrong. [14:17:05] Nope... I had a recent dist upgrade... Ubuntu Hardy has the good version [14:17:13] G_SabinoMullane, did you ever look at that Debian package link I gave you? [14:17:15] It even prompted me to regenerate my keys on update [14:17:29] Dantman|FS, all versions of Ubuntu have the good version *now*. [14:17:32] Hardy didn't have it when it shipped. [14:17:38] Oh heh... [14:17:49] Well, dist upgrade anyways [14:17:51] 03shinjiman * r35084 10/trunk/phase3/languages/messages/ (4 files): Localisation updates Cantonese, Chinese and Old/Late Time Chinese [14:18:02] I am writing an extension, and I have a question about hooks. If i want a hook to be executed when the registration page is called, where in my extension should it be, and what would the syntax? [14:18:14] Simetrical: i ahev to say im surprised. there are a few things i run which always seem to be lagging behind.. [14:18:14] UKPbz___: you'll also want a few more things, like php5-mysql, php5-curl, php5-cli, php-pear, php5-tidy, and maybe more [14:18:15] would be* [14:18:29] Buzz_, well, are you running stable or unstable? [14:18:34] Stable is like 1.7, I think. :) [14:18:45] ierpe: http://www.mediawiki.org/wiki/Manual:MediaWiki_hooks [14:18:49] Simetrical: well stable, but i backport stuff if its available. [14:18:51] im in [14:18:52] UKPbz___: not sure the package names are exactly like that on deb, i'm looking at ubuntu here. should be fairly close though [14:19:12] Simetrical: new spamassassins take forever to get into debian volatile which is supposed to have the very latest of such things [14:19:13] Bah... php5-tidy isn't neccessary... And php-pear is only needed if you want to use pear [14:19:19] ok lemme check [14:19:24] one sec [14:19:31] the tidy module is _much_ faster on loaded systems, though [14:20:41] just adding whats missing [14:21:00] Dantman|FS: and the same for curl, yes. or php5-cli. [14:21:06] i was giving the "usual" stuff [14:21:10] but it doesnt work, my hook is not called [14:21:18] Well, php5-cli is more essencial [14:21:41] php-pear isn't needed unless you want extra libraries, and there are few wiki that actually install tidy [14:22:19] ok loaded all them and still a prob [14:22:27] What error? [14:22:28] let me put another php up there [14:22:38] Simetrical: another package which is imho badly maintained is awstats. the debian config for it is the wrong way round. ie. to have multiple sites support, it should have it so a base config is included and so you can have a separate small config per site. but they have it in reverse [14:23:04] Simetrical: and i notice stuff like this about many packages.. proftpd still using custom log rotation (not logrotate.d) [14:23:07] hey Fire [14:23:08] Same goes for ruby packages [14:23:08] Re [14:23:44] any way to customize Special:Login? [14:23:52] preferably without hacking the php file [14:25:56] Xiong, you could look for hooks. [14:26:29] i'm not that sophisticated [14:26:32] i'm a hardware guy [14:26:47] what do you mean by customisation ? [14:26:56] specifically. [14:27:08] http://arms.x10hosting.com/w/index.php?title=MediaWiki:Gotaccount&curid=65&action=history [14:27:27] http://arms.x10hosting.com/w/index.php?title=Special:Userlogin&type=signup [14:27:50] won't parse wikitext, won't display HTML [14:27:53] what gives? [14:28:34] Simetrical: Yes, thanks, it's on my todo list to look at in more detail. I'm not convinced it's a good idea to do it the way they did. [14:29:17] i want one of my extension function to be executed when the signup page is called, and its working because i hacked SpecialUserLogin.php (added a test on the hook i created in myextension.php), but how can i do it without changing the code of SpecialUserLogin.php? [14:29:28] hooks. [14:29:35] but i dont get it [14:29:39] i read the hooks page [14:29:47] and i dont get it [14:29:54] Xiong: not all system messages allow for html. it depends how the strings are used i guess. [14:29:55] i created a hooks in myextension page [14:30:10] and i call it in specialuserlogin [14:30:48] i understand what you are saying [14:30:58] but it means that people who will install this extension will have to go and paste some code in other files, [14:31:08] but i don't have the experience to fill in the blanks [14:31:17] i need more or less explicit instructions [14:31:18] and i know that with hooks you can do it differently, but i dont understand how [14:31:36] "patch this file here with this code" [14:33:04] After my 1.12 update, I haven't notice that on one wiki edittool are no longer displayed (whereas MediaWiki:Edittools article is not empty). Is there any change about that ? [14:33:05] 03btongminh * r35085 10/trunk/phase3/includes/api/ (ApiQueryAllimages.php ApiQueryImageInfo.php): Use ApiQueryImageInfo::getInfo for both ApiQueryAllimages and ApiQueryImageInfo. Should also give some more consistency between the two modules. [14:33:51] is there a hook for the signup page? something like $wgHooks['UserLogin']['signup'] ? i cant find it [14:34:15] 06(LATER) Please enable autopromotion for flagged revisions on de. wp again - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14153 +comment (10JSchulz_4587) [14:34:33] 03btongminh * r35086 10/trunk/phase3/includes/api/ApiQueryImageInfo.php: Forgot one $this => self when making ApiQueryImageInfo::getInfo static. [14:34:35] ierpe: you want $wgHooks['UserLogin][] = 'MyHook'; [14:34:58] ill try [14:35:26] werdna: can you extend that bit of advice into a plan of action? [14:35:40] i gather, i write that line into localsettings.php [14:35:46] then what? [14:35:51] not localsettings [14:35:55] okay [14:35:57] a file included by localsettings,usually [14:36:03] do you see that more info is needed? [14:36:10] at least for us dumb hardware guys [14:36:21] !man hooks [14:36:21] --mwbot-- http://www.mediawiki.org/wiki/Manual:hooks [14:36:30] i just want mediawiki:gotaccount to work properly [14:36:46] G_SabinoMullane, I took that for granted. I'm in a mind to send a snippy letter to the maintainer about Debian policies about sending patches upstream, but I can't do that until you look at it. AFAICT the maintainer just committed the change to their version without asking any questions or understanding what it did. [14:36:51] it will not do me much good to read man [14:36:54] Charming in light of recent events. [14:36:56] i don't have sufficient background [14:36:57] it doesnt work [14:37:07] $wgHooks['UserLogin'][]= 'allowedCountry'; [14:37:10] rather, i've been reading man like mad [14:37:11] hi guys, back - so no php files work :( [14:37:13] thats what i created [14:37:24] and it will be years before i can understand it [14:37:25] but my function is not called when the sighup page is called [14:37:31] signup* [14:38:12] Simetrical: Heh. Well, it's not *harmful* per se, but it's inefficient to parse every single select query and apply a hack, when the better action is to fix the source queries. [14:38:21] is it possible thats theres no hook for where i want on and that i HAVE to hack the code? [14:38:23] G_SabinoMullane, yes, in this case. [14:38:30] ierpe, it's possible, yes. [14:38:33] ok [14:38:35] thx [14:38:40] how about: "do this to customize the login/signup screens"? [14:38:52] so in this case i have to hack the file? [14:38:57] Simetrical: Bad on them for not sending it up. Good that they are using MW I suppose. [14:38:58] ideally in wikitext [14:39:02] but HTML okay too [14:39:48] ierpe: If you can use hooks listed at http://www.mediawiki.org/wiki/Manual:MediaWiki_hooks, you obviously need to try another way [14:40:15] you mean if i CANT use [14:40:18] ? [14:40:58] so it looks like a php5 prob, having loaded all the packages listed above (except php5-pear) any ideas why it still won't wotk? I don't have to recompile apache2 do I? [14:41:04] ierpe: yes [14:41:06] but it means that people who will install the extension will have to modify the code, which is not the way it should be for an extension, am i right? [14:41:16] :/ [14:41:17] sorry [14:41:18] ah well [14:41:21] maybe i don't belong here [14:41:40] is there a chan for poor pudknockers who just need to make the damn thing work? [14:41:58] lol I should join too :-) [14:42:26] gotta go [14:42:31] i'll try later [14:44:58] <^demon> AaronSchulz: Fyi, found the correct script is namespaceDupes.php [14:45:07] 03aaron * r35087 10/trunk/extensions/FlaggedRevs/ (FlaggedRevs.php FlaggedRevsPage.i18n.php): $wgSpecialPageGroups [14:46:30] *Raymond_ runs to update flaggedRevs :) [14:46:56] AaronSchulz, why are rev_deleted messages being displayed on Wikipedia if the functionality isn't enabled there? [14:51:34] Any help anyone? 10Duesentrieb01 ? [14:53:21] UKPbz___: did you *restart* apache? [14:53:29] other than that, i can't think of anything [14:53:37] I did :-( [14:53:39] read up on confuguring mod_php in general [14:53:49] the package *should* do that for you. but maybe it doesn't. [14:54:04] yeah it should, can I use php4? [14:54:29] no. [14:54:34] k [14:56:38] 03raymond * r35088 10/trunk/ (5 files in 5 dirs): Localisation updates German [15:00:30] Xiong: ok. i have a fix for you if you still need help. delay because my local copy of mediawiki decided to break [15:00:55] Xiong: in SpecialUserlogin.php there is 2 lines [15:00:55] if( $this->showCreateOrLoginLink( $wgUser ) ) [15:00:55] $template->set( 'link', wfMsg( $linkmsg, $link ) ); [15:01:13] sorry. the second line has wfMsgHtml. change it to wfMsg [15:01:19] then you can use html in the system message [15:01:57] i wonder why it wasnt wfMsg in the first place? maybe a mediawiki dev can answer that ? [15:03:07] 03(NEW) Add import source tr.wiki to de.wiki - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14192 15enhancement; normal; Wikimedia: Site requests; (raimond.spekking) [15:03:19] trying to debug the LoopFunctions extension; apparently, it's looking for $parser->mArgStack as an array (which, I assume, means that it's done something with the data from the page), but there's nothing in the data. could anyone assist me? [15:03:25] Xiong: ill message you a diff [15:04:02] dp: dunno if that is your problem, but the parse changed quite a bit between 1.11 and 1.12. That broke several extensions. [15:04:46] Duesentrieb: from what I can tell, it's just looking to get all of the parameters that were passed to a template; is that something that can be done in the new version? [15:08:45] Checking filearchive indices... [15:08:45] Query "ALTER TABLE `filearchive` ADD INDEX fa_user_timestamp (fa_user_text,fa_timestamp), DROP INDEX fa_deleted_user" failed with error code "ALTER command denied to user 'homewiki'@'localhost' for table 'filearchive' (localhost)". [15:09:02] MinuteElectron: your admin user doesn't have enough rights [15:09:17] dp: probablym, but i don't know how. the template handling especially is quite different now. [15:09:25] But surely ALTER TABLE should be granted to the user during MediaWiki installation. [15:09:25] in my extension i want a javacript alert to popup, but the $wgOut->addHTML() doesnt work ... :/ any idea why? [15:09:31] look into the PreProcessor classes and see if you can make sense of them [15:09:35] i can't, so far [15:09:42] Duesentrieb: do you have a link to them? [15:09:49] huh? [15:09:52] I understood the error fine, but it just seams unintuitive for the user MediaWiki creates to not be able to perform an update. [15:09:55] you are looking at the code, no? [15:09:58] nm [15:10:00] MinuteElectron: i don't tkink [15:10:16] I am now [15:10:19] MinuteElectron: this should be the root user [15:10:27] ialex: no! [15:10:35] create another user with all privileges on the wiki database [15:11:16] The annoying thing is, although it may not have been intentional, the user that MediaWiki creates always worked during updates before -- until now. [15:12:27] And now one must go trawling through documentation to fix the error. [15:14:55] is there a channel for mediawiki related to javascript pbs? [15:15:04] 03aaron * r35089 10/trunk/extensions/FlaggedRevs/FlaggedRevsPage.php: Use accessor [15:15:36] If your web app's user needs to be able to, or even can use DROP, ALTER, or TRUNCATE, your app is insecure. [15:15:50] why? [15:15:53] ierpe: #mediawiki-scripts, but i don't know how active it is [15:15:59] thx [15:16:15] Because the general user of the app shouldn't be able to modify the database like that [15:16:20] DELETE FROM x WHERE 1=1 :) [15:17:12] Dantman|FS: "general user" ? The only person who would have that level of access to the server would be someone who administers it. [15:17:47] In SQL context, general user is the db user who is used to run mediawiki [15:18:44] you didn't answer teh question then, why? [15:18:45] *zsh thinks sajax is the worst documented lib ever [15:18:52] Duesentrieb: I can't see anywhere in the Parser that has the arguments [15:19:14] dp: sorry, i don't understand the new system either. [15:19:15] Dantman|FS, nonsense. You can delete the whole table. [15:19:29] Dantman|FS, anyone with DELETE permission can delete the database. [15:19:30] And? You still shouldn't be able to alter structure [15:19:36] Why not, if it's useful? [15:19:37] Duesentrieb: do you know anyone who might? [15:19:43] It's not a security risk. [15:19:51] And it's convenient. So what's your objection? [15:20:03] dp: TimStarling wrote it. No idea who else managed to understand it by now. [15:20:05] The principle of minimal privilege only applies when increasing the privileges would open security risks. [15:20:06] This doesn't. [15:20:32] it's not *that* bad ;) [15:20:35] i have a simple javascript alert written in one of my extension code, but when the function is called, the script doesnt come up, even with $wgOut->addHTML(), any idea why? [15:21:18] 03grondin * r35090 10/trunk/extensions/EmailArticle/ (EmailArticle.i18n.php EmailArticle_body.php): adding three internationalization messages [15:23:53] Not granting the ALTER privilage is simply going to to make inexperienced or lazy system administrators use the root user for the maintenance scripts simply because it is far easier than looking in the MySQL documentation. [15:24:00] (which is what I am now going to do). [15:24:34] Which reduces security even further. [15:26:25] ierpe: $wgout->addScript() [15:26:32] More to the point is that denying that doesn't increase security under *any* circumstance. [15:26:44] It's a knee-jerk impulse with no reason behind it. [15:26:47] AFAICT. [15:28:20] zsh: doesnt work either [15:28:30] Web app deals with temporary tables... Dropping of those temporary tables is done with DROP instead of DROP TEMPORARY as they should be... Now say that one of these temporary tables collided and matched the name of another existing table in the database. Perhaps because table prefixes are being used and multiple apps are on the same database. What happends? The table unrelated is dropped [15:28:52] Wouldn't have happened if DROP TEMPORARY was used, and the sql user had no drop permission. [15:29:11] It's not just user access, it's programming bugs that can be an issue to. [15:29:29] Is a programmer ever going to put an alter anywhere in his or her code? [15:29:44] 03grondin * r35091 10/trunk/extensions/EmailArticle/EmailArticle.i18n.php: Localisation updates for extensions messages from Betawiki [15:30:00] ierpe: do you have global $wgOut in your function? [15:30:01] Just because you can't think of any way it improves security doesn't mean there isn't a level where it improves it [15:30:07] yep [15:30:39] but see its not in the same page [15:30:40] Dantman|FS: Programming errors are not security issues. [15:30:52] its like the function is called in specialuserlogin [15:31:01] which is the page being displayed [15:31:14] and its in my extension file that i want to add the alert [15:31:53] Honnestly this is a pointless conversation... Talk to Tim, Brion, or some of the actual experts... I've got an extension to code [15:32:26] You started it by suggesting that a web app that needs ALTER is insecure. ;) [15:32:34] lol real girls [15:32:40] heh [15:32:43] ;) [15:32:48] And I'm not the one who started that point [15:32:54] just kiddin [15:33:06] That point was pointed out to me by someone even more adept in programming [15:33:19] And who is this? [15:35:08] ask domas [15:35:13] Dantman|FS, I've seen the point made, but never seen a realistic scenario where it would occur. [15:35:53] Your scenario of DROP TABLE is extremely far-fetched. I don't even think it's legal to create a temporary table with the same name as an existing one. [15:36:28] hi [15:36:32] why when called from another file, $wgOut->addHTML doesnt add this fuckin html code to the page where the function was called? [15:37:03] can anyone tell me what's considered the best hosted wiki solution out there, or how on earth would i go about setting up a new, high-bandwidth, high-storage space wiki? i am willing to spend the money. [15:37:04] It's a random senerio, what do you expect... But not being able to think of one doesn't mean there is none. [15:37:26] hm?... is this about the drop table mess in smw? [15:37:46] give me all your money and ill find you something good! ^^ [15:37:51] If everyone used the same rationale piles of software would have even more security exploits in them. [15:38:05] Duesentrieb: No, it's about the supposed insecurity of granting too many privilages to a database user. [15:38:23] MinuteElectron: which is, of course, the definition of "too many". [15:38:39] Duesentrieb: i.e. ALTER, DROP and TRUNCATE. [15:38:41] but i would agree that the db user that is used by a webapp should not have DROP TABLE or DELETE permissions [15:38:56] Dantman|FS, *someone* should be able to think of an exploitation scenario for it to be considered a vulnerability. [15:38:59] yes. a web user should not have those. i can not think of a good reason to have them [15:39:04] well DELETE is needed some times [15:39:04] i can think of good reasons not to. [15:39:11] (namely, sql injection) [15:39:14] Dantman|FS, otherwise, I argue that using integer addition in PHP is a security vulnerability. [15:39:18] err, DELETE is ok [15:39:23] i meant drop database. [15:39:27] Just because I can't think of any way that could be doesn't mean it isn't! [15:39:28] :p [15:39:34] insert, delete, etc is, of couse, needed [15:39:39] Duesentrieb, how about for updates? That's a good reason to have them. [15:39:41] Just because someone here can't come up with one doesn't mean someone doing attacking on the software can't think of one. [15:39:50] Duesentrieb, and what exploitation scenario is worse than DELETE FROM x; for all tables x? [15:39:59] Simetrical: you supply a different db user for updates [15:40:20] As long as the operations you have are restricted to the database you're on, there's no permission more worrisome than DELETE. [15:40:22] Why bother? [15:40:42] <|dmitry> Hi, guys! Can anybody tell me, please, what is the BoardVote plugin for mediawiki and how it can be configured. I need to have voting on my site. [15:40:42] No conceivable scenario restricted to the given database is worse than deleting everything from every table. [15:40:43] why bother not to work as root? [15:40:45] And you can already do that. [15:40:48] because it's more secure. [15:40:54] Duesentrieb, root can do many things to compromise security that normal users cannot. [15:41:02] indeed [15:41:04] A user with DROP TABLE can do nothing to compromise security that one with DELETE cannot. [15:41:07] |dmitry: you probablky don't want the boardvote extension [15:41:46] Simetrical: aruable. the data loss is the same, yes. dropping the table will also break the app. [15:41:54] <|dmitry> Werdna: as I can see, it is hardcoded voting for some special purpose.... Does it so? [15:42:11] yes. [15:42:16] voting isn't hard [15:42:28] Duesentrieb, okay, fine. So what database app doesn't effectively break if the entire database's contents are deleted? [15:42:45] Duesentrieb, anyway, there are lots of ways to DOS the MySQL server if you have any access at all. [15:42:52] That would take down the app too. [15:42:55] dunno, i never tried mw on a truly empty schema. could imagine that it works :) [15:43:00] I read an article about that on mysqlperformanceblog.com. [15:43:07] anyway... ewven delete is not needed for many tables my mediawiki [15:43:13] So anyone with DELETE can take out the database contents and then crash MySQL. [15:43:16] not for the text table, anyway [15:43:16] <|dmitry> Werdna: maybe you know another way to have voting on my wiki? [15:43:28] |dmitry: write your own extension [15:43:31] Now, I agree that if you were to restrict DELETE on specific tables, you'd gain security by disabling DROP/ALTER/etc. [15:43:35] for revision, i'm not sure... is rev_deleted fully functional? [15:43:40] yeah [15:43:45] nobody can be assed to enable it [15:43:48] like globalblocking :D [15:43:49] <|dmitry> Werdna: m-m-m... =)) It's difficult for me [15:43:53] But that's not the scenario being suggested. [15:44:22] <|dmitry> Werdna: thank you for support! Bye [15:44:29] Simetrical: i would simply be very careful about what privileges i give a user that is used by a webapp. i.e. i would be as restrictive as at all possibble [15:44:39] Duesentrieb: o rly? [15:44:42] I just GRANT ALL :) [15:44:44] Duesentrieb, there's no point if it serves no purposes and causes problems. [15:44:50] *no purpose [15:44:52] It's a pointless reflex. [15:45:06] the same is true for using DROP TABLE instead of DROP TEMPORARY TABLE [15:45:11] it'S useless and causes problems [15:45:16] If you actually restrict the use of DELETE and UPDATE on certain tables, then you're starting to have a point, sure. [15:45:25] anywy... does the user mediawiki creates on install get DROP and ALTER permission? [15:45:30] But in most cases that's not feasible, you need to be able to delete/update. [15:45:35] 03grondin * r35092 10/trunk/extensions/EmailArticle/ (EmailArticle.i18n.php EmailArticle_body.php): correcting bug in a message [15:45:41] Duesentrieb, I don't know. [15:45:50] would be worth checking [15:45:51] But if it doesn't, update.php gets one from somewhere. [15:46:01] No it wouldn't, since it makes no difference, as I say. [15:46:08] One could also UPDATE xx set xx=''; on all tables, it would be trivial given basic knowlege of the schema. [15:46:09] also, ideally, delete and update would NOT be needed for text and revision tables. [15:46:15] GRANT DELETE,INSERT,SELECT,UPDATE,CREATE TEMPORARY TABLES ON `{$wgDBname}`. TO '{$wgDBuser}'@'%' IDENTIFIED BY '{$wgDBpassword}'; [15:46:24] Also resulting in loss of data. [15:46:28] Duesentrieb, if you could arrange that then I'd agree. [15:46:59] Simetrical: for text text table its already true afaik. and for the revision table it is when rev_deleted is used instead of archive. [15:47:10] (and oversight dies accordingly) [15:47:43] How would one change the rev_deleted value without UPDATE? [15:47:48] the point is: not only should the permissions for the user be minimal, the application should also try to require as little privileges as possible [15:48:04] Yeah, you need UPDATE for revision. [15:48:06] like, for example, never updating or deleting anything from text or revision tables [15:48:15] you do?... [15:48:17] why? [15:48:21] Changing rev_deleted? [15:48:23] ah, for rev_deleted of yourse [15:48:25] damn :) [15:48:35] Does MySQL support per-column permissions? [15:48:38] Maybe permissions on views? :) [15:48:48] views would work [15:48:49] per-column permissions - yes [15:48:58] splitting it to a separate table would also be an option [15:49:02] not sure if it'S worth it [15:49:09] my point is thatit is a vlaid design goal [15:49:31] different golas often conflict and have to be weighted against each other. but it's something to keep in mind. [15:49:39] Yes, provided it's giving an actual increase in security. [15:49:54] My objection was the idea that not granting ALTER, etc. was remotely useful if you already granted DELETE (or UPDATE) on all tables. [15:50:08] I'm with simetrical here [15:50:17] ( [15:50:34] if they have DB access, with the permissions MW uses, you've already lost. [15:51:06] Although, I'm not going to obsess over trying to restrict the damage from SQL injection, in any case. It's not very practical to do anything but restoring a backup if the attacker has any update permissions. [15:51:18] Rather, try to prevent injection in the first place. :) [15:51:39] right [15:51:45] (And try to avoid SELECT injection escalating to updates, etc., of course, but that's on the DB's side, not mine) [15:52:15] gotta fix dinner [15:52:16] bbl [15:52:38] [11:44] nobody can be assed to enable it [15:52:40] :) [15:58:46] I have been trying to write a bot for Wikipedia now for the last few days. Every time I try it, it shows the PREVIEW page instead of saving the page. I have absolutely no idea anymore what could possibly be wrong. I am sending the right POST variables. [15:58:59] I don't understand why it goes to the preview page instead of saving it. [15:59:03] wpEditToken. [15:59:23] It's set to +\ [15:59:31] well that's not a very good edit token [15:59:36] you need the whole edit token [15:59:40] it's a hidden field in the form. [15:59:44] That's what it is set to :S [15:59:49] On the actual edit page... [15:59:57] What is it for? [16:00:08] verifying that the edit came from a browser and not some haywire ajax [16:00:22] Don't tell me it uses JavaScript... [16:00:38] no [16:00:38] To fill in the correct value? [16:00:49] Well, it's set to "+\" by default. [16:00:50] No it's one of the hidden inputs [16:00:50] no, of course not. [16:00:55] I know it's hidden. [16:00:59] But it's set to "+\" [16:01:06] open it in your browser and view source [16:01:10] ... [16:01:22] You'll need to grab the user's edit token from the API with the bot and send that with the post [16:01:27] Remember to urlencode it [16:01:35] What are you talking about? [16:01:48] I am not using any user. [16:01:57] Bots should be using a user [16:02:04] for me, I get something like fee15[redacted]9116f1b1d4b5f+\ [16:02:14] I am not logged in. [16:02:20] Dantman|FS, they don't have to if they don't want to. [16:02:26] It shows "+\" and nothing else. Every time. [16:02:30] Except on Wikimedia projects, maybe, if they edit. [16:02:42] 03shizhao * r35093 10/USERINFO/Shizhao: add my userinfo [16:03:22] The value cannot change between loading the page and sending the form unless it uses JavaScript. [16:03:25] where's brion :/ [16:03:28] So this cannot be the error... [16:03:39] crazybanana: what does "view source" in a real browser say? [16:03:40] crazybanana: Maybe you cannot edit the page while logged out. [16:03:57] MinuteElectron: I have verified that I can. [16:03:57] crazybanana: Thus not granting you an edit token on that page. [16:04:00] fine [16:04:17] [16:04:20] Believe me now? [16:05:12] 03(NEW) Disable local uploads at pt.wiktionary - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14193 minor; normal; Wikimedia: Site requests; (malafaya) [16:05:24] *crazybanana is pulling his hair [16:05:27] Did you follow what I said about urlencoding the value? [16:05:41] Dantman|FS: Yeah. I am doing that. [16:05:48] Maybe it needs to be rawurlencoded... [16:05:49] 03(mod) Disable local uploads at pt.wiktionary - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14193 +shell (10alex.emsenhuber) [16:05:54] Perha;s [16:06:15] Nope :( [16:06:17] Dammit. [16:06:24] The +\ is there on purpose likely to trick any crappy bot trying to sniff things out into sending a bad token [16:06:42] It sure stopped me. [16:07:39] Why would it give no errro? [16:07:41] Error. [16:07:46] It just shows the god damn preview page. [16:07:50] 03(mod) Disable local uploads at io.wiktionary.org - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=13957 (10malafaya) [16:07:56] I am urlencode()ing it, dammit! [16:08:18] $tmp .= '&wpEditToken=' . urlencode('+\\'); [16:08:20] PHP code. [16:08:42] Are you sending the request as POST? [16:08:47] Of course. [16:09:02] The preview page it spits back has my edit text filled in. [16:09:05] So it is semi-working. [16:09:21] crazybanana: Have you tried passing them as actualy form values rather than in the query string? [16:09:36] ? [16:09:41] It is POST data to cURL. [16:09:44] Nevermind. [16:10:12] This is really driving me nuts... [16:10:18] Not error. It just shows the preview page every time. [16:10:24] Instead of saving. [16:11:35] *crazybanana starts crying. [16:13:09] ^_^ BTW guys... I'm creating a script commons extension... [16:13:37] It's primarilly aimed at WikiFarms though.......... Ok, ok... it's being made for Wikia mostly [16:16:59] 03aaron * r35094 10/trunk/extensions/FlaggedRevs/FlaggedRevsXML.php: white-space:nowrap [16:19:56] Re [16:20:56] 03grondin * r35095 10/trunk/extensions/EmailArticle/phpMailer_v2.1.0beta2/class.phpmailer.php: File omitted in previous version [16:26:07] 03(NEW) Block::insert - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=14194 15enhancement; normal; MediaWiki: Database; (wiki) [16:26:16] Is text part of a separate table because selecting revisions would be heavier with the large blob in the row, or to allow reverts to share the same id? [16:27:56] It allows it to be stored on external clusters. [16:28:33] AFAIK Wikimedia uses very large, cheap, hard disks for storing text rahter than the database servers. [16:29:20] Ahh [16:29:41] 03(mod) SQL error when trying to block someone - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14194 summary; +comment (10roan.kattouw) [16:30:07] hmmm [16:31:09] Should I use a sc_script_diff, or keep the diff inside of the sc_script_revision row? (^_^ Yes, I'm using diffs in the extension instead of fulltext saving) [16:34:14] 03(NEW) Localize special page names - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14195 15enhancement; normal; MediaWiki extensions: FlaggedRevs; (raimond.spekking) [16:34:33] Dantman|FS: Depends if you are storing the diff in a different table or not. [16:34:45] If so, the latter would make more sense, otherwise the former. [16:35:21] ^_^ That's what I'm bascially trying to determin which to pick [16:35:23] heh [16:36:41] sc_script (similar to page), sc_revision (similar to revision), sc_changes (similar to recentchanges or logging but not as verbose), sc_script_indexes (For quick indexing of the fulltext of certain revisions such as the current stable revision of the script) [16:36:52] Well, since apparently you only wish to store one field (the diff) the former would make more sense; there's little point in making a seperate table for one field. [16:37:07] Mkay [16:37:35] ^_^ not like you're going to need to offload tiny diffs to an external server, heh [16:37:51] :) [16:38:08] So... did anyone wanna help me? [16:38:20] Mmmm.... Wiki software using diffs and allowing branching and merging... [16:38:52] ^_^ Screw databases... Store it with S-expresions... heh [16:39:02] crazybanana: I have a PHP written wikibot, I think I encountered a similar problem (although mine uses the API, not index.php); I'll have a quick scan over it to see if it has any info. [16:39:15] beyho! [16:39:24] i finally got my problem resolved [16:39:31] MinuteElectron: Cool. Thanks. [16:39:31] the segfaults if you remember [16:39:37] just be using xdebug [16:39:41] no i know: [16:39:41] MinuteElectron: I don't know what you mean by "mine used the API, not index.php", though. [16:39:43] Fatal error: Maximum function nesting level of '100' reached, aborting! in /var/www/includes/Preprocessor_Hash.php on line 798 [16:39:51] can i circumvent this? [16:44:29] xdebug.max_nesting_level = 1000 [16:44:32] \o/ [16:44:37] i think this will do it [16:45:16] MinuteElectron: Finding anything of interest? [16:45:24] crazybanana: MediaWiki has an API, but it is not enabled on Wikipedia yet. [16:45:30] Stll looking... [16:45:37] the API is very enabled [16:45:41] just the write parts aren't [16:45:41] wohoo! this works! [16:45:46] yeah [16:46:44] crazybanana: Nope, nothing of interest; you might try logging in first though? [16:47:09] :( [16:47:13] What do you mean by "logging it"? [16:47:50] "logging in" [16:48:00] Logging what? [16:48:35] loggin in, don't you understand what that means? [16:49:45] Oh... [16:49:50] I read it wrongly. [16:49:58] Well, I don't have a user and don't wanna create a user. [16:50:01] A philosophy of mine. [16:50:01] ok [16:50:14] Plus I obviously shouldn't need to... [16:50:21] My browser can edit the page so my bot should be able to. [16:50:22] Can you show us the full post stirng? [16:50:27] But it just returns the preview page... [16:50:54] One second. [16:51:46] wpSection=&wpScrolltop=&wpTextbox1=This+is+just+a+test.&wpSummary=&wpAutoSummary=&wpSave=Save+page&wpPreview=Show+preview&wpDiff=Show+changes&wpEditToken=%2B%5C [16:52:12] don't pass wpPreview or wpDiff [16:52:17] that is what is causing your issue [16:52:43] only pass the value and name of the "button" you are pressing (i.e. wpSave) [16:53:01] I just tried with only that and it still spits back the preview page....... [16:53:17] can you post the revised post string? [16:53:23] Preview [16:53:23] Remember that this is only a preview; any changes have not yet been saved! [16:53:23] This is just a test. [16:53:45] wpSection=&wpScrolltop=&wpTextbox1=This+is+just+a+test.&wpSummary=&wpAutoSummary=&wpSave=Save+page&wpEditToken=%2B%5C [16:55:31] *crazybanana is frustrated to the point where he soon explodes. [16:55:35] It may be the autosummary [16:55:37] You didn't specify a wpStarttime or wpEdittime [16:55:45] or a wpScrolltop [16:56:08] <-- I get this as anon on [[Wikipedia:Nanoha]] [16:56:32] I don't understand what to put for the wpAutoSummary... [16:56:37] Or the wpScrolltop. [16:56:50] put whatever the edit page gives you [16:56:59] But how is it generated? [16:57:19] probably a hash of something? [16:58:05] OK. I copied the static value and it still shows the preview page... [16:58:11] Sigh. [16:58:15] 12:55:36 < MinuteElectron> You didn't specify a wpStarttime or wpEdittime [16:58:38] I uncommented those. I have them. [16:58:47] $tmp .= '&wpStarttime=' . date('YmdHis', time() - (2 * 3600)) - 10; [16:58:49] crazybanana: The edit page purposefully includes a lot of data in hidden fields made to cause any attempt to edit to fail when it doesn't grab that data off the page [16:59:03] Sigh. [16:59:07] That is one extra HTTP request! [16:59:10] What a waste! [16:59:32] Your best option is to scrape the edit page for all inputs, and remove the ones with type="submit " [16:59:40] Or use the API [16:59:41] Or wait for the edit API! [16:59:50] The API doesn't do editing yet, right? [16:59:51] But the API does not allow writing as you said... [17:00:17] ^_^ It does if you enable it. [17:00:39] :S [17:00:50] I can't hack into Wikipedia's servers and enable it. [17:01:01] Isn't the value of wpAutoSummary documented somewhere? [17:01:03] And? Your not logging in [17:01:16] ? [17:01:20] What is this talk about logging in? [17:01:25] Simetrical: only on testwiki you can edit by api. [17:01:25] If your bot is editing without an account your IP is just going to get banned on WP [17:02:35] Why do you think Pywikipedia only allows things to be done when logged in [17:02:53] because it's overly restrictive :) [17:03:20] That's true, you'd better log in if you're making edits with a bot on Wikipedia. [17:03:29] And get the bot approved by the appropriate group on the wiki. [17:03:38] Otherwise you'll just get banned as soon as you start running. [17:03:55] in general, unless the community says you can run a bot, and without logging in you'd better not [17:04:37] It also gives you the opertunity to request things like a bot flag to get past an extremely restrictive rate limiter or captchas a wiki may have installed [17:06:10] 03btongminh * r35096 10/trunk/phase3/includes/ (5 files in 2 dirs): Add RepoGroup::findFiles to efficiently find many files if the repo supports it. Added support for this in ApiQueryImageInfo. [17:07:00] ^_^ don't you just love wikia's little trick? [17:07:36] why not hidden? [17:07:38] yeey for reusability [17:07:52] need to find something to fetch all histories at once [17:07:55] I believe it's got a display:none; in the style... but I can understand why text [17:08:03] why? [17:08:10] Bots aren't likely to edit something that is hidden [17:08:14] Bots will try to fill it in with random junk. [17:08:45] and yay for open-source versions of wikia's stuff: http://www.mediawiki.org/wiki/Extension:SimpleAntiSpam ;-) [17:08:48] Yup... a spambot will try to fill the text field then submit... Because a user isn't supposed to be able to see the field the extension rejects the edit [17:08:57] Ooooh [17:09:22] ^_^ Nice... time to install another extension [17:09:23] Yeah, Wikia sucks for not maintaining public repos of all their stuff. :( [17:09:24] *Simetrical stabs [17:09:53] Simetrical: agreed. I've been poking and poking them about it lately though ;-> [17:10:11] 03btongminh * r35097 10/trunk/phase3/includes/api/ApiQueryImageInfo.php: Forgot to remove one debug statement. [17:10:15] (assuming all would go well, they would have a public svn before winter 2008...but you never know) [17:10:18] Well it's on the way [17:10:19] They must *have* repos, yes? Surely not so hard to just make them public? Unless they contain their database passwords or something? [17:10:35] Yes likely security issues [17:10:43] Not just DB stuff [17:10:45] http://svn.wikia-inc.com/svn/ exists, yah, but it's htpasswd-protected ^_^ [17:10:52] and closed bug tracker...ugh [17:10:54] *Jack_Phoenix stabs [17:10:58] and trac [17:11:06] *Jack_Phoenix re-stabs [17:11:11] Also, 90% of the stuff is to Wikia related and likely won't work anywhere else [17:11:13] so they're like every other company in existence? how evil [17:11:19] Not really [17:11:25] flyingparchment, exactly! [17:11:32] Artur is setting up the svn and volunteer servers [17:11:44] Every closed-source company is evil, haven't you been reading the memos the FSF has been passing out for the past couple of decades? [17:12:06] ^_^ We're going to be able to access the stuff and repackage the stuff in a way that can be used genericly [17:12:50] WikiFactory even... Well at least for being able to develop extensions for Wikia that make use of it's shared tables [17:13:40] ^_^ Actually... I have the schema for their farm tables [17:13:41] heh [17:13:56] 03ialex * r35098 10/trunk/phase3/ (796 files in 15 dirs): (log message trimmed) [17:13:56] WARNING: HUGE COMMIT [17:13:56] Doxygen documentation update: [17:13:56] * Changed alls @addtogroup to @ingroup. @addtogroup adds the comment to the [17:13:56] group description, but doesn't add the file, class, function, ... to the group [17:13:57] like @ingroup does. See for example [17:14:01] http://svn.wikimedia.org/doc/group__SpecialPage.html where it's impossible to [17:14:56] .oO [17:22:20] ^_^ I love action paths... Why doesn't anyone else even use them? [17:22:55] The toolserver does, I think. [17:23:52] http://wiki-tools.com/formedit/Infobox:WikiVid <-- ^_^ And I'm not even using Apache2 [17:24:08] the toolserver doesn't use apache either [17:24:27] It should be possible there to [17:24:41] Just do the same thing that you do with /wiki/ and it works [17:24:51] 13:22:55 < MinuteElectron> The toolserver does, I think. [17:24:51] like ME said, we already use action paths [17:25:24] No... I mean with Apache2 [17:26:36] My bad then, by "there" I though you were refering to a location (the toolsevrer) not a piece of software. [17:26:55] nah, sorry... [17:27:34] Hi Nadir_Seen_Fire [17:27:35] ^_^ one of these days we got to make it so we can rewrite the &target= or whatever into the par [17:38:14] I want to insert arbitrary wikitext into a template substitution string, then have the parser do the substitution. How might I escape the inner wiki text? [17:39:03] hi there! [17:39:12] *davidmccabe hopes y'all don't remind a repeat for Brion. [17:39:14] I want to insert arbitrary wikitext into a template substitution string, then have the parser do the substitution. How might I escape the inner wiki text? [17:39:34] brion, Werdna was desperately waiting for you... [17:39:46] Can someone tell me when mediawiki updates the images in articles? I updated some images but the thumbnails in the article are still the same! [17:45:56] 03huji * r35099 10/trunk/phase3/languages/messages/MessagesFa.php: * Adding/updating Persian translations [17:48:01] AndreM, should be immediate, I think. [17:50:07] hi. Can't i use an & or an & in the sidebar? [17:50:42] schizoschaf: are you trying to write it directly into [[MediaWiki:Sidebar]]? [17:51:00] yes flyingparchment [17:51:20] schizoschaf: instead, write 'foo-label', create a page called [[MediaWiki:Foo-label]] and write it there [17:52:09] thanks flyingparchment. would not have guessed that :) [17:54:32] channel.list.match(/brion on syncing spree/) != null ? [17:55:05] You'd think I wouldn't be the first one to try escaping wikitext in a template parameter, but google isn't turning up a thing. [17:55:44] hmm that does not work flyingparchment... does it need to end in '-label'? [17:56:43] Simetrical: seems not to work for me... is there any way to manually start an "update"? [17:57:09] schizoschaf: which version of mediaWiki do you run? [17:57:10] AndreM, try editing the page. [17:58:59] codeispoetry, it's 1.8.2 according to RELEASE_NOTES [17:59:33] oooh hell [17:59:57] i somehow feared someone would say oooh hell :/ [18:00:02] i think you'll need 1.12 for this feature [18:00:07] 03aaron * r35100 10/trunk/extensions/FlaggedRevs/FlaggedRevs.php: Query optimizations [18:00:11] flyingparchment: am i right? [18:00:52] is it a security risk? otherwise i'd get along without the & [18:01:19] morning all [18:02:01] hi brion [18:04:07] hello brion [18:04:32] hello brion [18:04:44] hi brion [18:07:43] 03(mod) robots.txt -- exclude ro:VfD - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=12546 (10jeluf) [18:12:34] hey brion [18:12:43] 03(mod) SQL error when trying to block someone - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14194 +comment (10huji.huji) [18:13:30] yo [18:13:33] 03(mod) robots.txt -- exclude ro:VfD - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=12546 (10brion) [18:13:40] 03(mod) Hide/Show mechanism should be a part of the core JS - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14185 summary (10huji.huji) [18:20:11] AaronSchulz: I played a bit with the category page: http://de.wikipedia.org/wiki/Kategorie:Köln?uselang=de [18:24:07] 03brion * r35101 10/trunk/phase3/includes/filerepo/ (ForeignAPIRepo.php ForeignDBRepo.php): [18:24:07] put comment in wrong file, woops :D [18:24:07] that's what i get for committing right before bed [18:26:14] What does Preprocessor::expand do? [18:37:23] transcludes? not a clue [18:37:49] Eh? A hook.. [18:39:38] Oh wait... no [18:39:53] T_T I need a hook for altering transclued text [18:40:18] *davidmccabe needs to escape wikitext inside template parameters. [18:40:33] Is there a name or maybe even a description for this strange "dot encoding" mediawiki sometimes uses? (f. e.: "/wiki/Wikipedia:L%C3%B6schkandidaten/17._Mai_2008#Georg_Ditti.C3.A9") [18:40:51] and not with wfEscapeWikiText(); that just converts it to HTML entities; I need it to be real wikitext, on the other side of the substitution. [18:40:56] codeispoetry: it's just url encoding with . instead of % [18:41:25] oh [18:41:28] you're right [18:41:52] I just wondered about getting to entities for one literal, but it's with an accent ... [18:43:17] *getting two entities [18:47:35] brion: about your last commit: I think you forget to revert "A foreign repository with a remote MediaWiki with an API thingy" to "A foreign repository with an accessible MediaWiki database" [18:47:57] bah [18:49:23] 03brion * r35102 10/trunk/phase3/includes/filerepo/ (ForeignAPIRepo.php ForeignDBRepo.php): *cough* thx [18:49:41] brion: where the hell does template tag parsing actually take place? I'm trying to figure out how to escape pipes and such. [18:49:49] heh [18:50:03] well? [18:50:06] davidmccabe: i think you want to peek at the preprocessor [18:50:11] but... i'm honestly not 100% sure [18:50:15] :-) [18:50:15] it's all a little scary in there [18:50:23] yeah I'm dumpster-diving the preprocessor now. [18:50:53] although there's a comment in Parser::cleanSig that is very scary. [18:51:05] looks like a half-baked escapement is taking place there of all places. [18:53:43] brion: it looks like you're actually trying to make a two-step parser/printer. yay. [18:54:50] Can anyone help me in figuring out how to return a 404 code when a page doesn't exist yet? [18:56:30] brion: I think it's in preprocessToObj. [19:00:24] brion: Ok, it's Preprocessor_Hash line 138. [19:00:34] Impossible to escape pipes, as far as I can tell. [19:12:14] mike2: see https://bugzilla.wikimedia.org/show_bug.cgi?id=2585 [19:12:25] 03(mod) SQL error when trying to block someone - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=14194 (10wiki) [19:12:38] i'm not sure if the patch currently on that bug is entirely correct, but give it a whirl :) [19:15:41] hello [19:15:50] buggy utf here http://fr.wikipedia.org/w/index.php?title=Wikip%C3%A9dia:Le_Bistro/20_mai_2008&diff=29786172&oldid=29785922 [19:16:33] just a notice [19:22:58] Hello [19:25:30] I've a trouble with edittools. MediaWiki:Edittools has some content but it isn't displayed when I edit article. I've added some debug in wfMsgGetKey and content for 'edittools' is "" not content from MediaWiki:Edittools [19:25:40] What can cause that ? [19:27:23] Is that normal ? [19:28:11] Have you created the edittools page? [19:30:20] 03brion * r35103 10/trunk/phase3/includes/SkinTemplate.php: Dump silly 'dontcountme=s'; old webalizer hack, it's not consistently used anyway. [19:30:47] Yes, MediaWiki:Edittools, it has work before (before 1.12 update I think, I haven't noticed before) [19:31:07] Telemac: try just editing it and hitting save [19:31:13] just in case it's a temporary cache problem [19:31:20] 03(mod) SQL error when trying to block someone - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=14194 (10roan.kattouw) [19:31:35] brion: I've already tried but doesn't solve trouble :( [19:31:58] 03catrope * r35104 10/trunk/phase3/ (RELEASE-NOTES includes/api/ApiBase.php): [19:31:58] API: Unrecognized values for multivalue parameters now don't cause the API to [19:31:58] abort with an error anymore, but just throw a warning and are ignored. This is [19:31:58] useful for ??prop parameters, but also applies to other multivalue parameters [19:31:58] such as list, meta and prop. Single values still throw an error like they used [19:32:02] to. [19:32:18] Telemac: So what's the content of your current MediaWiki:Edittools? [19:33:00] 03(NEW) Bot flags automatically although previous version is unflagged - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14196 15enhancement; normal; MediaWiki extensions: FlaggedRevs; (pbirken) [19:33:06] MZMcBride: same as wikipedia (fr) one [19:33:14] Ahh. [19:33:18] It probably has dependencies. [19:33:31] 03siebrand * r35105 10/trunk/extensions/Translate/MessageGroups.php: Update exportToFile() for changes from r35098 [19:33:31] Did you copy over the other relevant code? [19:33:56] MZMcBride: CharInsert [19:34:03] Right. That's the extension. [19:34:16] But you'll also need the custom JS that fr.wiki is using (for the drop-downs). [19:34:17] *brion huggles catrope [19:34:48] all was working, but I think something around 1.12 update has broke it [19:35:12] First, why edittools is not article content ? [19:35:40] Huh? [19:36:02] http://fr.wikipedia.org/wiki/MediaWiki:Common.js <-- There's code there that's needed for edittools. [19:37:35] MZMcBride: Yes, but I don't think it make edittools key doesn't get article content ? [19:37:59] I'm sorry. I don't understand what you're saying. [19:39:00] If it was a JS trouble, I will see MediaWiki:Edittools at least, but I don't event see it [19:40:06] 03gri6507 * r35106 10/trunk/extensions/WhiteList/ (3 files): [19:40:06] v0.9.0 [19:40:06] * improved performance in high volume systems [19:40:06] * cleanup warning messages about uninitialized constants [19:40:06] * improve displaying of user names in pulldown menu [19:40:07] * Other MW cleanup by Tim Starling [19:40:09] * more translations [19:40:11] Have you tried replacing MediaWiki:Edittools with just plaintext? [19:41:09] I try [19:41:32] are there any projects to make a MediaWiki blog? [19:41:54] I really like the formatting and syntax of MediaWiki, but need to setup something closer to a blog right now [19:42:13] MZMcBride: not displayed [19:42:34] jordanucla: if you want a blog, why not use something like wordpress ? [19:44:03] 03catrope * r35107 10/trunk/phase3/includes/api/ApiBase.php: Handle multiple warnings correctly in ApiBase::setWarning(). Calling this function twice from the same module used to throw a fatal error. [19:44:22] jordanucla: for wordpress there is a plugin, allowing mediawiki-formatting [19:44:24] :) [19:44:58] that too [19:44:59] :) [19:47:04] It seems it only try to get edittools from i18n files, not from MediaWiki:Edittools, stange [19:47:08] strange [19:48:20] jordanucla: UserNad recently did a skin for someone with tabs which switches between wordpress and MW for the same styled skin [19:50:15] not integrated together though and login is independent... [19:50:36] i have a phpbb forum and mediawiki, and i prefer the logins separate [19:50:48] not everyone wants to edit the wiki and not everyone wants to post ont he forum. so.. [19:50:52] brion: I implemented your suggestion about invalid API parameters on wikitech-l, see r35104, r35107 [19:51:07] uess you could have single and dual login ability [19:51:15] catering for both [19:51:27] (guess) [19:51:28] brion: I think they should be backported to 1.8-1.11 but I don't really know how to do that [19:51:32] i guess.. but the work involved vs just having someone make a login [19:51:32] ;-) [19:51:42] true [19:51:57] RoanKattouw: thx [19:52:12] i also found its not too hard to integrate a similar look feel between phpbb and mediawiki. lucky the mediawiki skins are relatively simple. [19:52:23] What can disable display of MediaWiki:Edittools when editing article ? [19:52:29] probably not worth backporting it, since existing deployments that don't upgrade won't have the change [19:52:35] but it'll be nice going forward :) [19:52:41] http://shibboleth.internet2.edu/ is about single signon [19:53:18] brion: Well Bryan (Tongh Minh) backported some fatal error fixes a while ago, dunno why he did it but he did it. These are also fatal error fixes (kind of) [19:53:19] ill have a read. [19:53:26] might be interesting [19:53:26] :) [19:55:09] is there a reason why the special message "Already have an account? Log in." shouldnt have html in it ? i have a one line patch changing a wgMsgHtml to a wgMsg in SpecialUserlogin.php [19:55:26] but perhaps im missing something or some reason why they should not have html etc [19:55:38] Woud someone be able to have a look at and put my bugfixes of Extension:RandomImage on the SVN sometime? [19:55:45] exobuzz: We don't want HTML in messages when it's not necessary, generally [19:55:48] Its on the talk page; http://www.mediawiki.org/wiki/Extension_talk:RandomImage [19:56:09] Cant remember if Ive tested it on MW 1.12.0 though... [19:56:10] RoanKattouw: but.. is it bad to alolow people to put it in if they want ? rather than html encoding the special message ? [19:56:20] Zven86: May be better to file a bug and attach a patch. [19:56:27] Zven86: If you can test that it works and send me the complete file(s) to roan.kattouw@home.nl I'll commit it [19:56:34] 03(NEW) rcshow=redirects (or !redirects) causes error message - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14197 15enhancement; normal; MediaWiki: API; (russblau) [19:56:39] Or that. :) [19:56:57] My wiki (v1.12.0) wont convert images for thumbnailing. $wgUseImageMagick and convertCommand are set, convert command can be run as www-data, safe-mode is Off, but the wiki keeps tell me "Unable to run external programs in safe mode". Can someone help me? [19:57:00] Good call, it was sometime ago that I did it... [19:57:06] 03(mod) rcshow=redirects (or !redirects) causes error message - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14197 15enhancement->normal (10russblau) [19:57:31] SeicherlBoB: if it says that. it sounds like safe mode isnt off ?? [19:57:50] 03ashley * r35108 10/trunk/extensions/Syslog/Syslog.php: add extension credits [19:58:12] Anyone else having problems with Gmail IMAP? [19:58:14] exobuzz: the php.ini tells me, it's off [19:58:33] check you dont have some open base dir restriction set also perhaps [19:59:06] exobuzz: what do you mean: "open base dir restriction" ? [19:59:08] SeicherlBoB: and what does php say ? do [19:59:09] 14(INVALID) rcshow=redirects (or !redirects) causes error message - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14197 normal->15enhancement; +comment (10roan.kattouw) [19:59:29] http://uk.php.net/features.safe-mode [19:59:35] read about it on that page [19:59:46] luuuuuuuuuunch [20:00:17] RoanKattouw: is it worth me submitting this change to allow html in this system message, or will it just get rejected ? [20:00:29] exobuzz: damn... how come that safe-mode is on (phpinfo), when the ini says off? [20:00:30] someone wanted to put html there earlier, so i was looking into it.. [20:00:33] exobuzz: Dunno. File a bug at BugZilla and see what happens [20:00:52] SeicherlBoB: Other php.ini perhaps? There could be more files called php.ini on your system [20:00:57] SeicherlBoB: check in apache config.. also check /etc/php5/apache2/php.ini .. you will have 2 php.ini one for cli and one for apache2 [20:01:07] for example [20:01:32] SeicherlBoB: You could also try ini_set('safe_mode', 0); on top of LocalSettings.php [20:01:42] RoanKattouw: ok.. thanks. [20:02:20] more annoying than safe.. gone for php6 right ? [20:02:28] 03(mod) Increase or remove rate limit for rollbacker group - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=12760 +comment (10mattbisanz) [20:02:30] exobuzz: i check the ini file mentioned in the phpinfo. and it says safe_mode = Off [20:02:58] SeicherlBoB: but it could be turned on elsewhere. like in the apache config. do as RoanKattouw sugests and switch it off in LocalSettings.php [20:03:38] exobuzz: Yep, finally gone in PHP 6. Good riddance [20:03:40] *SeicherlBoB is trying [20:04:23] RoanKattouw: my sentiments too. [20:04:39] ini_set('safe_mode', 0); does not work on top of LocalSettings.php [20:05:09] 03(NEW) Improvements of text of Submit-Page - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14198 15enhancement; normal; MediaWiki extensions: FlaggedRevs; (pbirken) [20:09:21] SeicherlBoB: check your apache configuration for the site ro whatever webserver. [20:09:26] or [20:10:00] exobuzz: i am already... thanks! I go ask in #php as it is not a mediawiki related problem. [20:10:04] thanks a lot! [20:10:42] Messages like edittools are get with getMsgFromNamespace(...) ? Am I right ? [20:12:26] Hi All [20:13:23] Does anyone know a way to import pages to the wiki in bulk? [20:13:54] Use special Export/Import [20:14:25] I think I know what your talking about but doesn't that only import a page at a time? [20:14:38] Cincy: No [20:14:50] It exports/imports an arbitrary number of pages [20:15:07] really, let me take another look [20:15:32] well, in theory. in practice it's limited by http timeout as well as some fixed max. [20:15:40] i think the export page takes only 100 pages or so [20:15:46] Yes thats what I was about to say.. [20:15:54] for *lots* of pages you want the command line tools [20:16:03] Also think about import, limited by upload speed as well [20:16:08] think that depends on your php.ini [20:16:09] And importing is slower than exporting [20:16:12] settings [20:16:30] sure. import requires parsing. hardly an issue for ~100 pages. [20:16:39] for 100000 you start to notice :) [20:16:40] when I go to special pages and select import patge I can only add 1 file at a time? [20:16:41] Import also requires more queries [20:16:45] A *lot* more [20:16:54] i guess [20:16:56] Cincy: One *file*, yes, but a file can contain lots of pages [20:16:58] 1 file many pages... in xml format [20:17:16] You can enter multiple pages at Special:Export, each on a separate line [20:19:21] Zven - is the the xml ending tag? [20:20:17] err, yes? [20:20:20] I don't think so but thats all I see if I were to add many pages to one file [20:20:35] ok well thanks I'm new to the web programing [20:21:40] yes is the root tag [20:22:40] cindy: In export you can choose whether to export all revisions or just the current, all revisions provides complete history, but also larger XML file [20:22:50] Soz cincy... [20:22:56] (typo) [20:23:05] its cool [20:23:30] (c is close to d :O) [20:24:46] I tried to take an existing xml page and copy the page from start to finish and then pasted it under the original page and the changed the titles and I get an error when I import it. It wrrors out in the second page and the first page imports fine. Is there something in the xml header I need to change too? [20:27:48] Cincy: you shouldnt need to change anything, try exporting one page then importing it, then try two [20:29:10] Yeah and when I try too I just copy one page into the file for the other page and import that file right? [20:29:45] Cincy: You shouldn't touch the .xml file. Just download the .xml file from Special:Export and feed it to Special:Import unchanged. [20:31:10] On export is the xml file downloading to your machine? or displayed in your browser? [20:31:43] It should be the latter (it is for me with Firefox 2.0) [20:31:44] It should just download to your local machine [20:32:11] Mine downloaded with Safari [20:32:24] Hang on just check with firefox [20:32:27] Oops it should be the former [20:32:29] My mistake [20:33:03] Yeah it does a save to disk [20:33:24] gtg [20:34:51] Got it! [20:35:06] Any one know how how many pages I can import that way? [20:35:52] 03(mod) $wgShowUpdatedMarker requirement for $wgEnotifWatchlist is inconsistent and undocumented - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=13916 +comment (10webboy) [20:37:20] Cincy: I guess it's only really limited by the upload limit (a few megabytes) of the server and the maximum execution time (typically 30 seconds) [20:37:30] I have noticed that infoboxes using class="infoboxlabel" or "infoboxcell" breaks a lot... in very bad ways on my Wiki. [20:37:35] Processing thousdands of pages takes time, possibly more than 30 s [20:37:41] Is there some extension I need? [20:37:44] Oberoten: No, CSS [20:38:24] Oh? can I link to an example? [20:38:47] Sweet Thanks ALL!!! [20:39:04] http://oberoten.mine.nu/wiki/index.php/Empress_Matilda [20:39:06] Oberoten: Sure [20:39:31] http://oberoten.mine.nu/wiki/index.php/Devaronian [20:40:23] Oberoten: Weird, this doesn't look like a CSS problem [20:40:50] I have Tidy installed and it seems to work for most other things... [20:41:00] ... but infoboxes with parsefunctions break none the less. [20:42:14] Oberoten: Did you copy the latest version of the template? When I look at the preprocessed version of the page, it looks like the template is broken [20:42:33] Okay. [20:42:38] .. I will take a look. :) [20:42:41] Thanks. [20:43:09] http://oberoten.mine.nu/wiki/api.php?titles=Empress_Matilda&action=query&prop=revisions&rvprop=content&rvexpandtemplates&format=yamlfm shows the wikitext the preprocessor comes up with after stripping comments and expanding templates and some other stuff [20:43:29] If you look at the line that says "Lady of the English", you'll see the | at the beginning of it is missing [20:43:45] And the - lines make no sense, should be |- [20:44:10] Oberoten: The problem is Template:! [20:44:16] It should contain | , not be empty [20:44:55] Oberoten: I fixed it, Empress Matilda now works [20:44:56] Ahhh! THANK you! I have been hunting that for ages. :) [20:45:10] Somewhat, that is, you probably still want some CSS to put nice borders and stuff there [20:45:43] Also, in the Struggle for the throne... section, there's yellow on white on the right hand side which is pretty much illegible [20:46:29] *nods* I will fix that now that the infoboxes work. :) Thank you ever so much. [20:46:38] ... I have been hunting this one for ages. :) [20:47:44] Is there a way breakup a template in the html of the page so that I can display one field from the template in different cells of an html table? [20:47:46] 03ashley * r35109 10/trunk/extensions/redircite/redircite.php: [20:47:46] redircite: [20:47:46] *standard coding style [20:47:46] *proper copyright symbol [20:47:46] *remove ending ?> tag [20:50:40] Is there a way to breakup a template in the html of the page so that I can display one field from the template in different cells of an html table? [20:51:19] Cincy: Don't use HTML tables, use wiki tables [20:51:25] !table | Cincy [20:51:25] --mwbot-- Cincy: For help on creating tables in wikitext, see and [20:51:43] And to merge cells, use colspan or rowspan [20:51:44] Cool I'll check it out [20:56:57] 04(REOPENED) Kazakh message updates - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=12145 (10alefzet) [20:57:14] Hello everyone [20:58:27] I have a weird problem on my mediawiki installation. If I am visiting any page and I click on any link in the toolbox, the text for that page changes to the title of that link. When I see the history for the page, the change appears to be from the IP address 66.249.66.199. Any idea what's going on? Thanks. [20:58:55] Oh n btw, the IP address 66.249.66.199 belongs to Google [21:00:08] 03(mod) Kazakh message updates - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=12145 +comment (10alefzet) [21:12:02] Hello friends [21:12:43] how can I make a image get a bigger resolution when clicked? [21:13:38] can anyone help with this question? [21:15:16] hello friends [21:15:29] AtharHameed: maybe you're using google web accelerator? [21:15:32] atreidestm: Doesn't that happen already? When you click on the image, you're taken to the description page, which then offers a link to the full version [21:16:01] Also, MediaWiki doesn't enlarge your image; your image simply isn't larger than it is [21:16:07] It does generate thumbnails though [21:16:14] no, I got the message "There is no bigger resolution availablke" [21:16:30] Well then there isn't. If you want one, upload a bigger image [21:16:44] How should I proceed? upload a big image and use it as a thumbnail in my article? [21:17:14] Yes. Use [[Image:Foo.jpg|thumb]] or [[Image:Foo.jpg|200px]] [21:17:30] 03(mod) Enable GlobalBlocking extension - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=8707 (10brion) [21:17:33] The former will generate a thumbnail, the latter an image that is no wider and no taller than 200 px (aspect ratio preserved) [21:17:36] huumm.. I will try it.. thank´s for the help [21:18:02] brion-away: I am not. I have a dedicated server. I have a couple of extensions installed that I wrote. The worse part is that the behavior surfaces every so often and I can't seem to reproduce the effect. [21:18:04] if I want a specific size for the thumb? [21:18:20] AtharHameed: not your server, your client. [21:18:28] atreidestm: Use my 200px suggestion above [21:18:36] ok.. I will try [21:18:41] thank´s again [21:20:16] brion: i am not running the accelerator either [21:21:26] 03skizzerz * r35110 10/trunk/extensions/ForcePreview/ (ForcePreview.i18n.php ForcePreview.php): * fix for ForcePreview extension so people with Live Previews enabled can still save the page [21:25:04] 03(mod) Localize special page names for FlaggedRevs - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14195 summary (10brion) [21:35:53] 03aaron * r35111 10/trunk/extensions/FlaggedRevs/maintenance/ (5 files): Add some scripts [21:50:46] is there a "watch user" option you apply to a certain user so that you can see if they followed what you told them or not.. i know there is special:contribs but it gives only one user at a time [21:51:23] none that I am aware [21:51:28] *aware of [21:51:51] hi Skizzerz [21:51:56] hi :) [21:53:13] *Skizzerz can envision the toolbox: *What links here *User contributions *Logs *E-mail this user *Stalk this user *Upload file *Special pages *Printable version [21:53:39] *RoanKattouw envisions [[mw:Extension:StalkUser]] [21:53:49] AGF please [21:53:55] RoanKattouw: if you want to make it, feel free ;) [21:54:15] Hello? [21:54:31] Umm [21:54:32] alnokta: AGF? [21:54:38] hrm... "pages-articles.xml.bz2" is described as "Articles, templates, image descriptions, and primary meta-pages." - and i have the articles, i have the templates but could it be that the image descriptions are missing? i've seen no working Image:Bla link so far [21:54:40] alnokta: well, either way you put it (stalk user or watch user), it sounds semi-perverted :) [21:54:46] RoanKattouw: assume good faith [21:54:56] josch: Nearly all images are at commons, not at the individual wikis [21:55:04] The description pages are also there [21:55:04] aaah! [21:55:08] Skizzerz: its for the own good of the user [21:55:10] Anyways, I'm trying to recreate an admin account on my MW installation, can anyone tell me how to do that? [21:55:15] RoanKattouw, how to get them? [21:55:26] tgp1994: does an admin account exist already that you can log into? [21:55:29] josch: If you configure LocalSettings.php to use commons as a foreign file repository, you should be fine [21:55:33] I don't think so [21:55:41] Of course, that does grab the images from the net and you might not want that [21:55:47] RoanKattouw: sorry, abbreviations ;) [21:55:53] alnokta: I'm not saying it isn't, I'm just saying that no matter how you word it, it sounds kinda wierd [21:55:54] Look through the dumps for commons, it's a separate wiki [21:56:03] tgp1994: do you have shell access? [21:56:12] alnokta: Figured, but it has no article on enwiki ;) [21:56:17] wait lets chat [21:56:47] tgp1994: No need, it's not busy here [21:56:57] Skizzerz: its like filtered recentchanges , only for selected users [21:57:20] RoanKattouw, thanks! will have a look how to do that [21:59:02] 03aaron * r35112 10/trunk/phase3/includes/SpecialWatchlist.php: Don't check $wgEnotifWatchlist here [21:59:06] !createAndPromote | tgp1994 [21:59:06] --mwbot-- tgp1994: To recreate the admin user, run "php maintenance/createAndPromote.php" on the command line. [21:59:20] RoanKattouw: I just asked him, he doesn't have command line access :) [21:59:42] *Skizzerz is helping him in pm atm [21:59:45] how hard would it be to add it then? [22:00:06] Skizzerz: I see. I added the mwbot entry just now for future reference anyway [22:00:12] thanks [22:00:24] alnokta: It might be possible already with the API, lemme see [22:00:48] *alnokta gives RoanKattouw his glasses [22:01:07] Hmm no it isn't [22:01:16] I'll check if it can be done performance-wise [22:01:25] 03(NEW) Problem for deleting an image redirection - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14199 15enhancement; normal; MediaWiki: Redirects; (bayo.fr) [22:02:13] you take a look pretty fast [22:02:27] alnokta: There's the rc_user_text (rc_user_text, rc_timestamp) index, so it can be done database-wise [22:03:33] RoanKattouw: thats the important thing.. correct? [22:03:56] Yeah, it means we won't blow up the database doing it [22:04:07] Hello all...is there a way to show category as a listing with titles and synopses (taken from the article) instead of just a list of articles? [22:05:00] 03(NEW) Add rcuser= and rcexcludeuser= =?UTF-8?Q?=20=C3=A0=20la=20prop?==revisions - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=14200 15enhancement; normal; MediaWiki: API; (roan.kattouw) [22:05:00] hawke_: No, unless there's an extension I don't know about that does this [22:05:15] rcexcludeuser ? [22:05:20] whatever [22:05:25] AaronSchulz: rc_user_text != 'blahblah' [22:05:30] See discussion about stalking users earlier [22:05:37] yes, I get that... [22:05:42] what is the use? [22:05:47] And yes, it's indexed, rc_user_text (rc_user_text, rc_timestamp) [22:05:55] mentoring ? [22:05:56] You mean rcexcludeuser? Bots without a bot flag? [22:06:03] I know, I made a special page to use that index [22:06:10] can't commit it though [22:06:15] the index is missing on 4 sites [22:06:18] RoanKattouw, you mean by setting up $wgForeignFileRepos[] ? [22:06:29] helping a user not get into trouble [22:06:36] josch: Probably. I don't know much about that stuff [22:06:50] RoanKattouw: Thanks. Related to that, is there any way (I expect not) to include a particular section from another page, such that I could manually build a similar page? [22:06:56] Hmm wikibugs really doesn't like à la [22:07:24] hawke_: You could *try* DynamicPagelist, but I don't think that'll work [22:07:33] !dpl | hawke_ [22:07:33] --mwbot-- hawke_: The DynamicPageList (DPL) extension outputs reports based on criteria given in a special tag. For more information, see and . [22:08:06] AaronSchulz: You mean pretty much half WMF's DB servers are missing that index? How the hell is that possible? [22:08:36] not sure [22:08:55] Interesting. That sounds about like what I'm looking for. Thank you! [22:09:42] 03brion * r35113 10/trunk/phase3/ (RELEASE-NOTES includes/ImagePage.php): [22:09:42] * (bug 14199) Fix deletion form for image redirect pages [22:09:42] Image deletion was popping up the special image deletion form for the target image, which isn't friendly for redirects. :) [22:09:42] Now checking for redirect state as well as non-localness and non-existence, and pop up the regular page delete form for this. [22:09:53] 03(FIXED) Problem for deleting an image redirection - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14199 +comment (10brion) [22:09:57] Anyway AaronSchulz, is that special page of yours ready to roll? Is it still committable given its age? [22:10:05] yep [22:10:18] Oh wait it's a new file, how can it not be ... [22:10:51] Only by using functions with changed prototypes I guess, but those changes don't happen often [22:12:05] Well it sounds like a cool feature, so maybe you guys (the ones with shell access and all that) should work on getting those indices updated. [22:12:13] Or is it not that simple? [22:12:15] poke brion [22:12:24] brion! :P [22:12:26] it is the usual master-switch routine [22:12:35] Oh right, take the slaves out one by one [22:12:40] woooootttttttt [22:13:02] brion: Aaron tells me the rc_user_text index isn't present on all DB servers. Could you fix that so that he and I can each commit a cool feature? [22:13:45] ugh. should schedule an update [22:13:52] not gonna do it immediately, that's a pain in the ass [22:14:40] RoanKattouw: what cool feature? [22:15:08] brion: No problem. I have to write those 10 lines tomorrow anyway (past midnight now) [22:15:12] alnokta: The user stalk thing [22:15:26] 03(mod) Problem for deleting an image redirection - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14199 (10N/A) [22:15:31] oh great :) [22:16:15] The index preventing the DB servers from incinerating upon that query is not present on all DB servers, so brion will have to add it and that's quite a lot of trouble [22:21:39] hrm... i cannot find any information on how to include all the images i need from commons... [22:26:17] 03(mod) Enable GlobalBlocking extension - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=8707 (10thogol) [22:26:52] 03siebrand * r35114 10/trunk/extensions/EmailArticle/EmailArticle.i18n.php: Update 'ea-articlesend' [22:35:49] do i happen to need image.sql.gz = [22:35:50] ? [22:36:47] 03(mod) Enable GlobalBlocking extension - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=8707 (10brion) [22:37:23] 03(mod) Increase or remove rate limit for rollbacker group - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=12760 (10N/A) [22:38:43] 03(mod) Please enable autopromotion for flagged revisions on de. wp again - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14153 +comment (10brion) [22:41:40] 03(mod) Enable GlobalBlocking extension - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=8707 (10cbrown1023) [22:56:13] 03aaron * r35115 10/trunk/extensions/FlaggedRevs/maintenance/ (updateAutoPromote.inc updateAutoPromote.php): Add another script [23:01:48] 03(FIXED) Change autoconfirmed settings on enwiki - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14191 +comment (10brion) [23:02:38] 03aaron * r35116 10/trunk/extensions/FlaggedRevs/FlaggedRevs.php: $res [23:11:42] 03(mod) Change autoconfirmed settings on enwiki - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14191 (10N/A) [23:23:38] 03aaron * r35117 10/trunk/extensions/FlaggedRevs/maintenance/reviewAllPages.inc: Use $user [23:35:44] brion: when will shared login be enabled ? [23:36:26] lol [23:36:36] 03aaron * r35118 10/trunk/extensions/FlaggedRevs/ (FlaggedRevsPage.i18n.php FlaggedRevsPage.php): UI tweaks per bug 14198 [23:36:54] 03(FIXED) Improvements of text of Submit-Page - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14198 +comment (10JSchulz_4587) [23:37:03] why loling ? [23:38:30] 03(WONTFIX) Easier flagging when editing a page - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14184 +comment (10JSchulz_4587) [23:54:11] alnokta: soon i hope :) [23:54:37] i'll go over the status w/ tim this week and see what remains to be done [23:55:11] nice :) [23:56:27] its already very convenient to just go to any wiki and enter your login and you have an account instantly, but humans are greedy by nature and have endless needs.