[00:00:09] 03(mod) Administrator-level configuration (Admin Console) (ie. password resets, etc) - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=3395 (10Platonides) [00:00:14] 03(mod) Preferences Form Customization - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15235 +comment (10tylerromeo) [00:07:53] 03nad * r39988 10/trunk/extensions/SimpleSecurity/SimpleSecurity.php: typo in $wgDBtype [00:09:30] 03dale * r39989 10/trunk/extensions/MetavidWiki/skins/mv_embed/mv_embed.js: improved slider handling [00:10:47] 03nad * r39990 10/trunk/extensions/SimpleSecurity/SimpleSecurity.php: must define SimpleSecurity class before implementing db hook [00:33:08] 03aaron * r39991 10/trunk/phase3/includes/Article.php: mark getOldIDFromRequest as public [00:40:35] 03aaron * r39992 10/trunk/extensions/FlaggedRevs/ (4 files): [00:40:35] * Delay message loading [00:40:35] * Avoid some CSS/JS loading [00:40:35] * Delay text fetching [00:40:35] * Fix incidence where rating tab may not show [00:40:36] * Remove unused vars [00:44:43] hi all. i asked this (or something like it) a few days ago, but i'm trying again :) - is there a repository/dump of a wiki whos help i can import for personal use? i have a mediawiki, and i'd like the 'help' pages to be helpful :) [00:45:26] vk5foss, mediawiki.org's Help: namespace is meant to serve this purpose. [00:47:17] Simetrical: so i'm meant to just link off to mediawiki.org, or i can import that namespace? sorry if i can import it - i got the impression i cant [00:47:36] vk5foss, you can, but it's probably not very convenient. [00:48:05] It's probably easiest to just link to mediawiki.org's help pages. [00:49:18] Simetrical: ok. i'll look into re-linking the help links on the wiki (perhaps with a 'going external' warning). thanks for your help. [00:50:52] 03aaron * r39993 10/trunk/extensions/FlaggedRevs/specialpages/ValidationStatistics_body.php: tweak spacing [01:00:37] good morning! for installing mediawiki i followed the tutorial at http://www.mediawiki.org/wiki/Short_urls - now I have the following problem: When I call https://hq.the-human-factor.org/wiki/ everything is okay. But calling https://hq.the-human-factor.org/wiki (whithout trailing slash) makes the browser want to download the file. Do you have an idea why that could be? [01:04:04] is it possible to put text into multiple columns somehow in mediawiki? [01:07:15] you can make a div that has multiple columns and put the content inside that [01:07:31] ok [01:07:41] is there an example of that somewhere? [01:08:03] http://en.wikipedia.org/w/index.php?title=Template:Reflist&action=edit [01:08:25] it's just css styling of the div, in the end [01:09:10] It doesn't work in all browsers. [01:09:15] ok, thanks carl-m [01:13:44] 03nad * r39994 10/trunk/extensions/SimpleSecurity/SimpleSecurity.php: still need to interact with LoadBalancer, but no need to modify it [01:13:51] 03aaron * r39995 10/trunk/extensions/FlaggedRevs/ (FlaggedRevs.sql archives/patch-reader_feedback.sql): unsigned [01:17:42] Simetrical: oh, thats interesting. thanks. [01:19:39] 03aaron * r39996 10/trunk/extensions/FlaggedRevs/FlaggedRevs.class.php: Fix count in getAverageRating() [01:26:09] 03aaron * r39997 10/trunk/extensions/FlaggedRevs/FlaggedRevs.class.php: ok, need more java [01:32:52] 03nad * r39998 10/trunk/extensions/SimpleSecurity/SimpleSecurity.php: still wasn't hooking into DB class, working now [01:33:57] 03nad * r39999 10/trunk/extensions/SimpleSecurity/SimpleSecurity.php: oops remove debugging output [01:37:49] is it possible to make mediawiki allow public registrations but require each registration to be approved before the user can edit pages? [01:37:58] 03nad * r40000 10/trunk/extensions/SimpleSecurity/SimpleSecurity.php: use $wgDBtype in updateLB method [01:38:20] !prevacc | k-man [01:38:20] --mwbot-- k-man: http://www.mediawiki.org/wiki/Manual:Preventing_access [02:09:30] Any chance someone can help me quickly with a template problem? [02:09:35] wikimedia 1.12.0, exported the Template:Cquote from wikipedia and imported it into my wiki and it looks really messed up. import seemed successful. [02:14:02] nonnonnon: did you make sure to export all the templates it includes? [02:14:20] yeah [02:14:23] and they all came in too [02:14:36] http://www.chicagosaysno.com/index.php/Template:Cquote [02:14:45] thats what the page for the template looks like, pretty messed up [02:15:13] and when i use it, it looks like this: http://www.chicagosaysno.com/index.php/Testing [02:15:57] you need the ParserFunctions extension [02:16:00] !e ParserFunctions [02:16:00] --mwbot-- http://www.mediawiki.org/wiki/Extension:ParserFunctions [02:16:15] ahh [02:16:44] thank you [02:19:19] Hey, for API edit, what parameters are GET, and which are POST? [02:32:32] can i use http://meta.wikimedia.org/wiki/Page_inclusion across wikis, or only within the same wiki? [02:39:18] next up. i uploaded an svg and im getting this: error creating thumbnail: convert: must specify image size `/tmp/magick-XXnmS0zz'. [02:40:00] anyone know whats wrong here? ive got imagemagick installed and $wgUseImageResize = true; $wgUseImageMagick = true; and $wgImageMagickConvertCommand = "/usr/bin/convert"; [02:42:39] hi TimStarling [02:42:45] hi [02:43:45] just a couple more things to get through and i think im good. [02:56:33] hey is there a way to force TeX to display everything in the same size [03:11:22] next up. i uploaded an svg and im getting this: error creating thumbnail: convert: must specify image size `/tmp/magick-XXnmS0zz'. [03:11:27] anyone know whats wrong here? ive got imagemagick installed and $wgUseImageResize = true; $wgUseImageMagick = true; and $wgImageMagickConvertCommand = "/usr/bin/convert"; [03:16:27] 03(NEW) Music cuts off a couple seconds too early. - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15315 major; normal; Cortado: jheora; (cuerden) [03:19:10] Is there a shorthand to link to pages on meta.wikimeda.org ?. i'd like to link to several pages, and was hoping there was a nicer way then using whole uris [03:27:42] should be able to use [[meta:article]] [03:28:06] thanks, i'll give it a try [03:28:36] infinisoft: would meta:help:contents work (for example) [03:29:31] yes [03:30:08] vk5foss: meta:ns:article works as long as the interwiki links are set up on the wiki you are using. [03:30:31] vk5foss: which should be the case for all wikimedia wikis [03:31:02] infinisoft: this is a personal wiki, so i'll check links are setup. [03:31:30] Hey, where is the code $wgGroupPermissions? (as in, what file?) [03:31:48] TheLetterX: what about it? [03:31:54] TheLetterX: you mean its default settings? [03:32:00] What file contains the code? [03:32:05] DefaultSettings.php? [03:32:10] what do you mean the "code"? [03:32:24] you mean where its defaults are set? [03:32:33] or where it's used? [03:33:02] Defaults [03:33:13] then yes, DefaultSettings.pghp [03:33:14] php* [03:33:50] All right! I found you guys! Does anyone know what or where to update to add a user? Such as " [03:33:50] 08-24-2008 [03:33:50] $1518.76 [03:34:19] All right! I found you guys! Does anyone know what or where to update to add a user? Such as "wpCreateaccount" ? I do not know PHP. [03:34:29] oops sorry [03:34:32] that was a typo [03:34:44] I'm usinv VNC to type to you. Please pardon. [03:34:47] U RELEASE-NOTES [03:34:48] U docs/hooks.txt [03:34:48] Updated to revision 40000. [03:35:03] Wow, nice. [03:35:06] *TimStarling does "lots of zeros" dance [03:35:21] TimStarling: I hate you. I wanted to get that revision :( [03:35:26] I think I got r20000 [03:35:26] it wasn't me [03:35:35] nad * r40000 /trunk/extensions/SimpleSecurity/SimpleSecurity.php: use $wgDBtype in updateLB method [03:35:44] Nobody knows what wpCreateaccount is? [03:35:50] *Werdna slaps nad [03:36:02] you should go for r65536 [03:36:08] it's got lots of zeros when viewed in binary [03:36:09] but that's ages away [03:36:11] at least a year. [03:36:41] ... at least someone slap me with a trout? [03:36:48] I'll take slapstick if I have to ... [03:37:11] Baka62: it sounds like a form variable [03:37:11] Baka62: in the code? [03:37:19] possibly in Special:UserLogin [03:37:24] wp stands for post var, probably [03:38:11] hey splarka [03:38:25] Yes, that's exactly where it is. I have inherited this implementation (I used MediaWiki before at a library, but this is different), and the "create user" part of the page it implies exists does not show up. [03:39:41] is the wiki public? [03:39:44] Hey TimStarling, what do you think of bug 15285? I asked Werdna about it, and I was told to come to you. [03:40:12] "There is no user by the name "Baka". Check your spelling, or use the form below to create a new user account. [03:40:36] TheLetterX: sounds like a documentation issue [03:41:01] Do you happen to know if that is a legacy text error message, or perhaps something custom? The person I inherited this problem from has gone ghost. [03:41:04] So what would be wrong with the documentation? [03:41:17] it doesn't specify that >16 chars doesn't work [03:41:37] I believe the manual it displays is public, but the Wiki itself is not public. [03:41:46] Some feature in User.php could make it not work, but that would also cause confusion [03:42:19] heh , yes documentation [03:43:09] next up. i uploaded an svg and im getting this: error creating thumbnail: convert: must specify image size `/tmp/magick-XXnmS0zz'. [03:43:12] anyone know whats wrong here? ive got imagemagick installed and $wgUseImageResize = true; $wgUseImageMagick = true; and $wgImageMagickConvertCommand = "/usr/bin/convert"; [03:43:14] I see. [03:44:11] Is LocalSettings.php the only place people can change settings? (I mean besides completely changing source code) [03:44:27] Baka62: you're calling yourself "baka" on the wiki as well? that's not a very nice name... [03:44:31] Baka62: some settings are in the database, or done through interface messages. [03:44:41] TimStarling: it's "idiot" in japanese, right? [03:44:51] yes [03:44:58] the relevant message is nosuchuser [03:45:05] 'There is no user by the name "$1". [03:45:05] Check your spelling, or create a new account.' [03:45:09] Nah, I changed it to protect the Innocent ... >_> ... <_< [03:45:11] that's what it should say [03:45:33] check [[MediaWiki:Nosuchuser]], the page should be deleted if it exists [03:45:55] I imagine it says that in the PHP code, I was only parotting the erorr message. [03:46:30] on newer versions of mediawiki, there's a link to the "create user" form, instead of it just being there [03:46:50] oh bother ... [03:47:03] It seems my predecessor had implemented this in 2004. [03:50:11] Oh I hope that's not right ... MediaWiki version 0.1 ... [03:51:03] There don't happen to be FAQ's for version 0.1 do there? [03:52:11] infinisoft: thanks for teh pointer. turns out i need to use 'metawikipedia', but 'interwiki links' was a good search term :) [03:53:01] vk5foss: No prob :) [03:53:13] :) [03:53:36] Hmm, the wiki is not failing gracefully when PHP not compiled with cURL when uploading image via URL [03:54:29] Didn't see any mention of Curl in 1.13.0 changelog :( [04:11:45] Ok, I found it ... [04:12:13] adding &Createaccount=1 brought up the page once I was already logged in as an administrator. [04:12:22] Took some PHP diving (and I don't know PHP). [04:12:40] Thank you so much , Tim Starling. [04:12:58] hm. mw: isnt recognised by mediawiki 1.10 :/ *attempts a manual addition of it* [04:13:09] Farewell for now. It is my time to leave work now. :) [04:18:53] 03aaron * r40001 10/trunk/extensions/FlaggedRevs/FlaggedRevs.php: lower READER_FEEDBACK_SIZE a bit [04:24:06] 03aaron * r40002 10/trunk/extensions/FlaggedRevs/specialpages/ReaderFeedback_body.php: add missing return [04:35:29] 03aaron * r40003 10/trunk/extensions/FlaggedRevs/specialpages/ReaderFeedback_body.php: initialize $commentary [04:55:50] 03(NEW) Nested Concept's - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15316 minor; normal; MediaWiki extensions: Semantic MediaWiki; (mrandmrsmurphy) [05:02:13] 03aaron * r40004 10/trunk/extensions/FlaggedRevs/FlaggedRevs.class.php: tweak transaction [05:07:57] 03aaron * r40005 10/trunk/extensions/FlaggedRevs/FlaggedRevs.class.php: pre-set cache key [05:10:13] 03(FIXED) the most recent revision of article is sighted, but article has "draft" mark - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15312 +comment (10JSchulz_4587) [05:11:43] 03(FIXED) Sometimes, last sighted version not visible - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15213 +comment (10JSchulz_4587) [05:53:46] hi, I would like to define a new namespace which is only disable for a specified user-group. Is that possible? [05:54:42] $wgNamespaceRestrictions [05:55:14] thx :) [05:55:37] ^ disable edit, yah, disable view no (possible but not supported here, weak security) [05:57:06] ah disable view is not possible?! but it exist an extension? [05:57:36] hey, here's the q: Got a bug where after editing a page, clicking any button at the bottom (Save, Preview, Show Changes) just refreshes the current edit screen you're on and wipes out all the changes you've made. We've customized heavily so I'm not surprised if this is my fault. Just throwing it out there. Any thoughts. [05:58:16] Rubik: is just a bad idea to rely on it for security [05:58:23] i think i'm going to have to go on an extended debugging mission :( [05:58:27] !preventaccess [05:58:27] --mwbot-- For information on preventing access to your wiki, please see . [05:58:55] only supported (here, and by the developers) selective view setup is a separate wiki with all viewing disabled [05:59:43] Splarka: okay, thx [06:09:14] argh.. cant figure out why I cant save any pages :( [06:18:44] 03aaron * r40006 10/trunk/extensions/FlaggedRevs/FlaggedRevs.php: use better way to disable feedback by default [06:21:41] 03aaron * r40007 10/trunk/extensions/FlaggedRevs/FlaggedArticle.php: check $this->isRateable() [06:22:07] i'm giving up [06:22:14] its broken. [06:25:22] 03nad * r40008 10/trunk/extensions/SimpleSecurity/SimpleSecurity.php: Bug fix: anonymous users getting denied access regardless of page protection [06:30:42] 03raymond * r40009 10/trunk/extensions/Translate/groups/ (MediaWikiExtensions.php mediawiki-defines.txt): Per r39982: Add new flagged revs special page [06:41:32] <_wooz> lo [06:48:36] 03tstarling * r40010 10/trunk/phase3/includes/parser/Parser.php: Added __destruct(), for stable pseudo-branch [07:02:34] 03(FIXED) Remove query.php - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=12881 +comment (10maxsem.wiki) [07:04:04] _mary_kate_: How can I cross-compile AFP for x86_64 on my local i686 box? [07:06:57] Werdna: can't you just compile it on x86_64 box? [07:07:43] 03raymond * r40011 10/trunk/extensions/FlaggedRevs/language/FlaggedRevs.i18n.alias.php: Per r39982: Add new special page to alias file too [07:18:12] on a new install of MW 1.13.0 I'm finding that I get logged out quite quickly(e.g. 10 minutes), but there doesn't appear to be anything wrong with the cookies, and I don't know that the time is consistent [07:18:20] any ideas of what to try? [07:19:26] my only guess so far is I wonder whether it's when there is a context switch on our host's server farm [07:20:32] erm.. I get: Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in Exception.php on line 160 [07:20:36] wtf? [07:32:19] omnivibe: are you sure it is running php5? [07:33:10] yep [07:34:01] oh wait a second... no! [07:34:07] Grr... lunarpages! [07:34:33] dpatton: does it run multiple servers? [07:58:45] could some one please tell me how to block certain pages on media wiki to be viewed by public users ? [08:00:12] !access | ozysimpson [08:00:12] --mwbot-- ozysimpson: For information on customizing user access, see . For common examples of restricting access using both rights and extensions, see . [08:01:50] ozysimpson: no such partial viewing is supported (or, "don't come crying to us when a partial security extension is trivially circumvented") [08:02:36] Duesentrieb: you'd think it'd almost be worth putting in the topic eh, heh [08:03:40] Splarka, i have a wiki in my organization which i want to share with public and restrict few pages that can only be viewed by my manager and sys admins [08:03:55] !cms [08:03:55] --mwbot-- Wikis are designed for openness, to be readable and editable by all. If you want a forum, a blog, a web authoring toolkit or corporate content management system, perhaps don't use wiki software. There is a nice overview of free tools available at including the possibility to try each system. For was to restrict access in MediaWiki, see !access. [08:05:15] it isn't just a philosophy, but a technical matter (which evolved from the philosophy) [08:05:37] for example, there are over a dozen ways to access page content or partial content [08:05:57] in other words: [08:05:59] !secrets [08:05:59] --mwbot-- MediaWiki was not designed with read-restrictions in mind, and may not provide air-tight protection against unauthorized access. We will not be held responsible should private information, such as a password or bank details, be leaked, leading to loss of funds or one's job. [08:06:15] transclusion/preloading/export/rss/atom/search/diff/action/preview/caching/indexing/sectionedits/api. and other extensions that might be installed [08:06:28] !worstcase [08:06:28] --mwbot-- generally, the worst that can happen is that someone compromises your site, steals your data, deletes it and replaces is with kiddy porn. then starts a spam service on your server advertizing the kiddy porn to twenty million email addresses, daily. Then your home gets raided, you get fired and your wife leaves you. [08:06:34] hehe :P [08:07:17] ozysimpson: the only semi-supported method is to make a parallel wiki (same install, different localsettings) which is completely read protected -> http://www.mediawiki.org/wiki/Manual:Preventing_access#Restrict_viewing_of_all_pages [08:08:24] Splarka, ozysimpson: well, there are some way of selective read protection that work ok (i like to think - i wrote one of the more popular options). but still, there's no guarantee, and this is simply not what mediawiki was designed for. [08:08:25] official wikimedia wikis use this method [08:08:52] which means, mediawiki is and was designed for full read restrictions, or full read access, but not really in between, as dues said [08:09:39] even so, I've accidentally gained access to a fully read protected wiki that was slightly misconfigured [08:10:02] (was a sysop on another wiki and the two had shared user db) [08:10:48] so if the data is a secret list of people on the wiki who you think are "pooheads", one of these extensions is probably fine [08:10:58] if however it is the secret recipe for Coke, then it isn't [08:11:06] Thanks Guys i might give it a complete read restriction [08:11:22] be sure to disable account creation [08:11:43] (or restrict read to sysops, and not user/*) [08:12:14] Splarka, sure will do so :) [08:12:58] Or is there some other products in the market that can do the same as wiki + restriction mechanism ? [08:13:47] :/ always with the names for wiki hosts... but never with the resources... [08:13:47] Duesentrieb, per http://www.mediawiki.org/wiki/Security_issues_with_authorization_extensions do you think it is worth mentioning static dumps, full XML dumps, etc? [08:14:02] *Dantman wonders if he should get back to working on that comparison [08:14:27] *Splarka knows one closed wiki that had dumps available accidentally [08:14:37] (yay for automated processes) [08:17:18] Splarka: mention it if you like, but i don't think it really fits. i mean, if you make a dump, it's going to contain everything, no? [08:17:48] :o [08:17:51] hmm, good point [08:18:02] ozysimpson: there are dozents and dozents of wiki engines .mediawiki is by no means the only one, and not the best choice for every need. [08:18:03] Splarka: we too have backups :o [08:18:15] Blasphemy! [08:18:24] Nikerabbit: backups to info leakage? [08:18:34] what's that, those flashy things from MIB? [08:18:49] ozysimpson: mediawiki is designed as an open massive collaboration text editing too. its prima application is wikipedia, its prime feature is scalability. [08:18:52] Splarka: no.. public backups :o [08:19:20] Nikerabbit: to private wikis? [08:19:32] we == wikimedia? [08:20:21] *Lady_Aleena sets out some cookies and milk then plops on the sofa and turns on the TV. [08:20:39] it's a trap! [08:21:08] Okay...you caught me, I am looking for something, I just don't know what. [08:21:32] Rats! [08:21:42] Dantman, bats? [08:21:53] ^_^ Mice? [08:21:57] dice [08:22:03] Aww... I was thinking Lice [08:22:10] fats [08:22:16] Role-player here... [08:22:18] mats? [08:22:22] the cookies are full of fats, she wants us lethargic and sitting here attentive [08:22:22] spats [08:22:27] heh [08:22:34] *Lady_Aleena is evil. [08:22:37] splats ;) [08:23:22] http://blogs.msdn.com/michkap/archive/2008/08/25/8893033.aspx [08:24:47] I want to be able to type [[Something/Something else|]] and have just "Something else" appear, or [[Anohter something#Another thing|]] and have just "Another thing" appear. I want {{ROOTPAGENAME}} and a pretty Special:SiteMatrix. [08:26:32] hey guys [08:26:51] Basically bugs 845, 12872, and 14949. [08:26:59] im trying to add a paypal donate button on my wiki...but when i enter the code paypal provides, it just shows the code on the wiki page instead of just the button [08:28:39] b00st3d: wikipedia does not use HTML [08:28:42] !html [08:28:42] --mwbot-- For allowing any and all HTML, see . This is of course VERY DANGEROUS. Safer options include , and . [08:29:27] werda, which extension do you recommend? [08:29:32] or is there a way around it? [08:29:46] there is probably one specifically for paypal [08:29:50] http://www.mediawiki.org/wiki/Extension:PayPal [08:29:54] b00st3d: If it were me, I'd write a paypal extension myself [08:29:56] or http://www.mediawiki.org/wiki/Extension:Simple_Forms [08:30:02] splarka! [08:30:04] thanks buddy [08:30:08] 03(ASSIGNED) Nested Concept's - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=15316 minor->15enhancement; normal->high; +comment (10markus) [08:30:15] always good to see u here helpin me :P [08:30:17] http://www.mediawiki.org/wiki/Extension:MiniDonation [08:30:53] rar [08:30:58] zip [08:31:07] the minidonation extension looks a lot more easy [08:31:08] hehe [08:31:29] There was a simpler way to say that b00st3d. :) [08:31:58] it takes a lot of work to be that lazy [08:32:10] Splarka, I know. [08:33:38] 03(mod) Multiple Synonyms - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=15305 (10markus) [08:48:36] hello folks [08:49:04] I have a question that I would like to ask regarding image uploading in wikimedia [08:49:17] *mediawiki [08:49:33] anyone willing to help? [08:49:41] !ask [08:49:41] --mwbot-- Don't say "I have a question", or ask "Is anyone around?" or "Can anyone help?". Just ask the question, and someone will help you if they can. Also, please read < http://workaround.org/moin/GettingHelpOnIrc > for a good explanation of getting help on IRC. [08:50:03] oh ok lol sorry [08:50:45] i've set image uploading as true in the local settings file but i can't find a form or something in which i can upload pictures while editing a page [08:51:05] it's in the toolbox on the left [08:51:08] it's unrelated to editing [08:51:31] !images [08:51:31] --mwbot-- For instructions to use images in MediaWiki, see . For more technical details about image uploads, see and . Note that uploads are disabled per default (see !uploads). [08:52:09] actually... look at http://www.mediawiki.org/wiki/Help:Managing_files [08:52:23] ok thanks alot for the help guys :) [08:58:25] say guys is there a way to make sure that only some specific users will be able to edit pages or add new ones? (not all the registered users but only some of them) [08:58:54] !access [08:58:54] --mwbot-- For information on customizing user access, see . For common examples of restricting access using both rights and extensions, see . [08:59:06] thanks :) [09:17:15] 03mkroetzsch * r40012 10/trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php: Return no inlinks using internal properties (Bug 15279). [09:18:38] 03(FIXED) Strange behaviour of Page Type in Array - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=15279 +comment (10markus) [09:37:56] 03(NEW) Tips to improve user experience and ergnonomy of Wikipedia - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=15317 15enhancement; normal; Wikimedia: General/Unknown; (noelecocq) [09:38:54] how often are the RSS feeds updated? [09:39:00] mmm... confirming https://bugzilla.wikimedia.org/show_bug.cgi?id=15292 this is bad... [09:41:02] argh [09:41:08] I hate bugbags [09:42:38] bugbags ? :) [09:45:07] 03(mod) Anonymous users don't see "Youhavenewmessages" alert - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15292 (10sb_paramount) [09:48:58] 03(mod) Multiple Synonyms - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15305 (10dasch_87) [09:52:43] 03nad * r40013 10/trunk/extensions/SimpleSecurity/SimpleSecurity.php: update messages [09:54:20] 03(mod) Anonymous users don't see "Youhavenewmessages" alert - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15292 (10nicdumz) [09:59:10] 03(mod) Tips to improve user experience and ergnonomy of Wikipedia - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15317 +comment (10Andrew) [10:30:22] Hi!: I've gor a simple question... I need to add a banner of the hoster, at the bottom of the mediawikik page. There where "Powered by MediaWiki" banner is located... Can you tell me how to do it, or where to read about it? [10:34:55] O_o editpage is wierd... [10:35:12] shaplov: Easiest way is to modify the skin [10:36:45] TimStarling: Erm... EditPage's $hidden for wpTextbox1.. it uses type="hidden" style="display:none;"... kinda redundant? mind if I remove the style? [10:36:52] Dantaman: skins/MonoBook.php ?? Seems to me that I've find it in the FAQ. Thanks ;-) [10:37:00] mhmm [10:37:45] Dantman: you should find out why it's there [10:38:53] Time to hand out some `svn blame`... [10:40:58] Dantman: please, it's svn praise :) [10:41:05] heh [10:41:19] Or ViewVC annotate if you prefer ;) [10:41:40] that has the advantage of not taking a century. [10:42:34] I dislike shell for large sets of text [10:42:45] logs, doing cli stuff, ok... [10:42:57] But trying to read a huge diff... ugh [10:43:04] 03(mod) Music cuts off a couple seconds too early. - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15315 +comment (10tstarling) [10:45:27] Nikerabbit: r10367, for hidden you used both a type=hidden and a display:none; on the style... care to enlighten me? any special reason to keep it, or is it just everyday coding? [10:46:46] !rev 10367 [10:46:46] --mwbot-- http://svn.wikimedia.org/viewvc/mediawiki?view=rev&revision=10367 [10:48:02] Dantman: no idea [10:48:21] if it work without... remove it [10:48:22] ^_^ Well, if you have no idea... then I suppose it's fine to just get rid of it [10:48:45] Tis easier without it... I'm using an Xml class function this time arround... [10:48:45] !bug 15063 [10:48:45] --mwbot-- https://bugzilla.wikimedia.org/show_bug.cgi?id=15063 [10:48:55] XML class is cool :) [10:50:27] I'm moving the actual output of wpTextbox1 into a showFormTextArea function, so I need to tweak thinks like rows, cols, editwidth, and that hidden to be internal to that function instead of scattered arround showEditForm [10:50:46] Xml::textarea was just a bit nicer than using a long string [10:51:31] ^_^ I personally like how my markup abstraction library has a special handling of the name input [10:51:45] Hi, does anyone has experience with Barrylb's fix for ampersands in page titles? [10:51:48] http://www.mediawiki.org/wiki/User:Barrylb/Fix_for_ampersand_in_titles [10:51:58] If you use an array, it assigns to both name and id [10:52:27] ..., $name, ... | ..., array( $name, $id ), ... [10:52:44] Next best thing to having a language that supports function calls with key inputs [10:53:19] *Werdna wonders if Dantman ever stops bragging. [10:53:33] heh, just random chatter [10:54:09] Easiest topic to find, is an interesting bit about something you've done... [10:54:32] ^_^ Obviously because it's easier to remember something that you've done, than something that someone else has [10:54:52] You ever heard of brion's RawSql idea? [10:55:12] no, I haven't. [10:55:45] He thought of using a RawSql object in the database system, so that we could input raw sql into functions and have them ignore it [10:56:06] ie: Put a JOIN inside of $tables, and have tableName ignore it instead of turning it into a name [10:56:16] that's a nifty idea. [10:56:24] Honnestly... it works beautifully in practice [10:56:40] And it works beautifully in more areas than just database abstraction [10:57:10] Think of using it in markup abstraction? [10:57:32] we could get rid of Xml::tags [10:57:37] ^_^ [10:57:55] I've got the same thing, and I'm thinking of doing that as well [10:58:13] Though... I kinda like the shortness of 'tags' over 'element'... actually I might go for using 'tag' as the generic [10:58:48] I like the Xml class [10:58:50] very elegant [10:59:04] produces far nicer code than putting raw HTML in. [10:59:18] ^_^ the real beauty is in things like $ml->a( $url, $ml->img( $src, 'foo' ) ); vs. $ml->a( $url, 'foo' ); [10:59:55] The later will output the escaped html tags... but even though the former basically outputs the same thing... it doesn't get escaped [11:02:49] Hmmm... maybe I'll use showTextbox1() instead of showFormTextArea() [11:03:16] 03(NEW) Change wiki logo on ka.wiktionary - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15318 trivial; normal; Wikimedia: Site requests; (malafaya) [11:03:33] I'll do something similar for Textbox2 [11:05:46] test [11:05:49] Duh, Barrylb's fix does not work in 1.13 [11:07:35] How can I deal with ampersands in page titels? [11:07:52] Paths or queries? [11:08:09] Actually... where is the issue? [11:08:21] ;) And normally, it's always good to urlencode things [11:09:29] Pages with ampersand in the title won't show [11:09:50] What do you mean by that? and where? [11:09:53] http://nl.wikisage.org/wiki/Opperlandse_taal-_%26_letterkunde [11:10:32] http://nl.wikisage.org/wiki/?title=Opperlandse_taal-_%26_letterkunde Your rewrite rules are broken [11:11:02] Ok, so where do I find these? [11:11:17] That depends on how you setup shorturls [11:11:45] brb [11:13:24] $wgScriptPath = "/w"; [11:13:27] $wgArticlePath = "/wiki/$1"; [11:15:05] The issue isn't to do with MediaWiki [11:15:14] Messing with the config there isn't going to help [11:15:28] So what can I do? [11:15:39] It's the rewrite rules... something to do with your webserver... likely a .htaccess file [11:17:15] Nothing in .htaccess except AuthUserFile [11:19:04] Wait, there is another one level up [11:19:04] Then someone probably did the shorturl stuff inside of the Apache config... or whatever your webserver's config is [11:19:36] RewriteEngine On [11:19:38] RewriteCond %{REQUEST_FILENAME} !-f [11:19:47] RewriteCond %{REQUEST_FILENAME} !-d [11:19:57] RewriteRule ^wiki/(.*)$ w/index.php?title=$1 [PT,L,QSA] [11:20:08] RewriteRule ^wiki/*$ wiki/ [L,QSA] [11:20:16] RewriteRule ^/*$ wiki/ [L,QSA] [11:20:21] That's it [11:20:29] !rewriteproblems [11:20:29] --mwbot-- 1) Try as a fail-safe method; 2) Do not put the files into the document root; 3) Do not map the pages into the document root; 4) Use different paths for real files and virtual pages; 5) Do not set a RewriteBase; 6) Put all rules into the .htaccess file in the document root. [11:22:44] Well, they look exactly the same [11:22:49] *Dantman wonders if he should temporarily use s smw cloak [11:23:08] s/\bs\b/a/ [11:23:22] why? [11:23:53] comment target? [11:24:51] This is the .htaccess in the same directory as where w is found. Should it be moved up or down? [11:25:39] "6) Put all rules into the .htaccess file in the document root." ie: NO [11:25:58] There is nothing wrong with their location... it's the rewrites themselves [11:26:10] Path to query rewrites are ugly [11:26:17] Well, these were copied from the manual [11:26:35] ^_^ Manuals on MediaWiki.org can't be trusted [11:26:38] mediawiki message for showing a language selection in loging form? [11:26:55] 03(NEW) Incomplete docs or implementation for emailuser tokens - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15319 normal; normal; MediaWiki: API; (sco_scam) [11:27:05] Hrmpf. [11:27:29] Yes, those rewrite rules work... however it's likely that no-one bothered to find out if it could be done without breaking the RFC [11:28:10] I prefer using my nginx trick [11:29:30] *TimStarling declared armorLinks() dead a little bit too early [11:29:30] Heh... don't you love Semantic Forms formedit V2 http://dev.wiki-tools.com/formedit/Infobox:WikiVid ^_^ rotfl... [11:30:09] I rewrote replaceFreeExternalLinks() so it didn't break things, but I soon discovered that I still need armorLinks [11:30:19] Can these rewrite rules be amended so they don't break anything? [11:30:25] because you can put bracketed external links iniside attributes [11:30:27] :P [11:30:30] MostafaDaneshvar: like, a list of links to the login with uselang? [11:30:40] (probably MediaWiki:Loginend ) [11:30:41] YES [11:32:38] {{fullurl:{{#special:Userlogin}}|uselang=en}} [11:32:53] *Dantman debates if he should turn the entire editform into a template [11:32:57] not that that is needed unless you have multiple content languages... and even then not really [11:33:16] [{{fullurl:Special:Userlogin|uselang=en}} English] etc [11:33:44] aha' [11:34:02] hmm.. [11:39:04] hello [11:40:02] MostafaDaneshvar: http://test.wikipedia.org/w/index.php?title=MediaWiki:Loginend&oldid=62806&action=edit [11:40:11] a link for every language in Names.php [11:40:48] (you probably don't want the secure/insecure bit at the top) [11:42:46] 03(mod) More information in hookaborted API error needed - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14261 (10roan.kattouw) [11:44:03] Dantman: mmyay [11:44:13] Hmmm? [11:44:25] Dantman: are you working on edit page? [11:44:28] MostafaDaneshvar: I think that short list is defined in http://en.wikipedia.org/wiki/MediaWiki:Loginlanguagelinks if you just want to add a few manually [11:44:32] Mhmm... [11:44:36] ^_^ now take a look at it [11:44:40] heh [11:45:01] To be specific... [11:45:32] I'm refactoring the EditPage class so that its possible for extensions to subclass the EditPage class and create new actual types of editpages [11:45:59] ie: Semantic Forms can create a FormEdit page rather than faking it out... [11:46:05] And there's more posibilities [11:46:25] Someone once had an edit page that split the page into a number of textboxes... each textbox was for a different section... [11:46:41] I tried RewriteRule ^(.*)\&(.*)$ $1\%26$2 but that doesn't work [11:46:53] Dantman: I've always found it very inflexible [11:46:57] And even better... WYSIWYG editors could instead subclass the EditPage and create new WYSIWYG edit modes [11:47:02] Ya [11:47:05] Splarka,aha. I'm looking for this one. thanks /Loginlanguagelinks [11:47:07] Or wyat? [11:47:13] Dantman: translate extension would benefit from it also [11:47:16] You talking SF or EditPage? [11:47:35] ^_^ imagine a 'wysiwyg edit' tab beside 'edit source' [11:48:00] ;) It also means that they don't have to poke us over and over saying "Hey we need new hooks" [11:48:23] we currently have two hacks to remove "you are editing a interface message" and newarticletext [11:48:48] Hmmm... so you're using hacks to remove warning messages? [11:49:28] yes, because they do not make any sense in this context [11:49:41] 03(mod) Change wiki logo on ka.wiktionary - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15318 +shell (10meno25wiki) [11:50:14] Well... I was thinking of creating a $this->showErrors() function... however, if you are hacking the page like that... I may actually want to turn the whole thing into a setup that uses a $this->errors array [11:50:26] That way you can overload something, and unset any message you don't want [11:50:28] did mediawiki participate in GSoC in 2008? [11:50:44] The Wikimedia Foundation did, yes. [11:51:04] also in FSoC :) [11:51:17] I was trying to find mediawiki :) [11:51:19] FSoC? [11:51:22] what's that? :D [11:51:26] finnish... [11:55:20] hmmmm... Nadir_Seen_Fire!dantman@smw/Daniel Friesen ..... [11:57:45] ? [11:59:05] Just debating cloaks... [11:59:23] Honnesly... I'd like to use Nadir_Seen_Fire!dantman@nadir-point/Dantman [11:59:44] But I haven't gotten to registering with FreeNode... and I should probably expand more first [12:01:49] Hi I'm new to using Wikis, I just installed MediaWiki on my webserver last week. Now I'm trying to learn how to use it.... [12:02:21] And I wanted to emulate how things work from this page:http://www.binero.se/wiki/index.php?title=Huvudsida [12:03:02] That's just a table with some styling [12:03:10] Nothing special or dev help worthy [12:03:10] look at their page source then [12:03:16] ...When you [edit] or [redigera] on their page you get a much nicer WYSIWYG edit tool how can I enable that on my own Wiki? [12:03:18] but don't get put off by complex templates and tables [12:03:29] start simple, learn more complex stuff as needed [12:03:51] !wysiwyg | apprentice [12:03:51] --mwbot-- apprentice: What You See Is What You Get editors allow you to create articles and see the text formatting without needing to Show Preview. A list of wysiwyg editor extensions may be found at . For some discussion, see . See also . [12:04:51] apprentice: beware that wysiwyg only really works for simple formatting. for complex pages, it tends to screw up badly. which is the reason it's not used on wikipedia et.al. the problem only is partly technical - it's really a fundamental problem with the concept of wysiwyg [12:05:22] basically, it only lets you edit what you see, by definition. [12:05:33] hmm...guess it's best to learn to use Wiki like they work on most websites then for the sake of confirmity. [12:05:38] which is bad, because there are many invisible aspects to a wiki page [12:06:05] confrimity=conformity [12:06:20] apprentice: if you want to manage the wiki, you *will* need to know how to use the plain wiki syntax. if you want to offer awysiwyg option to users for simple formatting is up to you then. [12:06:54] apprentice: but if you want to have pretty boxes and shiny icons, you'll have to deal with the complex stuff. [12:07:13] ok tnx for your tips! [12:07:15] !synatx | apprentice [12:07:15] --mwbot-- apprentice: I don't know anything about "synatx". [12:07:23] damn [12:07:24] !syntax | apprentice [12:07:24] --mwbot-- apprentice: For help with MediaWiki's Wikitext syntax, please see . For an (incomplete) formal specification, see . [12:07:29] :-) [12:10:59] my local wiki doesn't show Loginlanguagelinks in loging form! [12:11:01] 03(NEW) Show the log in page if a cookie expires and a watchlist is requested - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15320 15enhancement; normal; MediaWiki: Special pages; (wipedout) [12:11:30] MostafaDaneshvar: maybe use Loginend then [12:12:17] does Loginlanguagelinks need any variable in LocalSettings? [12:13:33] MostafaDaneshvar: yes, see http://www.mediawiki.org/wiki/Manual:$wgLoginLanguageSelector [12:14:34] hello [12:15:31] SPQRobin:aha. that's what I need :D [12:20:49] My... the more I edit EditPage.php, the more I start to like the idea of turning the edit page into a pagetemplate and doing all the complex logic beforehand, and just replacing things after [12:21:52] uh [12:22:09] take it in small steps [12:22:52] ^_^ try saying that after you try organizing the inputs [12:23:41] *Dantman wonders if he should turn his work into a branch in svn [12:25:46] I also have to consider the fact that extensions might want to change where and what edit buttons are displayed... [12:26:31] they probably want to chage ~just about everything the edit pages has [12:27:11] Not really... [12:27:17] Dantman: with small steps you don't create hard bugs that may get the whole tring reverted :o [12:29:11] Primarilly what SF will override would be setHeaders (to tweak the pagetitle), showTextbox1 to replace the text form with the actual form... and they might want to override what I'll probably name showEditButtons to disable display of the edit buttons [12:29:35] ((SF can customize their location)) [12:29:52] And I suppose they may want to tweak things so the copyright notice doesn't get in the way [12:30:50] But I actually have a showFormBeforeText and I'm going to have a showFormAfterText (having issues making that one though) because those hold things like the edit tokens [12:33:10] Quite simply... one little beautifull side effect of switching to subclassing the edit page... is that the token security (and also the way we have certain inputs before, and others after the edit box) will actually be intact by default [12:33:41] Because they are stored in overriable functions separate from the one that displays the edit form [12:33:58] Which is actually the one single method that 99% of extensions are likely going to override [12:34:44] Nikerabbit: Even though it's slightly ugly, and incomplete, think I should commit? Technically noting breaks... [12:38:48] Dantman: mm [12:38:57] Dantman: why not? [12:39:09] Dantman: have you thought about editing multiple pages at once or multiple edit fiels? [12:39:19] ^_^ I've just been keeping it on my webserver till it's complete [12:39:48] Nikerabbit: As for multiple edit fields... really those would just take the place of the first one [12:40:03] Editing multiple pages is quite different though [12:40:22] In fact that's probably complexity a bit beyond EditPage [12:40:29] Dantman: I want it! [12:40:32] A lot of the code deals with a single title [12:40:42] Dantman: just a loop trough all the titles...? :D [12:41:12] I'm not saying edit page should do it 100%, but would be nice if it were flexible enough to allow it [12:41:33] If you were going to do that... I'd suggest splitting EditPage into two completely different classes... one that handles the page logic, and one that handles the page itself, as in displaying... [12:42:01] Then you'd just construct multiple of those logic objects, and tweak the editpage to handle them [12:42:30] ^_^ But then that goes into the whole... large changes that might get reverted [12:42:32] heh [12:42:40] Dantman: small steps... [12:42:59] Dantman: anyway that is a long requested thing in betawiki, in addition to ajax spicy [12:43:52] ajax preview ;) [12:44:58] That actually should be a fairly easy posibility [12:45:13] We already have a div unconditionally displaying... [12:45:23] And the API as a action=parse [12:45:26] has* [12:46:00] The only real tricky things... are the displaytitle, and a bit of a fancy ui... (Disabling the preview button, replacing preview with a spinner and such) [12:46:47] To be honnest... awhile back Wikia used to have something like that [12:47:11] Though, the way they used a special page was quite ugly [12:47:14] 03siebrand * r40014 10/trunk/phase3/languages/messages/ (42 files): Localisation updates for core messages from Betawiki (2008-08-26 14:37 CEST) [12:47:30] {{PAGETITLE}} was horribly broken since they didn't bother parsing right [12:49:52] :o [12:49:57] there is ajax preview [12:50:03] but it just sucks [12:51:11] heh... how so? [12:51:42] Dantman: acts poorly with browsing history, pita to update all elements (categories, in other languages links) and so on [12:52:00] oh [12:52:16] 03siebrand * r40015 10/trunk/extensions/ (86 files in 69 dirs): Localisation updates for extension messages from Betawiki (2008-08-26 14:37 CEST) [12:53:29] Dantman: it should be possible to use the skin to render those elements and then replace those with some logic.... [12:53:35] but that's not possible currently [12:54:16] ^_^ Then help out with a few ids and stuff in OutputPage and Skin(Template) [12:54:37] breaking out some logic as well [12:56:42] 03(NEW) Categories with description page but without members aren' t in the category table - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15321 15enhancement; normal; MediaWiki: Categories; (roan.kattouw) [12:56:47] help me to build a time machine [12:58:43] Hmm... you might have to contract me out on that one.... ^_^ And I prefer to program it in lisp instead of PHP... heh [12:59:10] What's the difference between MySQL 4.1/5.0 binary and MySQL 4.0 backwards-compatible UTF-8 ? [12:59:46] <_mary_kate_> Platonides: the latter works in all cases, but has some shortcomings (like incorrect sort order in category pages). the former doesn't have those problems, but it uses mysql's deficient Unicode support [12:59:55] Dantman: let's write it in haskell [12:59:57] <_mary_kate_> Platonides: which basically means you can't put any non-BMP Unicode characters in your wiki [13:00:03] heh [13:00:41] the BMP limitation wasn't for MySQL 4.1/5.0 UTF-8 ? [13:00:51] hi there, i need to know how to change the font of my complete wiki into "MS Comic Sans" [13:00:51] _mary_kate_, in what ways is the sort order wrong in the binary schema? Other than case-sensitivity, I guess. [13:01:00] maxxxxx, one line of CSS. [13:01:06] Also, you should die for using that font. [13:01:08] But that's a side issue. [13:01:15] (maybe it's a comic wiki, for all I know) [13:01:21] <_mary_kate_> Simetrical: it's sorting the data as if it were 8-bit text. using binary order. you can't sort UTF-8 like that, the result is nonsense [13:01:30] i'm just doing what i was told to do :-) [13:01:39] where do i need to add the css? [13:01:48] _mary_kate_, binary-sorting UTF-8 sorts in code point order, unless I'm mistaken. [13:01:50] i tried it in monobook.css and in common.css [13:02:33] <_mary_kate_> Simetrical: code point order is nonsense :) [13:02:52] maxxxxx, MediaWiki:Common.css, if you want it to be for all skins. body { font-family: MS Comic Sans; } [13:03:03] _mary_kate_, any method of sorting all of Unicode is nonsense. [13:03:13] Sorting has to be locale-dependent to be correct. [13:03:37] Does MySQL's utf8 order sort in some fashion other than code point order? Is there some official Unicode sorting order? [13:03:38] <_mary_kate_> Simetrical: you can sort 'mostly right' using the standard ordering [13:03:52] is there a wikimedia code tag for inserting a tab or large space? [13:04:33] Ah, UTS#10, Unicode Collation Algorithm. [13:04:44] simetrical: i tried what you told me, but it din't work [13:04:49] <_mary_kate_> Simetrical: http://www.unicode.org/unicode/reports/tr10/#Default_Unicode_Collation_Element_Table [13:04:51] maxxxxx, link? [13:05:11] sry, but it's just workin locally atm [13:05:56] <_mary_kate_> that at least lets you sort "a, á, b, c, ç, d..." instead of "a b c á ç" [13:07:30] _mary_kate_, why can't we just update cl_sortkey so that it uses proper Unicode collation? [13:07:44] <_mary_kate_> Simetrical: because then you can't store 3/4-byte characters [13:07:59] _mary_kate_, no, I mean that it should contain the sort keys specified by the algorithm. [13:08:01] <_mary_kate_> (also, it wouldn't work on 4.0) [13:08:09] Still tell MySQL it's binary. [13:08:10] <_mary_kate_> Simetrical: that might work. i guess no one has implemented it [13:08:25] I am trying to explain to my host about running the scripts associated with installing extensions; can anyone help? [13:08:38] Seeing as I don't know myself, they certainly don't [13:10:18] Gary_Kirk, which extension? [13:10:31] well various but to start with, flaggedrevs [13:10:43] Gary_Kirk, you probably just need to run some database queries. [13:10:56] "Run maintenance/update.php" [13:11:05] is like the third line of the instructions [13:15:48] Is there a parser function to truncate Strings ? [13:16:22] No... but you can imitate one by using {{#if:1|yourstring}} [13:16:50] Perhaps I should add a #trim into WikiCode at some point [13:18:11] {{#if:1|yourstring}} - How do I use this for truncation ? [13:22:11] 'yourstring' will be truncated... it's just as simple as that [13:22:24] Ohwait... misread [13:22:33] I thought you wanted trimming [13:22:34] does anyone know if there's a wikimedia code tag for inserting a tab or large space? [13:22:48] You'll want StringFunction's #sub [13:22:54] exactly... [13:23:04] any links how to use that... [13:26:17] !e StringFunctions [13:26:17] --mwbot-- http://www.mediawiki.org/wiki/Extension:StringFunctions [13:33:33] hi Dantman [13:35:33] Huh? [13:39:13] was it Duesentrieb that talked about file loader support? [13:39:16] or you Dantman? [13:39:41] like a special page or something to transfer files from the file system? [13:39:45] ^_^ I don't really know what topic that is... so... probably not... heh [13:40:02] would be handy for example for extension that need css [13:40:22] they could just register the file to MediaWiki and not worry about how to access the file from web, if it is possible at all [13:40:46] Oh wait... [13:41:02] You talking about my Special:RawFile and the proposed raw.php? [13:41:11] Dantman: oh yeah, probably! [13:41:16] mhmm [13:41:37] Dantman: any progress with it? [13:42:14] Special:RawFile already exists as an extension... I suppose I have a small bit of raw.php code, not to much though [13:42:22] Actually it's not that big of a thing [13:42:50] Really you copy a bit of code from api.php, and find a way to add in the hooks [13:42:52] which would do raw.php? [13:43:37] Platonides: raw.php would allow extensions to hook into RawFileContent and output something like a css or js file [13:43:50] Special:RawFile? [13:44:00] Yes, that's the current implementation I have [13:44:22] What's the difference between it and Special:FilePath? [13:44:40] filepath is for uploaded files [13:44:51] http://svn.nadir-point.com/viewvc/mediawiki-extensions/trunk/SpecialRawFile/ [13:45:25] The point of Special:RawFile or raw.php is outputting a raw file for an extension [13:45:33] Something like an extension's js or css [13:45:52] We only have 2 current alternatives [13:46:13] A) Make the installer copy the css/js into /skins (BAD, not good for updating) [13:46:36] B) Guess what web path to use to point to the actual file [13:46:55] A lot of extensions do that, and some actually do that reall badly... [13:47:10] And we're honnestly not guaranteed that extensions are going to be installed in that standard location [13:47:14] Dantman, why can't you base it off $wgScriptPath or such? [13:47:22] A lot of extensions assume they're installed in extensions/. [13:47:36] I don't see a problem with that. [13:47:55] In fact, I recall someone on the list saying they hosted installations of MW for people, and they let them use an /extensions folder in their home directory to add new ones [13:48:22] There is absolutely nothing saying that someone can't install an extension from some location other than /extensions [13:48:47] Simetrical: why isn't it allowed to "just work" instead of throwing in some undocumented assumptions that are broken [13:48:53] I uploaded an svg and im getting this: error creating thumbnail: convert: must specify image size `/tmp/magick-XXnmS0zz'. [13:48:59] anyone know whats wrong here? ive got imagemagick installed and $wgUseImageResize = true; $wgUseImageMagick = true; and $wgImageMagickConvertCommand = "/usr/bin/convert"; [13:49:21] Also, there is a little bonus [13:49:35] Technically you could even allow file tweaks with query parameters [13:49:52] You see the code GeSHi inserts into a page? [13:50:18] Imagine turning that into a style inclusion and using a query parameter to tweak the small variable portion of it [13:51:05] I just want it to work [13:51:52] In fact, if you're using SVN, non-standard paths are quite nice... [13:52:20] please make it work [13:52:26] /mediawiki/source, /mediawiki/extensions-wikimedia, /mediawiki/extensions-custom [13:53:10] ie: Checkout all of /trunk/extensions/ and also have a separate folder for things you might copy off MediaWiki.org [13:53:25] That way you can easily svn up, without running into issues [13:54:44] hello. how do i get mediawiki to ignore a specific URL for parsing to external link [13:54:46] Honnesly... the only reason extensions on my installation can be reached through $IP/extensions is because I overcomplecate things using links [13:55:02] haptik, a nowiki tag? [13:55:23] ahh haven't seen that before [13:55:24] thanks [14:01:14] Dantman: :OO [14:01:30] Hmm? [14:05:39] How do I run php shell scripts on my shared hosting package; what do I ask them? [14:07:37] Ask if they have SSH [14:07:43] 03dantman * r40016 10/trunk/phase3/includes/EditPage.php: (log message trimmed) [14:07:43] Commit initial portion of EditPage refactoring. [14:07:43] This isn't complete, but nothing is broken. [14:07:43] The goal here is to make it possible for extensions to subclass the editpage and override certain areas of it while allowing the rest to keep it's presence without needing to copy code from core which may change. [14:07:45] * Use $this->action instead of hardcoded 'submit's so this may be overridden for subclasses that use a different action=... [14:07:48] * Move all the header setting into a new setHeaders() function. This way subclasses can tweak the title, this was previously impossible because of how scattered setPageTitle calls were. [14:07:49] !ssh | Gary_Kirk [14:07:49] --mwbot-- Gary_Kirk: I don't know anything about "ssh". You might try: !csshideheader !hosting !shell [14:07:51] * Move the previewarea stuff that was being duplicated in 2 places into it's own function. [14:07:58] bah [14:08:00] !shell [14:08:00] --mwbot-- Shell access (that is, SSH access, see http://en.wikipedia.org/wiki/SSH) is highly recommended if you want to run MediaWiki. You can install without it, and basic operation will work, but even creating backups or upgrading will be painful without it. Some more involved maintenance tasks may even be impossible. MediaWiki is not designed for minimal environments. [14:08:04] !hosting [14:08:04] --mwbot-- For a list of popular wiki hosting services, see . You can also set up MediaWiki on most webspace that provides PHP and MySQL (SSH recommended). [14:08:45] also: [14:08:47] !phpshell [14:08:47] --mwbot-- PHP Shell emulates shell access to a system. Read more about it and download it at < http:mgeisler.net/php-shell/ > [14:09:05] Yeah, they ran some script for me before to install oversight but the person I just spoke to doesn't know anything about that and said it was impossible. [14:09:13] ^_^ Heh, I should probably get back to my site on mediawiki host comparisons [14:09:29] Thanks, I asked about phpshell and he just said I should email support [14:09:36] Gary_Kirk: well, "impossible" is bullshit. "Not Done" or "you didn't pay for that" is more like it. [14:09:57] Gary_Kirk: it may also be "i don't know how" in which case that person is incompetent. [14:10:20] Or isn't paid to spend his time figuring it out. [14:10:40] So the exact wording I need to use is - "I need to be able to run, or have run, PHP scripts from a shell and not in a web browser, what gives?" [14:10:40] Gary_Kirk: phpshell is a hackish solution and something hosting services probably don't really like you using. if they are smart, thy'll rather give you real shell access. [14:11:14] something like that [14:11:24] shell access is a very nice thing to have, also for making backups, etc [14:11:26] ^Okay, I'll try, cheers [14:11:31] i usually consts a bit more. [14:11:53] Why do hosts mind if users have shell access? [14:11:54] yeah. well this is pretty cheap compared to what I was on, so we'll see [14:12:24] 03(NEW) dewiki: Allow editors to give feedback rating - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15322 normal; normal; MediaWiki extensions: FlaggedRevs; (church.of.emacs.ml) [14:12:28] Simetrical: because that way they have less controll over what people run? think fork bomb. [14:12:37] Simetrical: also, they like to charge extra for that. [14:12:40] If PHP allows exec() you can fork bomb anyway. [14:12:43] Duesentrieb: you can do a fork bomb in PHP [14:12:49] yes, true [14:12:50] Simetrical: ^_^ Most probably are setup with real poor security... and they can't be bothered to fix it [14:12:53] If it doesn't you can still fork bomb, just send HTTP requests to yourself recursively. [14:13:08] 03(mod) dewiki: Allow editors to give feedback rating - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15322 (10raimond.spekking) [14:13:08] but yes, he's right in that they like to charge extra. [14:13:12] but that stuff can be controlled by apache setup [14:13:16] it's just simpler to handle [14:13:39] and it's possible to disable all of PHP's shell running functions [14:13:49] Not that easy to secure from shell [14:14:08] And there's always the dreadded safe mode that hosts like to use [14:14:22] but it's easy to limit execution time, memory, etc... as long as you don't nohup your fork bomb... [14:14:24] bah, whatever [14:14:25] Then they get to box you in as a compensation for poor security [14:19:49] Ok, next problem. I have set up this new wiki in a subdir of a dir in public_html. Will setting up pretty URLs be just as simple as in the other directories; I don't want to try and mess it up [14:20:50] php shell has moved to http://phpshell.sourceforge.net/. How can mwbot's hints be changed? [14:21:22] 03raymond * r40017 10/trunk/phase3/includes/specials/SpecialWatchlist.php: Make the elements of the watchlist fieldset identical to the elements of the recent changes fieldset. [14:22:52] can an mwtrusted someone please say something like "!phpshell is PHP Shell emulates shell access to a system. Read more about it and download it at < http://phpshell.sourceforge.net/ >" [14:22:53] 03shinjiman * r40018 10/trunk/phase3/languages/messages/ (5 files): Localisation updates Cantonese, Chinese and Old/Late Time Chinese [14:27:24] 03dantman * r40019 10/trunk/extensions/SemanticForms/ (3 files in 2 dirs): [14:27:24] Commit a little bit of code for using a subclass of EditPage. [14:27:24] This is disabled by default, and largely does nothing. A little bit of work has [14:27:24] gone into it, but the EditPage class needs some more refactoring work, and we [14:27:24] may need to rewrite part of the form printer to get this to work right. [14:27:27] ((Also, use setRobotPolicy rather than addMeta)) [14:30:55] Dantman: while you are it... [14:31:25] T_T but, but... I already closed jEdit [14:31:46] Dantman: https://bugzilla.wikimedia.org/show_bug.cgi?id=11119 is possibly related [14:32:49] just to keep in mind if you happen to stumble upon it and make people happy :) [14:33:19] 03(mod) {{grammar}} broken in noarticletext(anon) when ui lang != content lang - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=11119 (10dan_the_man) [14:33:54] Dantman: doesn't wgOut->setPageTitle overwrite previous title? [14:34:03] mhmm [14:34:07] it does [14:34:42] Dantman: it looks suspicious when you first check for isConflict... and then set other ones [14:35:49] hmm... you're right... perhaps that was supposed to be an elseif [14:36:25] T_T I don't want to open my editors back up [14:37:24] $ew <- I like that variable name :) [14:37:28] 03tstarling * r40020 10/trunk/phase3/ (14 files in 5 dirs): (log message trimmed) [14:37:28] * Revert back to my parser pseudo-branch again. Note: if you feel like reverting this, reverting Parser.php alone to r40010 will work just fine. [14:37:28] * Merged replaceFreeExternalLinks() with doMagicLinks(). Makes a lot of sense, [14:37:28] very similar operations, doesn't break any parser tests. Stops free links from [14:37:30] interacting with other parser stages, the same way ISBN links don't. [14:37:32] * The pass order change fixes Brion's complaint in r39980. Early link expansion, triggered by having more than 1000 links in the page, was outputting URLs which were destroyed by RFEL. Added parser test. [14:37:35] * Fixed an unrelated bug in LinkHolderArray::replace(): if a link to a redirect [14:38:29] Nikerabbit: heh [14:38:37] 03dantman * r40021 10/trunk/phase3/includes/EditPage.php: Whoops, this was probably supposed to be an elseif. [14:38:55] ^_^ you're right... it is worthy of the fact that it uses strings for the attributes [14:39:13] Though... I kinda like $ewww better... heh [14:40:06] Darn. That's was the second merge conflict of the day... [14:40:27] heh [14:40:41] Cna't you guys stay out of the code areas where we have our patches? :) [14:41:54] 03(mod) Incomplete docs or implementation for emailuser tokens - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15319 +comment (10Bryan.TongMinh) [14:42:42] what's the easiest way to get a link to open in a new window instead of navigating away from the current page? [14:44:17] *siebrand pokes Dantman on #3. [14:45:04] huh? [14:45:53] o, i see [14:45:56] bad mojo to do so [14:45:59] ok, nvm [14:47:11] ^_^ being a group contact is going to be fun [14:48:38] hi [14:49:49] i just upgraded to 1.14 and when I try to edit pages, i get a blank page [14:51:00] I asked this 7+ hours ago, but I'm awake now, so I'll ask again, as I can now respond to any responses :-) [14:51:03] On a new install of MW 1.13.0 I'm finding that I get logged out quite quickly(e.g. 10 minutes), but there doesn't appear to be anything wrong with the cookies, and I don't know that the time is consistent. [14:51:04] Any ideas of what to try? [14:51:06] My only guess so far is I wonder whether it's when there is a context switch on our host's server farm. [14:51:07] For example, I have a non-MW page with a form, and I save a field's input in a session, so it can be recalled, but.... [14:51:09] that only works "some of the time", because when the webserver switches to another server, the session data changes(may be none, or session data from 'a while ago'). [14:51:19] Nikerabbit: does that explain things enough? [14:51:29] zocky: check your PHP error logs [14:51:36] blank page == PHP error [14:51:53] !session | dpatton [14:51:53] --mwbot-- dpatton: make sure session.save_path is set correctly in your php.ini. Verify that it exists, is readable and writable to PHP, and check that session data is actually being written there. On a server farm, make sure it's a shared directory, accessible from all servers. [14:51:57] dpatton: so what was your answer? :o [14:52:25] if there is multiple servers, check that php's session path is so that all servers can access the same data? [14:52:41] dpatton: basically: when using a farm, store session data centrally. storing it per server doesn't make sense, that would really be a broken setup. [14:53:34] Yes, but that's the way it is setup by our host, so that was my first guess as to what's wrong [14:53:57] dpatton: hit them with a clue-by-four. [14:54:09] I think you guys have just confirmed that is the likely source of the problem [14:54:11] there's no reason to set it up like that. ever. [14:55:06] I'll approach them and ask about it, as I'm fairly sure others that they host are running MW, so they must have already encountered this [14:55:10] Cannot redeclare EditPage::displayPreviewArea() in .../includes/EditPage.php on line 1533 [14:55:16] thanks for the guidance :-) [14:55:26] the function is duplicated in the file, for some reason [14:55:55] I expect it's diff cruft [14:57:00] Anyone want to fix something that small for me, or do I have to re-open everything yet again? [14:57:06] I will. [14:57:10] thanks [14:57:28] Reopening jEdit and getting back to my working copy is a pain on this slow compter [14:58:03] TortoiseSVN probably just screwed up when I gave it the patchfile I made on my webserver [14:58:24] <^demon> Bah, stupid Aptana wants to update.... [14:59:02] 03minuteelectron * r40022 10/trunk/phase3/includes/EditPage.php: * Remove duplicated function in EditPage. [14:59:12] <^demon> Bah, beat me to it :-p [14:59:25] 11:00:48 < MinuteElectron> I will. [14:59:44] <^demon> Somehow missed that ;-) [14:59:48] Aptana is great, but very clunky. [15:00:15] I gave up using Aptana and TortoiseSVN in favour of Notepad2, WinSCP and plain svn. [15:00:18] <^demon> Opening isn't the fastest thing ever, but I love it otherwise. [15:00:53] jEdit, TortoiseSVN, and cygwin for me [15:00:54] While it isn't as intuitive the fact it isn't so slow means that I can work much more productively. [15:01:22] ^_^ Be happy that that is your issue... my issue is that my whole computer is slow, heh [15:01:26] it also won't let me save the page [15:01:38] Even if I switched to notepad it wouldn't helpa [15:01:48] is it likely to be more diff artefacts? [15:01:58] hmm, you can't save? [15:02:03] i click save, i get preview [15:02:15] Strange... I thought it was working when I tested it [15:02:22] *sigh* [15:02:32] Dantman: Well, shell extensions such as TortoiseSVN are known to cause your computer to slow down considerably, TortoiseSVN specifically isn't a fast piece of software to begin with either. [15:03:11] Hey, for API edit, is there a way to apply maxlag to it? [15:03:14] <^demon> 1.5 is faster, but I can't seem to get 1.5 client to work with MW's 1.4.x server :( [15:03:18] Like you can for regular editing? [15:03:54] &maxag=x [15:03:59] *maxlag [15:04:35] Is that a valid parameter? [15:04:49] http://www.mediawiki.org/wiki/API:Edit_-_Create%26Edit_pages doesn't say so [15:04:52] yeah [15:05:24] http://en.wikipedia.org/w/api.php <- it is there [15:05:35] Dantman, I don't know if this is related, but when I click edit, I get < > converted to < >, even in , and I still can't save [15:05:39] Ok, then [15:06:18] I honnestly haven't been messing with the logic, so I don't know what's wrong... but lemme see what's wrong with saving first [15:07:05] <^demon> Dantman: Same error for me. [15:07:46] <^demon> Save goes directly to preview, < and > are converted to html entities. [15:08:31] <^demon> Dantman: Reverted to before your changes fixes the error, so I'm going to revert for now. [15:09:40] aaagh... [15:09:48] I know what the entities issue is [15:10:16] Doesn't anyone else find that people reverting other people's commits a bit rude. [15:10:19] it's the use of Xml::textarea when the encoding has been used [15:10:20] <^demon> What about press-save and goes to preview? [15:10:24] MinuteElectron, not if they break. [15:10:25] 03ialex * r40023 10/trunk/phase3/includes/SiteConfiguration.php: Redo r39954, without regression this time. Sorry :( [15:10:32] What's rude is committing patches that break trunk. [15:10:33] Lets see about that [15:10:38] If trunk is broken, it should be fixed immediately. [15:10:58] Lets see if the issues are related [15:10:59] Not at some indefinite point when the author may or may not be able to figure out a way to fix it properly. [15:11:05] 03demon * r40024 10/trunk/phase3/includes/EditPage.php: Revert 40016, 40021, 40022. Breaks ability to save and has html entities problems. [15:11:07] <_mary_kate_> if a commit is wrong, it should be reverted and re-committed [15:11:07] I mean, fair enough if the person isn't available and doesn't respond within a few minutes - but you should at least give them a chance to fix it first. [15:11:16] <_mary_kate_> that causes less harm than saying "hey, i noticed your commit is broken, please fix it some time" [15:11:26] MinuteElectron, not if they're going to take an hour to track it down and fix it. [15:11:29] Trunk must work at all times. [15:11:33] fine. [15:11:46] yep, I just updated and now my site is down [15:12:13] ideally, that shouldn't ever happen with the trunk, and if it does, it should be fixed ASAP, by whomever [15:12:36] hi [15:13:01] zocky: trunk is trunk. it can break. shit happens. sure it should be fixed. [15:13:02] is it possible to override the use of "user_name" when displaying the logged in user with user_real_name [15:13:16] Duesentrieb, trunk is supposed to always work. [15:13:21] If it doesn't, that should be fixed ASAP. [15:13:31] ^demon, are you reverting or what? [15:13:37] Simetrical: everything is *supposed* to always work :) [15:13:41] <^demon> I already did. [15:13:46] Ah, CIA slow on the uptake? [15:13:48] thanks [15:13:48] <^demon> (11:11:03 AM) CIA-57: demon * r40024 /trunk/phase3/includes/EditPage.php: Revert 40016, 40021, 40022. Breaks ability to save and has html entities problems. [15:13:54] <^demon> A few lines up :-) [15:14:30] haptiK: uh... in the skin? i suppose so... since you already know what the data fields are called, you should ne able to rust replace it, no? [15:15:25] Duesentrieb: yah im having trouble tracing through the code though... i was just hoping there was an override but i'll find it eventually i guess [15:16:09] *Simetrical is bliiind [15:16:54] haptiK: the skin code is nasty... [15:17:22] well [15:17:35] most of the code is a little bit weird tbh lol [15:17:49] *ialex gives glasses to Simetrical :) [15:18:05] *Simetrical needs to schedule an optometrist appointment anyway [15:18:58] hello ) [15:19:06] - if( $target != '' && $target{0} == '/' ) { [15:19:07] + if( $target != '' && $target{0} === '/' ) { [15:19:17] somebody has beein doing search and replace? [15:19:59] <^demon> Nikerabbit: What commit? [15:20:19] 40020 [15:24:05] 03demon * r40025 10/trunk/phase3/includes/diff/Nodes.php: Move @ingroup around so each of the classes are picked up by Doxygen. [15:24:43] does php call __destruct automatically? [15:25:27] Yes. [15:25:36] Hi all. [15:25:39] when? [15:25:43] http://www.shlomifish.org/Files/files/code/mediawiki/mw-fix-inc-Database.patch - patch for the test suite. [15:26:31] Nikerabbit: On regular script termination (die(), exit(), end of the last file, etc.) or when destroying an object via unset() for example. [15:27:45] <^demon> Also called when no more references to an object exist. [15:30:03] MinuteElectron: unset() doesn't destroy objects [15:31:27] unset() decrements the reference counter [15:31:34] same as just overwriting the variable with something else [15:31:46] $a = new Foo; [15:31:46] or it going out of scope(?) [15:31:48] $a = ''; [15:31:52] Can anyone apply http://www.shlomifish.org/Files/files/code/mediawiki/mw-fix-inc-Database.patch ? [15:31:55] object deleted [15:32:04] 03ialex * r40026 10/trunk/phase3/t/inc/Database.t: Fix path. Patch by rindolf on IRC. [15:32:23] ialex: thanks. [15:32:57] ialex: credits...? :D [15:33:19] *ialex is going to stab Nikerabbit :D [15:35:52] in the context of API editing, anyone know what "[info] => Unknown error: ``AS_END'' means, when returned? [15:36:28] <_mary_kate_> i think that means someone added an error and forgot to create a message for it [15:36:53] SQLDb: that's one of the return values of attemptSave [15:37:06] heh... so those were the issues [15:37:28] ialex: :o? [15:37:47] Nikerabbit: Thanks, just to make sure I understand, that means the save failed, and, should be retried? [15:39:12] Any chance anyone knows why imagemagick is failing on me? [15:39:41] morning brion [15:40:00] ready for a new day full of reverting my stuff? [15:41:55] :D [15:42:12] did you track down the freaky regression? [15:42:29] i couldn't make an isolated test case in a few minutes; big ugly talk page full of templates [15:42:36] yeah, it wasn't so freaky to someone who wrote the code [15:43:07] maybe you hadn't seen the constant: [15:43:18] var $freakyStuffThresholdNumLinks = 1000; [15:45:44] 03dantman * r40027 10/trunk/phase3/includes/EditPage.php: [15:45:44] Recommit my changes to EditPage without the regressions: [15:45:44] * Content was double encoded by the call to htmlspecialchars and the use of Xml::textarea [15:45:44] * showFormBeforeText was returning instead of outputting (This caused saves to fail since there was no edittime) [15:45:46] * As a little extra no-one noticed, accidentally $encodedtext was left in showTextbox2 rather than $this->textbox2. [15:45:47] SQLDb: looks like so... I'm not sure though [15:46:05] ... [15:46:13] Nikerabbit: thanks, in my tests, it appears not to save when it does that as well so far :) [15:47:02] I moved the freakiness threshold to a global variable and added a parser test option which lets individual tests set it to zero [15:47:47] oh yeah, and I fixed the bug too [15:47:57] double-checked, regressions to EditPage are gone [15:48:49] :D [15:49:05] what exactly is the freakiness threshold... [15:49:11] *brion isn't sure if he's being joked with ;) [15:49:37] well, the original main part of the parser change was to do link existence tests in batches of 1000 [15:49:52] to avoid unconstrained memory usage when you have lots of links [15:50:10] because otherwise, you have a choice between storing titles, which are huge, or being slow [15:50:43] but expanding interwiki links early uncovered the exact bug that was the reason for having interwiki placeholders in the first place [15:51:00] i.e. replaceFreeExternalLinks() will replace the URLs in the tags generated by the interwiki links [15:51:28] mk [15:51:41] it was pretty sloppy of me not to test that interwiki code in the first place, it was committed half-finished [15:52:09] it didn't break any parser tests because all the interwiki link parser tests were already broken by a previous regression [15:52:15] so they were showing up as expected fails [15:53:13] *Dantman self debates the benifits of storing title objects in memcached [15:53:29] yeah, no [15:53:36] as we say in oz [15:53:55] heh [15:54:12] well Title objets can probably be broken down significantly. right now they pre-compute and store a lot of shit for no good reason [15:55:22] ^_^ You know... my title rewrite moves normalization to a different area... bit more on that line and it might be possible to defer some stuff [15:55:53] refactoring a bit at a time usually goes better than a giant rewrite :) [15:56:02] heh [15:56:06] Mkay... [15:56:07] one of the problems with storing title objects to memcached is that they actually cache a lot of stuff from a lot of different places, so you'd need invalidation [15:56:14] another problem is that it wouldn't gain much [15:56:27] probably make things slower [15:56:53] *siebrand pinches Dantman. [15:56:55] and another problem is that the saving that you do get would mostly be from caching the unicode normalisation, which can be done with a C++ extension anyway [15:57:50] ^_^ Well you're always complaining about Title's being huge things... Just thought bout the fact that by putting all that in memcached, you just grab titles out of the cache as you need them, then they dissapear after used [15:57:57] Kinda like streaming [15:58:17] they're not so big when they're serialized [15:59:07] we could just serialize them when we're not using them, if we wanted to save a few bytes, add a few hundred microseconds, and write a whole lot of code [15:59:23] heh [15:59:24] Dantman: objects have relatively high memory overhead; it's no biggie when you have a few, but an array of a lot is fairly expensive compared to say an array of strings [16:00:09] arrays of strings aren't the best either, that's why I've been getting rid of a lot of them, using StringUtils::explode() [16:00:16] heh [16:00:41] In other words... the issue isn't the object vs. the string... It's the whole array concept! heh... [16:01:04] not concept, data structure [16:01:10] heh [16:02:42] > print memory_get_usage(true) [16:02:42] 6553600 [16:02:42] > $a = explode('.', str_repeat('.',1000000)) [16:02:42] > print memory_get_usage(true) [16:02:42] 198443008 [16:02:56] 190 bytes of overhead per element [16:04:10] *Dantman debates the posibility of a phpobject streamer in C that combines large objects from multiple php instances and caches the ones being used the most [16:05:24] how would that work, with invalidation? [16:06:02] 03rotem * r40028 10/trunk/extensions/TrustedXFF/TrustedXFF.i18n.php: Localization update for he. [16:06:17] brion, TimStarling: http://test.wikipedia.org/wiki/Image:Someimage2.png for some weird reason doesn't want to be moved. May you check debug logs, please? [16:06:19] well... not a 100% cache cache [16:07:08] yes, things could probably be invalidated (perhaps a small call when a title object does something to do with saving or whatnot) [16:07:17] but the idea isn't a long term cache [16:07:52] 03(NEW) Make 'wp' prefix on the Edit form inputs configurable - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15323 15enhancement; normal; MediaWiki: Page editing; (seventowers) [16:08:06] just passing things through, and keeping initialized objects of things under high use... generally objects would probably dissapear within even 5 minutes and get rebuilt [16:08:13] you have to be very careful with fixed expiry times, it's easy to pollute a cache with a longer expiry time [16:08:48] and it's easy to cache something that the user wants to see updated right now [16:09:03] VasilievVV: there are no general debug logs [16:10:11] TimStarling: it logs to log group called "imagemove" [16:10:13] /home/wikipedia/logs/imagemove.log [16:10:22] i think it's just logging for testwiki [16:10:48] brion: it's the only place where it is enabled [16:10:51] http://rafb.net/p/pWl3fW35.html [16:12:53] ^_^ All this talk of individual caching and all these issues... these would be why the idea of a multithreaded server+wiki system has always interested me [16:13:00] One process... so everything is shared [16:14:51] Why am I getting {{ Error: 1146 Table 'test_mw_trunk.parsertestpage' doesn't exist (localhost) [16:14:51] ' in /home/shlomi/Download/unpack/net/www/MediaWiki/trunk/phase3/includes/db/Database.php:606 }} in t/inc/Search.t ? [16:35:02] where do i set up my access level perms? [16:35:19] i need to have the highest permissions to change the sidebar and stuff [16:37:19] sysop i guess [16:37:51] haptiK: you need to be sysop to make changes in the MediaWiki: namespace by default [16:38:04] yes how do i specify that im a sysop [16:38:12] thats what im asking sorry for the confusion [16:39:10] the user created by the configuration script is sysop and bureaucrat, with that user, you can change user groups [16:39:16] in Special:Userrights [16:40:04] 03aaron * r40029 10/trunk/extensions/FlaggedRevs/FlaggedArticle.php: show form for everyone (bug 15322) [16:40:15] 03(FIXED) dewiki: Allow editors to give feedback rating - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15322 +comment (10JSchulz_4587) [16:41:56] ialex well i deleted that user in the database by accident and i need to assign a new sysop... surely that must be something i can do in the database directly [16:42:05] yes [16:42:33] you need to know the user id (you can see it in Special:Preferences) [16:43:02] dood i can see my userid in the table _users [16:43:09] AaronSchulz: so the rumor is we should keep the feedback thing off on dewiki for now? [16:43:26] haptiK: in the database too [16:43:30] ;) [16:43:33] omg [16:43:44] let me try this again. [16:43:47] it's user_id field [16:43:49] brion: prolly best for now, though I'll miss those graphs [16:43:55] brion: next scap will do it [16:43:56] .... [16:44:05] hello [16:44:08] night all [16:44:10] hi Nikerabbit [16:44:15] 'night TimStarling [16:44:24] what table to i set the permissions per user than ialex [16:44:45] haptiK: permissions are in user_groups table [16:45:03] thats what im looking for [16:45:04] thanks [16:45:38] WTF [16:46:07] night Tim-away :) [16:46:11] *AaronSchulz waves to tim [16:47:25] 03aaron * r40030 10/trunk/extensions/FlaggedRevs/specialpages/ (LikedPages_body.php ProblemPages_body.php): tweak thresholds [16:51:01] http://sial.org/pbot/31995 - can anyone help with? [16:55:13] I'm kinda disappointed, actually. For my bot, API edit is slower than going to index.php, and filling out the form itself. [16:55:27] how can i change the font of my wiki? i already tried css in monobook/main.css, common.css and mediawiki:common.css [16:58:26] MediaWiki:Common.css and full refresh [17:00:45] how do i perform a full refresh? i alredy tried to clear my cache [17:00:54] (the cache of opera) [17:01:21] http://sial.org/pbot/31995 - anyone? [17:01:49] Why can't I see the temporary table? [17:02:00] 03(NEW) Add link to switch between types of diff - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15324 15enhancement; normal; MediaWiki: History/Diffs; (bugzilla.wikimedia) [17:07:40] Anyone? [17:09:11] hello [17:13:37] Hi. I am frequently encounterying Memory Allocation failed message in my wiki. [17:13:48] I increased teh Memory limit to 40M [17:14:25] but still I encounter it. what is the maximum value that memory limit may have ? [17:16:57] Guys, Any idea ? [17:18:49] Is this a known bug?: Although it's possible to register a user name with an apostrophe, it's not possible to open e.g. User:Name's [17:19:14] gives me a blank page [17:19:57] !errors [17:19:57] --mwbot-- To see PHP errors, add this to the very top of LocalSettings.php: error_reporting(E_ALL); ini_set("display_errors", 1); Fatal PHP errors usually go to Apache's error log - also check the error_log setting in php.ini (or use phpinfo). For more details in wiki error reports, set $wgShowExceptionDetails = true; and $wgShowSQLErrors = true; For full debug output, set $wgDebugLogFile to some path you like. [17:21:16] yep have turned it on. it's an extension causing it [17:21:33] what's the error? [17:22:10] Fatal error: Call to a member function getID() on a non-object in .../extensions/ContributionScores/ContributionScores.php on line 80 [17:22:18] which is if ($user->getID() != 0) { [17:23:33] update to the latest version of the extension [17:24:01] 03(mod) "column rev_parent_id does not exist" error after update - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15281 +comment (10elly) [17:24:52] Last Version 1.10 (2008-05-15) [17:24:59] Hi. I get Allowed Memory size of XXXXX bytes Exhause in XX/XX/Xx.php.... I hava reaised teh memory limit to 40M still I get this Error... [17:25:10] Can I increase the memory to 100 M ? [17:28:54] yes, see LocalSettings: ini_set( 'memory_limit', 'XXXM' ); [17:29:48] depending on your wiki of course, 100M is quite lot [17:30:22] It wont slow down the site naa ? [17:31:55] it can but dunno exactly how it works, just once read here it's better not to raise it too high if not needed but to set as close to as needed. [17:32:11] oh ok. [17:32:13] which again depends on your visitor traffic [17:32:30] but for the error just use 32M [17:32:45] k [17:36:34] !errors [17:36:34] --mwbot-- To see PHP errors, add this to the very top of LocalSettings.php: error_reporting(E_ALL); ini_set("display_errors", 1); Fatal PHP errors usually go to Apache's error log - also check the error_log setting in php.ini (or use phpinfo). For more details in wiki error reports, set $wgShowExceptionDetails = true; and $wgShowSQLErrors = true; For full debug output, set $wgDebugLogFile to some path you like. [17:53:06] 03(NEW) "Email this article" feature - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15325 15enhancement; normal; MediaWiki: Special pages; (jennysjunkmail) [17:54:03] Is there a way to get a certain page & its subpages to use a different skin? [17:54:49] tusho, you'd have to write a small extension of some kind. [17:54:55] figured [17:55:40] !e SkinPerPage [17:55:40] --mwbot-- http://www.mediawiki.org/wiki/Extension:SkinPerPage [17:55:54] ialex: Doesn't handle subpages. [17:56:03] i know [17:56:06] (It's for using mediawiki to run mini subsites that have their down design) [17:56:07] but yes [17:56:09] I'll base it on that [17:56:25] It should be like five lines if you have the right hook. [17:56:28] ^_^ Oooh... [17:56:36] If the right hook exists. [17:56:46] That sounds a fair bit of one of MiniWikiMod's planned features [17:57:17] 03(FIXED) Add link to switch between types of diff - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15324 +comment (10bugzilla.wikimedia) [17:57:20] Dantman, you like big, sweeping projects, don't you? [17:57:28] ^_^ Heh, ya [17:57:31] Well... [17:57:38] Dantman: And I would use that over a simple extension of SkinPerPage why? :P [17:57:39] MiniWikiMod was for Wikia ACG [17:58:03] Because you said you were running mini subsites... [17:58:29] Dantman: What benefits does it offer? [17:58:45] ;) "Would it" it's still only vaporware... [17:59:07] hi Dantman [17:59:10] Really it's just the backbone for separating certain areas of a wiki into mini-wiki [17:59:35] Parse error: syntax error, unexpected T_LOGICAL_AND in XXX/w/LocalSettings.php on line 4 [17:59:40] I don't see the benefit, Dantman. [17:59:42] What exactly does it do? [17:59:46] Subpage based, category based, or some other thing... offering a some features such as per-wiki skin, title modification, etc... [18:00:21] Some relevant magic words [18:00:59] Nikerabbit: Hello... and this time? [18:01:19] Dantman: nothing? :D [18:01:23] heh [18:01:29] Well "" back... [18:01:43] Mmmm... NIL [18:01:48] for once it feels that mediawiki may someday have nice and maitainable code [18:01:57] vinodh, so what's on line 4 and the surrounding lines of LocalSettings.php? [18:02:01] Nikerabbit, O RLY? [18:02:11] Simetrical: RLY [18:03:11] Simetrical: This is line: # This file was automatically generated by the MediaWiki installer. The above two line are settings to show error messages. Below lines comments beginning with # [18:03:33] vinodh, paste the entire top of LocalSettings.php to a pastebin. [18:06:25] Simetrical: ^_^ I also like belonging to "big, sweeping projects" in a special way...... Mmmm... freenode group contact... [18:06:45] k wait... [18:07:39] ialex: can you help me with http://sial.org/pbot/31995 ? [18:07:42] Hmm. [18:08:02] With my little skin-thingy, and some kind of plugin for comments, assuming a personal wiki, you could add a blog to a MW site. [18:08:03] Cool. [18:08:04] *tusho toys with that [18:08:08] simetrical: Here is the link: http://rafb.net/p/j1nVa739.html [18:08:18] rindolf: i already tried, but without success [18:08:22] vinodh, $wgShowExceptionDetails = true; and $wgShowSQLErrors = true; [18:08:25] That's wrong. [18:08:31] Delete "and". [18:08:40] heh [18:08:47] ialex: why doesn't it see the temporary tables? [18:08:53] Simetrical: what do you like then? [18:08:59] ialex: I have applied a patch that fixes the prefix of the original tables. [18:09:01] ^_^ Someone told them to set two variables, and they kept the 'and' which wasn't part of the code [18:09:04] mwbot didn't mean to include the word "and". :) [18:09:14] Nikerabbit, what? [18:09:22] Simetrical: yes what [18:09:35] Blind Cut Copy Paste :) Didnt see the code :) [18:11:13] Anyway, Now I get a Blank Page for Special:Allmessages :(. Ironically I added the code to find out the source of error [18:14:23] 03aaron * r40031 10/trunk/extensions/FlaggedRevs/FlaggedRevs.class.php: move cache key code [18:14:38] 03(NEW) Fatal error after installation in Preprocessor_DOM (r40030 ) - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15326 normal; normal; MediaWiki: Page rendering; (raimond.spekking) [18:15:01] 04(REOPENED) Provide time sorting for OldReviewedPages - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15293 +comment (10pbirken) [18:16:31] 14(INVALID) Fatal error after installation in Preprocessor_DOM (r40030) - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15326 +comment (10JSchulz_4587) [18:17:02] 03(NEW) enwiki langlinks database dump for 2008-07-24 missing entries - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15327 normal; normal; Wikimedia: Downloads; (cbm) [18:26:10] 03aaron * r40032 10/trunk/extensions/FlaggedRevs/maintenance/updateLinks.inc: don't do items twice [18:31:08] 03(mod) Fatal error after installation in Preprocessor_DOM (r40030) - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15326 +comment (10brion) [18:31:16] 03(mod) Use Preprocessor_Hash by default to avoid missing DOM module errors - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=13770 +comment (10brion) [18:32:43] 03aaron * r40033 10/trunk/extensions/FlaggedRevs/specialpages/OldReviewedPages_body.php: remove redundant cond [18:33:06] 14(DUP) "Email this article" feature - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15325 +comment (10brion) [18:33:13] 03(mod) "mail this article to someone" feature - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=227 +comment (10brion) [18:35:54] 03ialex * r40034 10/trunk/extensions/Configure/ (7 files): [18:35:54] * Added writePHP.php, a maintenance script that write the configuration in PHP code [18:35:54] * Changed status to beta [18:37:52] 03(mod) Tips to improve user experience and ergnonomy of Wikipedia - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15317 (10brion) [18:38:28] 14(DUP) Date conversion to/from ISO 8601 creates errors for old dates - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15313 +comment (10brion) [18:38:37] 03(mod) ISO Autoformatting accuracy error with Julian versus Gregorian calendar. - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15311 +comment (10brion) [18:43:13] the fuck is this? [18:43:14] $action_desc = wfMsg( "right-$action" ); [18:43:14] $action_desc[0] = strtolower($action_desc[0]); [18:43:47] a hack? [18:43:53] a hack that doesn't even work [18:44:01] and should have no need ever [18:44:04] and is totally broken [18:44:20] in other words, a hack ;) [18:44:53] Who wrote that? [18:45:02] They probably intended to use $action_desc{0} [18:45:07] *brion looks askance at Werdna [18:45:11] well [18:45:16] And they should use lcfirst() [18:45:19] RoanKattouw: that would do exactly the same thing [18:45:20] (is that a PHP function?) [18:45:35] 1) by using a single byte, it fails for all non-ascii chars [18:45:36] brion: i think he's sleeping ;) [18:45:36] Well it has the same effect as lcfirst() right? [18:45:40] Yes, that too [18:45:48] 2) by using strtolower() it may not work on UTF-8 -- use the $wgLang methods instead [18:46:04] and 3) there's no way to know lowercasing is the right thing to do here [18:46:18] that's why it's a hack [18:46:22] mm [18:46:28] almost as bad as the new diff messages [18:46:43] <^demon> Nikerabbit: Don't remind me :( [18:46:48] Nikerabbit: but these are in production :) [18:47:02] Where and what for is this code used, anyway [18:47:04] ? [18:47:06] What's being lowercased? [18:47:15] brion: yeah, and we complained when it was added... I even mailed wikitech... [18:48:39] grepping the extensions dir is damn slow :( [18:48:39] Nikerabbit: did you consider fixing it? :) [18:49:20] ah ha includes/OutputPage.php :) [18:49:39] ialex: ? [18:49:58] RoanKattouw: for "$action_desc[0] = strtolower($action_desc[0]);" [18:50:07] Right [18:50:48] <^demon> line 1160-61 of OutputPage. [18:50:59] Hmm judging from the context the lowercasing shouldn't happen in the code [18:51:17] But in the permissionserrortext-withaction message using {{lcfirst:}} [18:51:39] 03brion * r40035 10/trunk/phase3/includes/OutputPage.php: (log message trimmed) [18:51:39] Quick hack to fix the broken hack noted in bug 15301 [18:51:39] Use of: [18:51:39] $action_desc[0] = strtolower($action_desc[0]); [18:51:39] is horrible wrong for a few reasons: [18:51:41] 1) The first-byte match fails for all non-ASCII characters -- use lcfirst()! [18:51:43] 2) System strtolower() or lcfirst() may not work for UTF-8 or lang-specific issues properly; use $wgLang->lcfirst() [18:51:48] 03aaron * r40036 10/trunk/extensions/FlaggedRevs/maintenance/updateLinks.inc: [18:51:50] * fix counting [18:51:52] * add transactions [18:52:21] well, there is no easy way to fix legos :/ [18:52:33] can anyone help me debug this? It's driving me nuts... see http://cabal.pastey.net/94753 [18:53:19] RoanKattouw: that is nice as long as the operation does not depend on the variable... which may or may not hold true [18:53:37] 03(mod) there are problem in russian edition - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15301 +comment (10brion) [18:53:39] Skizzerz: i had a similar issue one day [18:53:51] ialex: what did you do to fix it? [18:54:47] Skizzerz: php didn't like "$sections[]", dunno why [18:54:59] it just randomly fixed itself? [18:55:51] brion: oh, good debugging [18:55:53] $sections[$i++] (well, somethink like that) worked though [18:55:54] I mean, I tried everything... renaming the variable, commenting it out, trying to explicitly set an array key... all gave the fatal error [18:55:58] it never occured me that would be the cause [18:56:22] ialex: tried that, got a similar error [18:56:40] actually, that's the error I pasted... [18:56:46] >_< [18:56:59] the original error was unexpected ']' [18:57:10] Skizzerz: PHP version? [18:57:15] then I tried the $i++ thingie (albeit a slightly different approach) and it gave that [18:57:22] RoanKattouw: 2.3.6 [18:57:25] hey guys, does anyone know of an automated way to install all templated from wikipedia? I am trying to install inforbox person but I have installed over 2 dozen of these templates so far and more and more requirement templates just keep comming up [18:57:29] -*5.2.6 [18:57:37] dunno where I got the former from >_> [18:57:50] what is T_ENCAPSED_AND_WHITESPACE? [18:57:57] first time i see that [18:58:03] ialex: 'baa' 'foo' usually [18:58:24] that was when I tried $i = 0; before the while(), and set $sections[$i++] = inside [18:58:24] hmm [18:58:31] Skizzerz: Works for me [18:58:35] no that was T_CONSTANT_ENCAPSED_STRING [18:58:47] Err, guys, look it up at php.net? [18:59:05] Skizzerz: have you tried to split that is different lines to see where exactely the problem is [18:59:07] ? [18:59:12] yes [18:59:16] the problem is with $sections[] [18:59:29] namely the ] [18:59:55] *Skizzerz blames PHP and remembers that the last time something like this happened, it worked again a day later [19:00:28] OK http://nl.php.net/manual/sl/tokens.php is kind of useless [19:00:29] Skizzerz, can't reproduce on 5.2.4. [19:00:47] *Skizzerz blames his host too [19:00:49] It describes post parser tokens but of course there's no description for T_ENCAPSED_AND_WHITESPACE [19:00:54] I can't reproduce either [19:01:11] 03(mod) Provide time sorting for OldReviewedPages - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15293 (10JSchulz_4587) [19:01:24] my phpinfo() is here if maybe something in there would bring light to the error: http://cabal.w.exofire.net/wiki/Main_Page?action=phpinfo&u=skizzerz&p=phpinfo [19:01:25] 5.2.6 [19:01:38] (yay LocalSettings hacks) [19:02:09] Skizzerz: that code produces no errors with php -l on 5.3.0aplha1 [19:02:15] *alpha [19:02:30] yeah... I'll log a support ticket asking them what's happening :P [19:02:47] Skizzerz: may be wrong quotes elsewhere in the file? [19:03:07] the syntax highlighting is all correct... [19:04:55] $a = "$naa['daa']"; [19:05:20] *^demon bets PHP devs close said ticket as BOGUS. [19:05:34] Hmm whoever closes bug reports in the PHP bug tracker is a real jerk. They close bugs with no specific explanation at all (just a boilerplate "You didn't provide enough information, please read "), and even if you did follow the guidelines that won't stop them from closing the bug and quoting the guideline they claim you didn't follow (while you did) [19:05:50] Skizzerz: so most likely you have open "-string somewhere [19:05:55] Nikerabbit, ^demon:http://bugs.php.net/bug.php?id=29894 [19:06:05] they're all escaped [19:06:14] Sorry http://bugs.php.net/bug.php?id=29894 [19:06:22] RoanKattouw, yeah, we all noticed that. [19:06:27] Talk to Tim about it sometime. [19:06:34] Nikerabbit: Try "{$naa['daa']}" [19:07:26] works but makes no sense [19:07:50] Well yes it does [19:07:53] returns "" [19:08:02] You're supposed to wrap 'complex' expressions in { } [19:08:20] Expressions that are more than a simple var, but use [], -> or () [19:08:30] RoanKattouw: hmm is {$a} equivalent to ${a} ? [19:08:37] Yes [19:08:43] But {$a} is preferred [19:08:53] And more flexible [19:08:55] <_mary_kate_> oh wow, a toolserver user filed a php bug and it got set to 'Verified' [19:08:59] <_mary_kate_> that must be a first [19:09:05] :O [19:09:11] Which bug? [19:09:18] <_mary_kate_> http://bugs.php.net/bug.php?id=45860 [19:09:27] Nikerabbit: ${a} is only really useful in cases like "I like ${beer}s" [19:09:50] why would it be any different from {$beer}s [19:10:24] Nikerabbit: It's not [19:10:34] :D [19:10:38] 03(mod) {{DISPLAYTITLE}} Categorisation - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14685 +comment (10richard) [19:10:41] I'm not sure which one I've used [19:10:47] But stuff like {$this->foo()->bar()} works whereas I'm not sure that ${this->foo()->bar()} does [19:10:47] $$var could be cleaner written as ${$var} so there's a dual use [19:10:53] (never tested the latter though) [19:11:15] The latter wouldn't logically work [19:11:18] 03(mod) Enable FlaggedRevs Patrolling Configuration on Esperanto Wikipedia - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14728 (10JSchulz_4587) [19:11:23] ... [19:11:42] _mary_kate_: Well that's obviously a bug. But then http://bugs.php.net/bug.php?id=29894 was also obviously a bug and that one was closed without a real reason [19:11:44] ok, that makes NO sense... I still get the error even if I comment that out [19:11:45] in strings the { is only used when followed by a $ or there is a () arround the end [19:12:00] <_mary_kate_> RoanKattouw: actually, i expected them to say that sending "HTTP/1.0..." and "Status: ..." was wrong [19:12:08] Also, that goes against logic the {} there would be wrapping ${this} logicially [19:12:16] RoanKattouw: hmm there is one useful one [19:12:20] ${$foo} [19:12:32] ^_^ I just said that, heh [19:12:35] _mary_kate_: The point is that there's an inconsistency between 200 and non-200 response codes. They can't deny *that* [19:12:36] oh [19:12:51] <[KrusheR]> hi [19:13:18] did anyone test ${this} ? [19:13:19] _mary_kate_: Whether they think using header() to set Status: is wrong or not doesn't really matter [19:13:19] <[KrusheR]> is there any way to disable the username always prefixing the file name on uploading? [19:13:35] Nikerabbit: Will do [19:14:07] can't you just catenate strings and not do all this quoting inside "" ? [19:14:15] Nikerabbit: unexpected T_OBJECT_OPERATOR [19:14:44] carl-m: Using $ inside double-quoted strings is actually clearer than concatenating stuff [19:14:49] And uses less space [19:14:58] RoanKattouw: hmph [19:15:02] this also brings me [19:15:04] <[KrusheR]> every time a user uploads an image the file includes his username... [19:15:06] true unless the thing inside the strings is complicated enough [19:15:18] I actually wanted to type "{{$a$b}}" once [19:15:18] at which point the escaping starts to make it worse [19:15:21] but that was a parse error [19:16:59] "{{{$a}{$b}}}" remind you of any part of the human body? heh [19:19:56] (concatenate :string "foo" "bar" var "baz") [19:20:06] Nikerabbit: Of course. It should be $a$b or {$a}{$b} [19:21:59] 03(NEW) Visual diff has wrong begin of color coding. - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15328 15enhancement; normal; MediaWiki: History/Diffs; (bugzilla.wikimedia) [19:24:24] *Dantman likes languages that have some sort of keywords or symbols that aren't actually strings [19:24:26] 03(mod) Visual diff has wrong begin of color coding. - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15328 (10meno25wiki) [19:29:25] 03mkroetzsch * r40037 10/trunk/extensions/SemanticMediaWiki/includes/ (SMW_Factbox.php SMW_GlobalFunctions.php): additional checks to prevent any write access to non-existing data container in Factbox [19:29:38] ooh... yay [19:30:01] 04(REOPENED) Strange behaviour of Page Type in Array - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15279 major->15enhancement; +comment (10dasch_87) [19:30:12] meow [19:30:28] RoanKattouw: why? [19:31:07] who wants a cookie? :D [19:31:10] Nikerabbit: Because 1) you never need {{$foo}}, one { will do and 2) $a$b isn't one variable, $a and $b are two distinct variables [19:31:18] Unless you meant {$a{$b}} [19:31:27] RoanKattouw: I want to have {{foobar}} as result [19:31:34] Right [19:31:45] Then use {{{$foo}{$bar}}} [19:31:53] http://translatewiki.net/wiki/Sandbox this is throwing an warning, yet producing correct results :) [19:31:56] RoanKattouw: so I did [19:32:30] What's the warning? [19:33:03] Warning: Missing argument 1 for B::b(), called in /var/www/sandwiki/extensions/Translate/aa.php on line 16 and defined in /var/www/sandwiki/extensions/Translate/aa.php on line 11 [19:33:19] I can kinda guess where it comes from :) [19:33:24] :O [19:33:36] How can that happen? call_user_func() provides B::b with an arg [19:33:38] 03(mod) {{DISPLAYTITLE}} Categorisation - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14685 (10sam) [19:34:03] I don't get why it moans about a missing arg, yet it magically *has* the argument's value inside the function [19:34:10] :D [19:34:16] it's a puzzle [19:34:30] Also, I've never seen a "Missing argument 1" warning that wasn't followed by an "Unset variable $foo" error [19:34:35] error->warning [19:35:03] 03(NEW) Wrong formlink when viewing an empty page - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15329 minor; normal; MediaWiki extensions: Semantic Forms; (dasch_87) [19:35:06] ^_^ bad error catching parsers for editors are annoying to... [19:35:26] RoanKattouw: it may actually be a bug, in further desting [19:35:29] testing* [19:35:55] the one I have in jEdit is annoying... I get warnings that arguments aren't used inside of functions...... of course, those are always nice... :/ cept when it says that about an abstract function! gaaah [19:36:04] LOL [19:36:14] return call_user_func( $name, 'daa' ); [19:36:21] even with that change I get the warning [19:36:23] Dantman: Did you *declare* them as abstract? [19:36:29] ^_^ Yes [19:36:36] but var_dump in B::b show it is called two times, first with NULL [19:36:39] hey Hojjat [19:36:42] Hmm that's just ignorance on jEdit's part then [19:36:44] abstract function foo( $bar, $baz ); [19:36:50] Nikerabbit: How does *that* happen? [19:37:00] It warns me that $bar and $baz are not used inside the method foo [19:37:02] hey ialex [19:37:05] RoanKattouw: you tell me, that's the game :) [19:37:07] Nikerabbit: did you check which line the error is on? [19:37:26] Pretty crappy testing [19:37:30] Nikerabbit: It's because you called the function b(). Rename it to foo() and I'll bet the problem will disappear [19:37:50] 03mkroetzsch * r40038 10/trunk/extensions/SemanticMediaWiki/ (INSTALL RELEASE-NOTES includes/SMW_GlobalFunctions.php): prepare release of SMW 1.2.2 (contains minor bugfixes) [19:37:56] RoanKattouw: are constructors named the same as the class in php then? [19:37:59] carl-m: yes [19:38:03] carl-m: In PHP 4, yes [19:38:04] $c = array( new B, 'b' ); [19:38:07] That's his problem [19:38:17] new B [19:38:17] that should hardly call it [19:38:17] Invokes B::b() [19:38:32] Or rather, tries to invoke B::__construct(), which doesn't exist [19:38:47] So it invokes B::B(), which is the same as B::b() because function names are case-insensitive in PHP [19:38:48] __construct is preffered, but for backwards compatibility the same name as the class is allowed [19:39:10] Hmm I really like this one [19:39:14] you solved my little puzzle :D [19:39:18] isn't php nice [19:39:24] I'm gonna save it somewhere to puzzle other people with [19:39:27] *Nikerabbit gives carl-m and RoanKattouw a cookie [19:39:47] Nikerabbit: I don't even know php, I just tried hardcodig the array up in class A, and then checked the line numbers of the errors [19:39:55] *^demon snatches a cookie from Nikerabbit's jar [19:40:05] (passcookie (Roan carl)) [19:40:15] Hmm... no [19:40:21] (cookie:pass (Roan carl)) [19:40:34] I remember there was some other language where the constructor was named the same as the class, but I forget which one [19:41:09] <[KrusheR]> does anyone know why the uploaded files are prefixed by the users name? [19:41:09] Java? [19:41:42] that's it [19:41:52] carl-m: C++? [19:42:12] Dantman: How about $cookie = new Cookie; $cookie->pass('Roan'); [19:42:27] apparently it's been a long time since I've done much OO programming [19:42:33] T_T I like pesudo-lisp, not pesudo-php [19:42:44] Fatal error: undefined class Cookie :) [19:42:50] heh [19:42:51] lol I didn't even recognize that as Lisp [19:42:51] 03(mod) ArbCom Wiki request for nl.wiki - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=12962 +comment (10mvonder) [19:42:55] rotfl [19:43:20] 04(REOPENED) Change configuration for autopromotion on de.wikipedia.org - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14975 +comment (10pbirken) [19:43:33] [KrusheR]: because you have an extension which does it? [19:43:44] <[KrusheR]> well i don't [19:44:22] what if I don't believe :D [19:45:49] <[KrusheR]> well actually yes, i do [19:45:56] <[KrusheR]> it was a silly extension [19:46:07] <[KrusheR]> thanks, i guess [19:46:22] :D [19:46:23] (loop for i from 1 to 10 do (adddynamite) finally (lightfuse)) [19:46:38] second time today when I say I don't believe and people change their answer :) [19:46:56] Dantman: why lisp, why not haskell [19:47:21] <[KrusheR]> my selfsteem is not what i used to be these days [19:47:30] ^_^ Because I've never seen haskell, and I have an afinity to lisp [19:47:31] 03(mod) ArbCom Wiki request for nl.wiki - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=12962 (10mvonder) [19:47:51] Dantman: lets learn it together! [19:47:57] heh [19:48:14] :/ I'll look at a syntax page and we'll see [19:49:12] 03(mod) Wrong formlink when viewing an empty page - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15329 (10yaron57) [19:57:57] Nikerabbit: Sorry, doesn't look interesting to me... I think I'll learn common lisp [19:59:14] 03mkroetzsch * r40039 10/tags/extensions/SemanticMediaWiki/REL_1_2_2/ (8 files in 4 dirs): updates over SMW 1.2.1 (SMW 1.2.2 is a small bugfix release) [19:59:38] Dantman: :< [20:00:33] www.paulgraham.com for more LISP stories... [20:01:23] 03mkroetzsch * r40040 10/trunk/extensions/SemanticMediaWiki/includes/ (SMW_Factbox.php SMW_GlobalFunctions.php): Add further checks for proper Factbox initialisation, simplify check used for voc import functions [20:02:45] Why the interest in haskel? [20:03:02] 03(mod) deleteRevision.php does not erase version from history - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15291 (10brion) [20:03:24] Dantman: it's hot currently methinks [20:03:25] *AaronSchulz points brion to config bug 14975 [20:03:31] heh [20:04:27] 03(mod) bidi characters in titles should be ignored - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15284 (10brion) [20:05:13] Isn't that a dupe of an old bug? [20:05:27] 03(mod) Special:Import should expand all templates on interwiki import - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15283 (10brion) [20:05:35] afaik only the two overrides are stripped, not embedding or pop [20:07:10] 03raymond * r40041 10/trunk/phase3/ (6 files in 5 dirs): [20:07:10] * Add tooltips to rollback and undo links [20:07:10] At least on de.wiki the users with the review right have the rollback right too. They are confused about the difference rollback/undo. Hope that helps a bit [20:07:19] Heh... gotta love the Toy Story scene when the toys gang up on Sid... [20:08:06] 03catrope * r40042 10/trunk/phase3/includes/ (Article.php UserMailer.php): [20:08:06] * In Article::replaceSection(), actually return null when $section is bogus. Used this in my half-complete and now kind of abandoned attempt at rewriting EditPage.php [20:08:06] * In UserMailer::send(), allow the caller to override the Content-type header so people can send multipart messages if they really want to. Using this in an extension I'm developing [20:11:03] Nikerabbit: I'm actually rather interested in the idea of writing a new wiki engine in lisp [20:11:40] Raymond_: Strict Standards: Non-static method Linker::tooltip() should not be called statically, assuming $this from incompatible context in /Library/WebServer/Documents/phase3/includes/diff/DifferenceEngine.php on line 820 [20:11:56] Dantman: like http://common-lisp.net/project/cl-wiki/ [20:11:57] ? [20:12:15] cliki is rather small in features and use [20:12:21] It's good for the lisp community [20:12:32] ialex: *gnarf* wrong settings on my new system :( thanks [20:12:34] But otherwise... nearly any other wiki engine works better [20:12:49] I'm thinking of something a little more MediaWiki inspired [20:13:13] No reason you can't have a good user front, while having beautifull lisp backend [20:13:16] is this channel dedicated entirely for MediaWiki developer talks? [20:13:29] ^_^ Mostly, but we chatter to [20:13:37] is there a way to see a list of all links within your wiki that do no link to anything? [20:13:38] and help [20:13:45] http://en.wikipedia.org/wiki/List_of_wiki_software#Lisp-based [20:13:55] jetole: Special:Wantedpages [20:13:57] cliky != CL-wiki, it seems [20:14:07] what's a more appropriate channel for people asking dumb wiki questions? [20:14:27] jetole: Sort of. http://en.wikipedia.org/w/api.php?action=query&generator=alllinks [20:14:42] http://en.wikipedia.org/w/api.php?action=query&generator=alllinks&gallimit=500 [20:14:55] jetole: Special:Deadendpages, Special:Orphanpages, Special:Wantedpages [20:14:57] The top ones have the missing="" attribute and point to a non-existent page [20:15:14] Right. Duesentrieb is right, don't listen to me [20:15:19] jetole: these three together should cover all linking aspects :) [20:15:29] jetole: You probably want Wantedpages [20:16:30] apprentice: there's no mor appropriate channel, unless it's about a particular wiki, and there's a channel for that. [20:16:32] I didn't mean to sound offensive :-) what I meant was is it OK to ask my stupid Wiki questions in this channel or is there a more appropriate channel for that sort of questions? [20:16:50] apprentice: it's not ok to ask meta-questions :) just ask. [20:17:08] if it's OT, someone will tell you [20:17:13] if someone knows the answer, you'll get it [20:17:21] that#s the way of the IRC :o) [20:17:50] !ask [20:17:50] --mwbot-- Don't say "I have a question", or ask "Is anyone around?" or "Can anyone help?". Just ask the question, and someone will help you if they can. Also, please read < http://workaround.org/moin/GettingHelpOnIrc > for a good explanation of getting help on IRC. [20:18:03] RoanKattouw: what does the "nochange" result parameter mean for API editing? [20:18:10] 03brion * r40043 10/trunk/phase3/ (RELEASE-NOTES includes/specials/SpecialSearch.php): [20:18:10] * (bug 15264) Underscores in Special:Search/Foo_bar parameters were taken [20:18:10] literally; now converting them to spaces per expectation. [20:18:24] 03(FIXED) Redlinks contaminate existing article searches with underscores - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15264 +comment (10brion) [20:18:37] I was brought up by the Ubuntu community and they have divided their group into #Devs #Newbies #wikiSquad etc. etc. I just thought it might work the same with the MediaWiki world. [20:18:47] nope [20:18:49] carl-m: It means your submitted new content is identical to the existing content, so your edit resulted in no change (null/dummy edit), so no actual edit happened [20:18:51] Duesentrieb: CL-WIKI still looks quite limited... I would to like to make something scalable [20:19:05] RoanKattouw: I get it even for edits that _do_ make changes [20:19:18] apprentice: We don't have that, and #mediawiki isn't busy enough to warrant something like that [20:19:27] carl-m: Double submit, maybe? [20:19:38] wait a sec, I'll make a log [20:19:39] Dantman: don't let me keep you then, go right ahead :) [20:19:43] OK then I'll be back soon with my questions :-) [20:19:46] heh [20:19:50] carl-m: Also, look at the revision numbers you get [20:20:36] Dantman: maybe you should look into erlang... never used it, but it sounds like it's made for clustering webapps. it basically has the cluser aspect built in. and the engine has a lisp wrapper now. [20:20:43] brion: [20:20:43] -= MediaWiki release notes = [20:20:43] +T= MediaWiki release notes = [20:20:54] Looks like "T" shouldn't be there... [20:21:36] 03(mod) Date conversion to/from ISO 8601 creates errors for old dates - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15313 (10ashtongj) [20:22:00] <_mary_kate_> Duesentrieb: i think erlang predates the web ;) [20:22:38] _mary_kate_: well, i mean "made for" in the sense of "very well suited for" [20:22:57] RoanKattouw: I don't seem to be getting back revids [20:22:57] Dantman: http://groups.google.com/group/erlang-questions/browse_thread/thread/adfe375287d4bef4/4a9127e701f5e2db#4a9127e701f5e2db and http://en.wikipedia.org/wiki/Erlang_(programming_language) [20:23:36] 03rotem * r40044 10/trunk/phase3/languages/messages/MessagesHe.php: Localization update. [20:23:48] carl-m: You only get them in successful (non-nochange) edits [20:23:51] Log those numbers too [20:24:06] 03raymond * r40045 10/trunk/phase3/includes/diff/DifferenceEngine.php: Fix for r40041. PHP strict notice. Thanks to Ialex [20:24:15] here is a trace showing all the params I send and all the results I get [20:24:15] http://rafb.net/p/cXd6mz95.html [20:25:17] 03(NEW) DISPLAYTITLE doesn' t always work when current revision is sighted - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15330 normal; normal; MediaWiki extensions: FlaggedRevs; (dapete.ml) [20:25:33] I can verify that these edits _are_ changing the page [20:25:40] http://en.wikipedia.org/w/index.php?title=User:CBM/Sandbox&action=history [20:26:15] Duesentrieb: I don't know about LFE... actually, one of the things I really liked about lisp was the REPL [20:26:38] 03brion * r40046 10/trunk/phase3/RELEASE-NOTES: -T [20:26:44] Think about being able to jump into a sort of builtin shell for your wiki, and edit config live [20:27:20] Basically absolute control over any portion of the wiki if you need it [20:27:23] carl-m: Hmm, since you set section=new, the edit *must* be changing the page [20:27:46] Assigning a group when there are no people with admin... changing passwords, user renames, etc... [20:27:53] yes, it is changing the page for sure [20:28:01] Everything a maintenance script does... ^_^ but you're in the wiki live [20:28:10] 03(mod) ISO Autoformatting accuracy error with Julian versus Gregorian calendar. - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15311 (10ashtongj) [20:28:21] 03(mod) Bureaucrats on the Arabic (ar) Wikipedia no longer can set user rights - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15266 +comment (10meno25wiki) [20:28:41] carl-m: I'll dive into this. Thanks for reporting [20:29:16] np [20:29:26] 03mkroetzsch * r40047 10/trunk/extensions/SemanticMediaWiki/includes/SMW_GlobalFunctions.php: for clarity, change devel version number to 1.3a (1.2 will only get backports of relevant bugfixes) [20:31:39] carl-m: Could you please do some test edits that do not use section=new and see whether they give nochange too? [20:31:44] sure [20:31:46] Preferably, don't use section at all [20:33:17] mmm... kittens of death [20:33:28] 03ialex * r40048 10/trunk/extensions/Configure/Configure.page.php: force string [20:33:44] I still get the nochange result [20:33:53] Dantman: absolute power from the web sounds... scary :) [20:34:01] the top two edits on en:User:CBM/sandbox [20:34:10] heh [20:34:45] Duesentrieb: ^_^ Think of it like sysadmining... cept your console is focused on the target [20:35:02] carl-m: OK. Then it has nothing to do with some section=new specific error I forgot to handle. I'll fix that bug anyway. [20:35:08] And I said REPL, not web ;) [20:35:43] I even get nochange on page creation http://en.wikipedia.org/w/index.php?title=User:CBM/SandboxAPI&action=history [20:36:07] Dantman: well, in the end, it's not much different from having a mysql console [20:36:09] so it's not the "page was deleted" problem that index.php editing has [20:36:26] mysql console gives you controll over mysql... [20:36:51] this is live config, data control, and basically you change things using the same functions the code itself uses [20:37:03] carl-m: I expected so. I think there's something wrong with fetching the appropriate revIDs, but I haven't investigated thoroughly yet. First I'm committing a fix for something else [20:37:08] Could easily use the functions to edit a page [20:37:25] sure, I'm not using the nochanged at all, just thought it was odd that it kept showing up [20:37:34] carl-m: Yes, it is [20:37:51] ^_^ And who said I'd even use mysql [20:38:18] carl-m: Please try to create an empty section using section=new and tell me what you get [20:38:58] 'info' => 'Unknown error: ``228\'\'', [20:39:08] Thought so. Thanks [20:40:56] 03catrope * r40049 10/trunk/phase3/ (3 files in 2 dirs): API: Throwing a more specific error message when the client tries to create empty new sections, which isn't allowed. Unknown error: ``228'' isn't very user-friendly. [20:43:08] carl-m: I think the bug you described is caused by database replication lag, because I never experienced it [20:43:49] that's odd [20:44:41] I thought that everything within the running process would be syncronized [20:46:10] Duesentrieb: I've actually had a number of ideas in data storage format, console interactivity, scalability, syntax, and a number of other areas mostly on how to make use of lisp [20:46:49] how can you search the actual wikitext on a mediawiki installation? [20:47:00] if its possible that is.. [20:47:21] Dantman: sounds like you need to get it written or you'll asplode :P [20:47:30] heh [20:47:37] Yawg81: You can't [20:47:54] hmm that's a pity [20:48:10] One of these days when my machinepower improves I might get back to learning... last time I tried I didn't have a great result.. [20:48:10] carl-m: Not if you're writing to the master server, then reading from the slave server (which is another server in Wikipedia's case, but not in my test setup) [20:48:14] Yawg81: you can't beyond what the search page gives you, that is, a fulltext index -- which only covers individual words with more than 3 characters (per default) [20:48:30] probably because I did a lot of thinking about the title datatype and about complex uses of the package system [20:48:43] Yawg81: what do you want to do, really? what are you looking for? [20:48:54] in the past i used imageshack [20:49:03] to put pics on the wiki [20:49:21] now that the whole wiki is working i'd love to get all those links removed and replaced by proper uploads etc [20:49:26] I see what you mean [20:49:32] linksearch [20:49:40] linksearch already installed [20:49:43] doesn't seem to work [20:49:49] like i thought it would [20:49:49] oh [20:49:59] i'd expect that to work... [20:49:59] There's also replacetext, and bots work to [20:50:05] 03catrope * r40050 10/trunk/phase3/ (RELEASE-NOTES includes/api/ApiEditPage.php): API: Fixed bug that caused all action=edit requests to return with the nochange flag set on wikis where DB_MASTER != DB_SLAVE [20:50:06] hm... [20:50:33] Yawg81: linksearch may not be retroactive. you may have to run refreshall to make it pick up all the links. [20:50:39] carl-m: Fixed. [20:50:42] but i may be wrong. not sure how this is handled [20:51:08] Duesentrieb > oh, i could give it a shot.. refreshall is to be found where? [20:51:40] 03(mod) DISPLAYTITLE doesn' t always work when current revision is sighted - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15330 (10JSchulz_4587) [20:51:49] thanks [20:52:10] Yawg81: in the maintenance dir [20:52:26] Yawg81: if you have a large wiki, it will take long. it reparses every page. [20:52:48] "large" being > 100000 pages [20:52:59] is it this one? refreshLinks.php [20:53:06] no. [20:53:22] there's no refreshall in my maintenance folder [20:53:31] rebuildall.php [20:53:32] sorry [20:53:33] Yawg81: Try alternative capitalization [20:53:34] aha [20:53:38] Oh of course [20:53:43] rebuildall is there [20:55:36] bah. running rebuildall doesn't fix the contents of the category table for me. [20:55:52] categorytree is getting wrong numbers from it :( [20:55:54] wtf? [20:56:38] same with refreshLinks.php [20:58:08] 03(mod) Centering the output of an extension improperly nests tags - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=1483 +comment (10gtisza) [20:58:30] !shell | Yawg81 [20:58:30] --mwbot-- Yawg81: Shell access (that is, SSH access, see http://en.wikipedia.org/wiki/SSH) is highly recommended if you want to run MediaWiki. You can install without it, and basic operation will work, but even creating backups or upgrading will be painful without it. Some more involved maintenance tasks may even be impossible. MediaWiki is not designed for minimal environments. [20:58:40] !phpshell [20:58:40] --mwbot-- PHP Shell emulates shell access to a system. Read more about it and download it at < http:mgeisler.net/php-shell/ > [20:58:43] I believe there was a separate script for category stuff, and it was never included into rebuildall [20:58:44] !hosting [20:58:44] --mwbot-- For a list of popular wiki hosting services, see . You can also set up MediaWiki on most webspace that provides PHP and MySQL (SSH recommended). [20:58:58] Dantman: called... what? don't see it [20:59:47] Dantman: arg! populateCategory.php [20:59:53] mhmm [21:00:00] is that in the release notes?... [21:00:11] I can't remember [21:00:21] I just remember it from the topic comming up in IRC in the past [21:00:23] grep sais no. [21:00:24] fail. [21:00:50] It's run as part of updaters.php first time it's needed [21:00:57] update.php* [21:01:10] it didn't for me. [21:01:41] brion-busy: There seems to be one WMF server that's borked. When browsing around www.mediawiki.org, I get the "This site is experiencing technical difficulties" message sometimes [21:01:59] dunno why, i see the include. but it didn't work, apparently. [21:02:36] Hey, when logging in n the api, what is returned if it is sucessful? [21:02:39] *Dantman wonders when he'll get to run a wiki farm [21:02:58] TheLetterX: That's documented at http://www.mediawiki.org/wiki/API:Login [21:03:03] I just realized [21:03:13] 03(mod) Centering the output of an extension improperly nests tags - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=1483 (10gtisza) [21:06:27] 03(mod) Linebreaks are mishandled in
and
  • - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=6200 +comment (10gtisza) [21:07:00] RoanKattouw: thx, looking into it [21:08:15] TheLetterX: what language are you working in? [21:08:31] Never mind, I got it [21:08:36] It's PHP, by the way [21:10:36] TheLetterX: the API documentation on mediawiki.org is generally good, although sometimes a little cryptic. If you want working Perl code to copy from let me know [21:10:42] mkak... it's probably time for me to go to sleep... I'm in my indecisive state now... I'm not going to get anything done... [21:10:57] carl-m: Feel free to improve the cryptic parts [21:11:58] It's like a man page, once you have a general idea how things work you can read it fine [21:12:34] carl-m: Maybe that's because it was written by someone who has had a very good idea of how things work for about a year (me) [21:13:10] I'm sure that's it, yes [21:14:34] by the way, I notice that it's possible to restore deleted revisions - is there a way to get their content? [21:14:49] does drprop=content work? [21:15:10] carl-m: I believe so. Check the docs if you're not sure [21:15:30] You need to be logged in and you need extra rights to be able to view deleted revision *content* (rather than just metadata) [21:16:07] on enwiki, don't you need a right to even see the metadata? [21:16:19] anyway, this is great, just two days ago I implemented a screen-scraping way of getting deleted content [21:17:20] Hmm...it refuses to log in [21:17:40] result => 'onstrike' ? [21:17:50] [result] => NeedToWait [21:18:01] so ... wait [21:18:02] TheLetterX: You'll get some cookies along with the response to action=login, you need to pass those back in all subsequent requests [21:18:17] But of course you won't get any cookies until you get [result] => Success [21:18:22] Yeah [21:18:26] It's refusing to log in [21:18:33] TheLetterX: If it says NeedToWait, it also says how long you need to wait. So wait. [21:18:37] but if you are getting needtowait, it means you're sending the wrong password [21:18:37] I wait 5 seconds like it tells me to, and then it says 10 seconds [21:18:43] Then like 15, then 20, etc. [21:18:50] But I'm sending the right password [21:19:04] TheLetterX: That's because you're not honoring the NeedToWait time. Every time you violate it, it's extended by 5 secs [21:19:14] I am not violating [21:19:24] So change your code to recognize the NeedToWait thing and sleep() for the right amount of time [21:19:35] TheLetterX: Are you logging in at Wikipedia or at your own wiki? [21:19:41] Wikipedia [21:19:48] Aha, it was the wrong password [21:20:14] carl-m: You *should* get a different error if you're sending the wrong password, IIRC. WrongPass or something along those lines [21:20:25] Yet I log into Wikipedia itself, and it works [21:20:31] I get a 'Throttled' error, not 'NeedToWait', I'm investigating [21:20:40] I was logging into my bot's account [21:21:08] 03huji * r40051 10/trunk/extensions/Randomrootpage/Randomrootpage.php: Setting the special page group [21:22:25] RoanKattouw: two issues. #1: the first time I am throttled, I get result=Throttled. If I try again, then I get result=NeedToWait. That's OK, I guess [21:22:44] I'm still unsure as to why it refuses my bot, but not me [21:22:47] Yes, because you didn't violate any waiting times the first time [21:23:02] carl-m: Throttled should set a waiting time too IIRC [21:23:03] I didn't violate the waiting times _any_ time [21:23:07] Not that it matters very much [21:23:08] yes, it does [21:23:21] TheLetterX: I was responding to carl-m there [21:23:30] Ah, there we go [21:23:40] #2, even less obvious: if you violate the needtowait time, it will keep counting down, and then the next 'Throttled' message will have a larger waiting time [21:31:28] RoanKattouw: there is some bug in the throttling system. [21:32:11] Exactly what is the bug then? What do you notice? [21:33:01] Let me double-check [21:34:57] too many variables [21:35:01] 03catrope * r40052 10/trunk/phase3/includes/api/ (ApiBase.php ApiQueryInfo.php): [21:35:01] API: Improvements to action=emailuser: [21:35:01] * Add two messages from ApiEmailUser to ApiBase::$messageMap [21:35:01] * Add email tokens to prop=info [21:37:12] RoanKattouw: here's what I see: http://rafb.net/p/4DP3bC48.html [21:37:33] that's using the account CBM2, which I am certain is not attempting to log in under any other process [21:37:43] my script waits the requested time + 2 seconds [21:37:46] and is throttled again [21:37:58] OK that's weird [21:38:22] The fact that you get "Throttled" and not "NeedToWait" means that the core login functions are throttling you, not the API itself [21:38:55] So I suggest you file this as a bug in Bugzilla with a suitable component (Login, if that exists) [21:39:19] the worst part is these are all successful logins [21:39:30] Oh wait [21:39:37] It *is* the API that's setting those wait times [21:39:48] But something else is setting result to Throttled [21:39:58] the wait times are not reset when it does succeed in logging in [21:40:05] that's why those are at 85 [21:40:54] wait a sec, I have an even better post [21:41:00] 03dale * r40053 10/trunk/extensions/MetavidWiki/skins/mv_embed/ (7 files): stubs for improved sequence hanndling [21:41:22] http://rafb.net/p/jZYct993.html [21:41:23] carl-m: Did you set $wgAttemptPasswordThrottle? [21:41:33] this is on wikimedia [21:41:34] $wgPasswordAttemptThrottle, sorry [21:41:36] Oh [21:41:52] result 1: wait 5 result 2: wait 223 [21:41:58] and I waited 7 in between [21:42:16] seems like it's the ineraction between your throttle and the core throttle [21:42:27] Not really [21:42:40] why does it go from 5 to 223? [21:42:40] The core throttle says you're only allowed to log in X times in Y seconds [21:42:43] Dunno [21:42:58] <_mary_kate_> it limits successful logins? [21:43:02] So, it counts the number of logins in Y seconds and sets result=Throttle if it's larger that X [21:43:05] <_mary_kate_> that seems a little bit silly [21:43:07] _mary_kate_: Yes, even those [21:43:14] _mary_kate_: yes, it's frustrating sometimes [21:43:16] Silly is a euphenism [21:43:19] (sp?) [21:43:33] Anyway, that throttling code isn't mine, I'll run blame to see whose it is [21:43:40] API throttling is your problem here [21:44:04] It says you can't even try to log in for the next 223 seconds, and if you do, it raises that number [21:44:14] *That's* the part that seems to be broken [21:44:18] *RoanKattouw investigates [21:45:05] I see ApiLogin.php does not se THROTTLE_TIME dynamically [21:45:22] carl-m: No, it uses THROTTLE_FACTOR [21:47:13] how do I get throttled on good logins anyway? [21:48:09] carl-m: Crazily enough, the core throttle counts good and bad logins equally [21:48:28] Oh wait I think I know what the problem could be [21:48:39] right. so when the core throttles me, execute() sets result=THROTTLED [21:48:56] and assumes that means it's a bad login [21:48:58] but it isn't [21:48:59] _mary_kate_: Do you have the resources to check whether all WMF servers have their clocks synchronized against each other? [21:49:45] carl-m: Exactly. The API thinks that Throttled is bad, which is not necessarily true. But Throttled does mean you can't login, no matter whether your password is good or not [21:49:47] <_mary_kate_> if one of those resources is wanting to... no ;) [21:50:01] What I think is happening here is that the WMF servers' clocks are out of sync [21:50:26] Because the API throttle uses time() in the wrong assumption that the server handling the second request will be the same that handled the first one [21:50:39] the cacheBadLogin() function uses calculateDelay, but ignores getNextLoginTimeout() [21:50:55] carl-m: getNextLoginTimeout() is only used to check whether the user violated the timeout [21:51:09] If the return value of that function isn't 0, you'll get a NeedToWait [21:51:22] Only if it's 0 will ApiLogin do anything else [21:51:29] yes, I see that [21:51:48] And for cacheBadLogin() it's irrelevant [21:52:05] Every bad login ups the waiting time *and* restarts the clock if it was still running [21:52:24] doesn't restart the clock; I can watch the NeedToWait clock count down to 0 [21:53:14] brion-busy: Can you do a quick check for me? I suspect the WMF servers' clocks are out of sync, worst-case matchup seems to be a three-minute difference. Can you check whether that's really the case? [21:53:54] carl-m: Oh of course. You can't restart the clock, because you'll get NeedToWait's all the way down to 0 before cacheBadLogin() can even be reached [21:54:17] So that means cacheBadLogin() doesn't need to call getNextLoginTimeout() because it knows it'll be 0 [21:54:43] so you;re thinking this is entirely because of clock skew in the timeout checks? [21:55:06] Clock mismatches between different servers, yes [21:55:12] right [21:56:08] 03(mod) Linebreaks are mishandled in
    and
  • - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=6200 (10Simetrical+wikibugs) [22:01:10] RoanKattouw: sec [22:02:03] RoanKattouw: instead of storing a waitin time, in order to enforce a delay, couldn't you just add a large number to the memcache for the core login throttle? [22:02:31] carl-m: That'd encourage wasting bandwidth [22:02:33] i.e. adding the full $wgPasswordAttemptThrottle['count']; [22:02:38] RoanKattouw: i'm seeing one that's about three minutes off [22:02:41] brion-busy: what were y ou after? [22:02:52] carl-m: The best solution is probably not to use time() but to have the key expire from memcached [22:03:08] right [22:03:23] brion-busy: Thought so. One last quick question: if I add something to a memcached and set it to expire in 10 seconds, will it expire in exactly 10 seconds? How lagged is that? [22:03:41] how would sharing the core login throttle memcache cause extra bandwidth use? [22:03:45] In that case I'll just rewrite API login throttling [22:03:58] carl-m: Oh wait I see what you're thinking [22:04:04] brion-busy: oh. I read the backscroll. [22:04:05] RoanKattouw: i believe it does seem to expire reasonably reliably, but i haven't done a thorough test [22:04:06] *Werdna hides. [22:04:17] if you add the limit to the mamcache, you prevent login until your chunk expires [22:04:35] Well I think I'm just gonna drop the API's throttling altogether. Core throttling has pretty much replaced it [22:04:48] couldn't it expire before the expiry time, if memcached had a small size? [22:05:11] need a reverse-captcha "Please prove you are a bot, with good intentions" [22:05:11] if it does, core throttling has the same problem [22:05:39] RoanKattouw: the waiting time in the response is very helpful [22:05:42] carl-m: No, because it doesn't use time() [22:05:50] carl-m: Yes, I'll keep that around. There is a way [22:06:08] Core throttling, just stores a counter in memcached that expires after 5 minutes [22:06:22] yes, I'm looking at the LoginForm code [22:06:39] The counter is incremented on every login (good or bad), and if it's at 5, you can't log in anymore until the 5 minutes have passed and the counter has disappeared [22:07:03] it can't be 5 minutes, but yeah [22:07:19] so if you add 5 to that counter all at once, you block login [22:07:25] Yeah [22:07:29] But there's no need for that [22:07:38] The core throttle is fine by itself [22:08:15] I wrote the core throttle :) [22:08:26] Werdna: why does it throttle on successful logins? [22:08:49] because otherwise it would give away the fact that you gave the right password [22:08:54] defeating the point of a throttle [22:09:02] MinuteElectron: unlike the "LOgin Successful" message? [22:09:09] what MinuteElectron said [22:09:37] if your threat model is that someone has 100 passwords out of which 99 are valid, maybe that's a concern [22:09:39] it's no good to only throttle on failed logins, because then when they hit the throttle they can just keep sending passwords until they get through. [22:09:50] oh, of course [22:10:04] I haven't checked, but if the throttle implementation is sane, it'll check whether the throttle has run out before it even starts to think about checking the password [22:10:07] what you do is to increment the throttle on successful login, so even if the never send a bad pw they still get throttled [22:10:14] Oh wait you can't do that [22:10:18] Never mind [22:10:36] once you send 5 bad pw's you should be throttled [22:10:42] The point is that the code checking whether the throttle is violated and the code incrementing the throttle aren't separated [22:10:47] I *think* it resets the throttle on a successful login. [22:10:57] and yes, what RoanKattouw [22:11:00] Werdna: I can hit the throttle by making my bot log in 6 times in a row [22:11:03] it's in the same function. [22:11:06] So checking whether the throttle has been hit implies incrementing it [22:11:26] carl-m: well, if your bot logs in 6 times in 5 minutes, maybe you *deserve* to be throttled ;) [22:11:30] Werdna: I think users who frequently get logged out will hate you though [22:11:47] RoanKattouw: five times in five minutes? [22:11:47] Werdna: that's why I didn't file a bug, since I can work around it, but it's not ideal behavior [22:12:23] I agree with carl-m that it's not ideal [22:13:23] I tend to hit it more often if I am debugging something, making a lot of small runs [22:14:03] I'll go ahead and fix that issue right after I remove API login throttling [22:14:27] RoanKattouw: I already did it [22:14:48] Did what? Separate the two functions? [22:14:57] *RoanKattouw kicks CIA-57 [22:14:57] ow [22:15:01] Hmm [22:15:44] ok, who moved the section edit links to the left side [22:15:58] de.wp did [22:15:59] CharlotteWebb: Link? [22:16:00] do I get a cookie? [22:16:16] heh http://en.wikipedia.org/wiki/Cultural_references_to_cockroaches [22:16:30] *Lady_Aleena gives Splarka a cookie. [22:16:42] *Splarka nomnom [22:16:59] I thought it was nummy. [22:17:03] i cleared my cache and it's still left-handed [22:17:25] brion-busy: Actually, that's not that stupid. Cockroaches are frequently said to be the only creatures capable of surviving a nuclear war [22:17:35] . . . which is stupid. [22:17:36] CharlotteWebb: Even on http://en.wikipedia.org/wiki/Cultural_references_to_cockroaches ? [22:17:43] Tons of microorganisms would survive. [22:17:49] Simetrical: Maybe, but that makes the page non-stupid [22:17:49] Bunches of humans probably would too. [22:17:57] Well, yes, maybe. [22:18:06] If properly written. [22:18:21] It's the kind of thing I'd expect to be a pages-long list of citations from Family Guy. [22:18:26] weird [22:18:37] 03catrope * r40054 10/trunk/phase3/includes/api/ApiLogin.php: [22:18:37] API: Remove the throttle from ApiLogin because [22:18:37] * it's been obsoleted by a similar throttle in core [22:18:37] * it uses time(), which causes problems when you have multiple servers with a significant clock skew between them [22:18:39] depends on the type of nuclear war [22:19:03] what does it vary according to namespace? [22:19:13] India vs Pakistan, probably not bad... Russia vs China vs US... probably not good... [22:19:14] Werdna: Still waiting for you to commit the throttle thingy [22:19:20] salt them with iodine, cobalt, and gold... very bad [22:19:27] that's even worse than having them all on the left, which i could get used to in maybe 3 months [22:19:49] Splarka: Usually, a nuclear war is taken to mean a nuclear *world* war, i.e. one half of the world vs. the other [22:19:53] http://de.wikipedia.org/wiki/MediaWiki_Diskussion:Monobook.css <-- do they appear below the title, like on de.wp ? [22:20:08] (or at least alliances of significant size, like in WWs 1 and 2) [22:20:51] http://de.wikipedia.org/wiki/MediaWiki:Monobook.js <-- where de.wp does it, "moveEditsection: Moving of the editsection links" [22:21:39] RoanKattouw: hold your horses :P [22:21:53] Why? You said you'd already done it [22:23:09] I haven't tested it. [22:23:18] Ah [22:23:22] and we all know what happens when you commit untested code to svn [22:23:26] *Werdna looks warily at brion-busy [22:23:57] it gets reverted, brion stamps a cartoon Dev with X'd eyes on the side of his Spitfire, and life goes on [22:24:56] 03werdna * r40055 10/trunk/phase3/includes/specials/SpecialUserlogin.php: Reset password throttles on login [22:32:15] <[Hyarion]> Is there anyway to force someone using IE6 to use a different skin? [22:33:07] using force doesn't yield best results [22:33:34] <[Hyarion]> yea, but it yields temporary and easy results :) [22:35:36] 03aaron * r40056 10/trunk/phase3/includes/memcached-client.php: log strange anomaly [22:40:58] 03aaron * r40057 10/trunk/phase3/includes/memcached-client.php: add more info [22:51:12] 03(mod) Linebreaks are mishandled in
    and
  • - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=6200 (10l8qjvx002) [22:51:13] is there a simple, quick way to get the number of pages in a namespace? [22:51:37] Eloquence: SELECT count(*) from page where page_namespace=ns_number? :) [22:52:01] Eloquence: are we talking wikitext, sql or hp? [22:52:02] php* [22:52:07] preferably accessible through the front-end, unless someone wants to run a query for me to count the wikibooks cookbook pages :) [22:52:25] Well, i can do that if you like. [22:52:32] that would be helpful :) [22:52:39] *Splarka guesses {{PAGESINNAMESPACE:}} is disabled on wb [22:54:36] Splarka: http://de.wikipedia.org/wiki/Spezial:Markierungsstatistik :DD [22:55:46] Cookbook [22:56:05] vast ist das? vom ze und revisika da werfiden? [22:56:20] (mmm, fake german) [22:56:32] "1 user with Reviewer rights" [22:56:53] wgCanonicalSpecialPageName = "ValidationStatistics" ahh [22:57:02] Eloquence: mysql> select count(*) from page where page_namespace=102\G [22:57:02] *************************** 1. row *************************** [22:57:03] count(*): 3735 [22:57:11] Eloquence: for future reference, do you have a toolserver account? [22:57:24] thank you, andrew :). no, I don't think I do right now. [22:58:19] MrZ-man: * Brion VIBBER ‎(Bureaucrat, editor, reviewer, Sysop) [22:59:16] it's a cookbook! [22:59:24] *brion-busy is dragged away [23:00:38] haha, I'm still logged into TS ;) [23:04:52] I uploaded an svg and im getting this: error creating thumbnail: convert: must specify image size `/tmp/magick-XXnmS0zz'. [23:04:55] anyone know whats wrong here? ive got imagemagick installed and $wgUseImageResize = true; $wgUseImageMagick = true; and $wgImageMagickConvertCommand = "/usr/bin/convert"; [23:13:04] nonnonnon: hmm, are you running in php safe mode or something? sometimes that messes stuff up [23:13:12] or maybe it's just mysteriously broken [23:13:54] P or ~P :) [23:14:18] nope [23:14:31] brion-busy: first it said that it couldnt find the convert command [23:14:38] so i installed imagemagick, now i get this new error [23:29:12] 03(mod) Install the StringFunctions extension - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=6455 (10jsimlo) [23:35:49] We recently moved to a different webserver, and now our wiki doesn't save any pages.... just refreshes the edit page you're at and wipes out what you've done... I was thinking maybe referer problems.. does anyone have any ideas :/ [23:42:33] 03(NEW) Add pt-br to the Help: namespace - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15331 15enhancement; normal; MediaWiki: Internationalization; (quin) [23:48:09] 03(NEW) Sortable table with numeric in Italian - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15332 15enhancement; normal; MediaWiki: User interface; (poweruser.wiki) [23:50:25] всем добра. спать [23:51:04] 03(mod) Sortable table with numeric in Italian - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15332 (10poweruser.wiki)