[00:03:07] Added all the modules suggested, still says missing a module [00:11:48] hi! i'm having problems with images. can't resize them! if i try, i see a link to the image instead the image. also thumb format doesn't work, and other little things. anyone can help with this? [00:15:40] !image [00:15:51] hmmms [00:15:58] !imagemagic [00:18:14] thx, i'm already trying that, but still no success [00:38:41] Hi - still here, still having image in infobox problems [00:39:28] http://www.modelhorsepedigrees.com/wiki/index.php?title=Blank_model - added all the modules I can think of, still showing script error [00:40:27] The box itself still stubbornly refuses to sit on the right [02:14:03] Hello! I am making a backup of a wiki and while trying to run "php dumpBackup.php" in command line, I get this error: Fatal error: Call to undefined function session_name() in /home/inran/inran.ru/docs/w/includes/Setup.php on line 522. This is what this line is: if ( !wfIniGetBool( 'session.auto_start' ) ) { session_name( $wgSessionName ? $wgSessionName : $wgCookiePrefix . '_session' ); Could you please help me reslove the error? [02:14:44] Kajra: type "php --version" [02:14:48] what's that say? [02:15:21] PHP 5.3.13 (cli) (built: May 11 2012 15:05:36) [02:16:37] Kajra: your php installation is missing the session extension [02:17:00] is this your own server? [02:17:21] no, it is a hosting [02:17:58] tell them that php cli is missing the session extension [02:18:22] could it be a setting which is turned on/off? Or it is a crucial part of installation? [02:18:30] mediawiki absolutely needs it [02:18:44] it's odd that the webserver's php would have it and cli wouldn't [02:18:54] ok, then - customer service awaits! :) [02:19:04] thank you! [02:19:06] np [02:24:39] jackmcbarn: I am looking at the php settings on the server and it looks like "session" is installed and turned on.... this is the list of working extensions if I understand it correctly: ctype, dom, gd, iconv, json, mbstring, mysql, mysqli, session, simplexml, sockets, xml, zlib Could it be something in php configuration file maybe? [02:25:06] Kajra: the webserver's php setup has session (otherwise mediawiki wouldn't work at all), but the cli doesn't [02:28:21] Kajra: to confirm that, type this: echo " you'll get a list of extensions the cli has, and session won't be there [02:29:30] yes, you are right [02:30:18] ok... customer service it is... :) thank you again [05:38:05] hi [05:45:54] i see mediawiki has .htaccess files to deny access to some subdirectories and not others. I'm wondering, why are certain directories left open? Should they be? [05:59:02] First thing mw security manual page says is disable http://php.net/register_globals register_globals. but that page says that option was deprecated long ago and removed in modern php. this makes me very sceptical of the overall security documentation quality [06:02:36] IanKelling: well documentation might not be accurate [06:02:59] its created by volunters and noone shouts on them if they are not done with work [07:06:13] Is UserArray an "object" array of user objects, or something else about users [08:03:07] IanKelling: some files are meant to be accessed directly, e.g. entry points (search this on wikitech, there was a discussion about it) and txt files [08:19:50] Withoutaname: It looks like UserArray is just an iterator over a list of users [08:20:04] ok ty [08:20:08] Probably to do with a resultset from the database but I haven't read that far yet [08:20:24] Nemo_bis: thx [08:20:57] Withoutaname: In fact that's exactly the case: You can pass it *literally* either a database resultset or a PHP array of user IDs to create a new instance. [08:21:16] newFromResult or newFromIDs [08:21:43] Withoutaname: You can find all of this information in the best result for "git grep UserArray", includes/UserArray.php [08:22:03] It's the best because it has the string I was grepping for in the name of the file without any modifiers, and is highest up in the file tree [08:22:14] I was trying to find out how to enforce type when I want to pass in an array of users as argument [08:22:29] "enforce type" in what way? [08:22:37] Enforce that it's an array of users? [08:22:42] Nemo_bis: didn't find anything on search, but knowing you saw something is at least comforting [08:22:49] function addUsers( User $users ) where $users is an array of User objects [08:23:04] that doesn't work, because an array !== User [08:23:38] Hm. [08:23:40] someone suggested function addUsers( UserArray $users ) and have UserArray be an "array" object containing Users [08:23:51] Withoutaname: Are you adding an addUsers method to UserArray? [08:23:59] Oh, no [08:24:00] OK [08:24:50] Withoutaname: You could either have addUsers( array $users ) and verify each element of $users is a User by manually throwing errors if not; *or* you could use UserArray which doesn't do type checking anyway. [08:24:56] Either one is unsafe in its own way [08:24:57] IanKelling: http://markmail.org/message/b7g35eof6ksn255u [08:26:17] UserArray isn't actually an array of User instances, sadly. At least I can't tell that it is. [08:27:15] * marktraceur thinks he's given all the advice he can just now [08:27:20] Good luck Withoutaname [08:27:37] marktraceur: thanks, I'm considering the first option, manually throwing erros [08:28:18] Nemo_bis: thx [08:56:11] Hello! [08:56:32] Question: this API query is giving me an error: http://es.wikipedia.org/w/api.php?action=featuredfeed&limit=10&format=json&feed=featured [08:56:40] it says that "featured" is not recognized [08:57:13] however, it's correctly built: it's in the API even as an example, and works correctly if instead of hitting ES.wikipedia.org you hit EN. or FR. [08:57:23] is there a difference between setting a right in $wgGroupPermissions to false and removing it entirely from the array/list [08:57:44] do you know if there's a workaround? what about a way to open an issue ticket about this? [11:07:31] Hello. Just installed 1.19 under $docroot/wiki/ then decided to rename it to $docroot/w/. I've updated $wgScriptPath in LocalSettings.php, but it remains broken. What have I missed? [11:08:33] http://www.b0rken.org/w/ - error messages indicate it's still trying to find stuff under /wiki/ [11:10:17] there's no $IP defined in LocalSettings.php [11:15:09] must have been some kind of caching going on in apache, as restarting it has cleared the problem [12:22:05] I am working on migrating a MW installation from an Ubuntu machine to CentOS and am encountering a path issue. Ubuntu used /var/www for DocumentRoot under apache. CentOS uses /var/www/html. Theme images are still attempting to load from the old directory, but I can find no reference to a static path anywhere in either LocalSettings.php or DefaultSettings.php [12:22:30] I don't know where the old path is being specified. [12:23:11] PHP Warning: filemtime(): stat failed for /home/www/wiki/skins/vector/images/watch-icon-loading.gif in /var/www/html/wiki/includes/resourceloader/ResourceLoaderFileModule.php [12:23:21] /var/www was a symlink to /home/www because of poor partitioning (one of the reasons for the migration) [12:24:11] Nevermind... it was a cache issue. Sorry to have bothered you all. [12:25:55] Happens to everyone [12:46:58] Nemo_bis: What is the progress in this? [12:46:59] https://bugzilla.wikimedia.org/show_bug.cgi?id=65245 [12:48:41] Ahmad_Sammour: it takes some time to get it approved but eventually it will [12:53:24] Nemo_bis: Thanks for your reply, I'm asking because I thought you forget the matter :) [12:54:11] Ahmad_Sammour: it can't be forgotten, I see it every day in my queue at http://gerrit.wikimedia.org/ :) [14:15:43] I wonder if petan saw https://pt.wikipedia.org/w/index.php?title=Usu%C3%A1rio:Danilo.mac/Temp&oldid=38612169 [14:43:38] does anybody know if disabling FlaggedRevs from applying to the File namespace will fix this problem -> https://bugzilla.wikimedia.org/show_bug.cgi?id=54165 [14:43:57] it's becoming so obnoxious as to make me honestly consider uninstalling the extension altogether. [14:44:15] and apparently there's no progress toward a fix on it that I can see. [14:45:23] the second comment on that ticket is mine [14:46:42] it'd be alright if only the File: article said it was unreviewed but this status then proceeds to propagate to every article using the image as well [14:47:15] QuasAtWork: sure, you can disable flaggedrevs on File ns [14:48:23] do I need to do anything special other than altering the array of namespaces? [14:48:29] does anyone know of a virtual machine with a newer version that has Visual Editor preinstalled? Basically an updated Turnkey or Bitnami [14:49:41] QuasAtWork: no [14:50:23] I'll give it a shot, thanks. [15:22:41] does anyone know of a virtual machine with a newer version that has Visual Editor preinstalled? Basically an updated Turnkey or Bitnami [15:37:18] Using media wiki as a small, multi-user knowledge base but struggling to communicate changes. Anyone know of an extension that would be good for this? Each user confirming they've read and understood? [15:45:13] Pete__: Try Semantic and BlueSpice [15:45:40] Thank you [16:16:11] does anyone know of a virtual machine with a newer version that has Visual Editor preinstalled? Basically an updated Turnkey or Bitnami [16:36:47] hi [16:36:55] Annyone know if TpT is active? [17:31:40] How do I get the TOC to appear for custom Article derivation? [17:44:57] retentiveboy: article derivation? what's that? [18:25:12] Hi! [18:28:08] Hi Djain! [18:28:53] I can't see option to take bugs in bugzilla [18:29:23] To claim them? Yeah, you need permissions for that I think [18:29:37] I can assign it to you, though - can you give me a link and your email account for bugzilla? [18:32:17] oh my mentor is doing that for me right now [18:32:40] but i wanted to know if i can do it for myself [18:32:54] also change the status of bugs [18:33:03] as in mark them resolved [18:33:42] Ah. [18:33:47] I think you need editbugs for that [18:33:56] andre__ is never around when I need him [18:34:07] qg sum [18:34:10] Sigh [18:36:29] hehe... out for lunch at some swanky spot, no doubt. [18:36:46] I'm so frustrated with this, there's no documentation about getting editbugs [18:37:20] [18:39:11] <^d> Djain: Hey, what's your username in BZ? I can give you permissions. [18:40:12] shows my email in username... [18:40:22] <^d> Oh, your e-mail then :) [18:40:41] djdeepalijain811@gmail.com [18:41:05] * marktraceur sends wikitech-l mail about what this process *should* be like [18:42:21] !editbugs [18:42:25] No that would be too easy [18:42:30] <^d> Djain: All done! [18:42:35] Nemo_bis: My extension is handling the ArticleFromTitle hook returning an instance of my own class derived from the stock Article class. The view() method is calling $wgOut->addWikiText() to generate the article which includes multiple ==headings== but I don't get a TOC. [18:42:43] thanks [18:42:45] <^d> I'm going to give out this permission to a bunch of peeps. [18:43:08] <^d> Well, by bunch I mean marktraceur [18:43:25] marktraceur: we already have a consensus on what needs to be done, don't start new discussions but offer a solution [18:43:57] <^d> The solution is someone needs to actually implement the freaking consensus. [18:44:01] <^d> What is so hard here? [18:44:29] ^d: can you just grant everyone who has editbugs right now the right to grant editbugs to other people? [18:44:37] <^d> I don't think so. [18:44:39] <^d> I'm looking. [18:44:42] :( [18:44:50] A DB query is what we're looking for. https://bugzilla.wikimedia.org/show_bug.cgi?id=40497#c38 [18:45:06] Surely writing a DB query takes less time than a new wikitech-l thread? :) [18:45:14] <^d> "Groups That This Group Can Grant Membership In" [18:45:15] <^d> Duh. [18:45:17] > Not what I would call "documented": There's http://www.ravenbrook.com/tool/bugzilla-schema/ and https://bugzilla.mozilla.org/show_bug.cgi?id=913190 [18:45:55] Part of this will be "documentation" and part of it will be "this is my saga of woe" and the last part might be "to whom else should ^d give this permission" [18:46:09] * ^d stabs BZ a few times. [18:46:18] <^d> Why isn't "editbugs" in the list of groups that editbugs can grant? [18:46:24] <^d> Can you not make groups self-granting? [18:46:40] <^d> Oh got it. [18:46:51] <^d> ("Users in X can add other users to editbugs") [18:46:53] <^d> Admin, Editbugs [18:47:08] <^d> "The following groups may now add users to this group: editbugs" [18:47:16] Yay [18:47:45] <^d> How does https://bugzilla.wikimedia.org/editusers.cgi?action=edit&userid=5774 look for you marktraceur? [18:47:56] <^d> (Or anyone who's not an admin, I guess) [18:48:05] Looks like I can remove the group from you [18:48:11] And save changes [18:48:13] bd [18:48:44] <^d> No other options though? Just that? [18:48:47] i guess it can't be made so that editbugs can only add editbugs, and not remove? [18:48:48] ^d: yes [18:48:49] Uh, yeah [18:48:55] <^d> Good, that's what I wanted. [18:49:03] I'll announce this change for you, CHad [18:49:15] Are there any age gate extensions out there for MW? [18:49:20] As the resolution for my misery/woe [18:49:27] allowing everyone to remove editbugs from everyone is kinda scary, though [18:49:52] <^d> MatmaRex: No worse than having to track down an admin to give you editbugs? [18:49:57] I can apparently remove editbugs from Chad [18:49:57] True [18:49:57] <^d> Which is batshit insane. [18:50:01] [01:57] Withoutaname is there a difference between setting a right in $wgGroupPermissions to false and removing it entirely from the array/list [18:50:12] Nemo_bis: But not admin. So we're safe. [18:50:18] :) [18:50:20] <^d> Withoutaname: unset == null == false in this case. [18:50:30] <^d> (it's based on being true) [18:50:34] Yes, worst that can happen is that some vandalised accounts need editbugs restored [18:50:46] As opposed to having *all* users in need of admin intervention. :) [18:50:48] ^d: i mean, i can see it being really really annoying if someone who wants to play a joke on us finds out about this [18:50:56] then it makes no sense why we must have true as a value [18:51:03] i don't suppose bugzilla even has throttles on this or anything [18:51:07] MatmaRex: why would such a person have editbugs? :) [18:51:09] when we should just list all the user rights as array value [18:51:16] <^d> MatmaRex: Then I'll take out my ban-hammer and remove them from BZ. [18:51:55] MatmaRex: you're right, but it boils down to "hey, you can now add editbugs to anyone but please don't do so undiscriminately [18:51:58] Nemo_bis: there's a ton of "grandfathered" accounts with editbugs registered. also, we give out editbugs to anyone who asks for it afaict [18:52:08] well anyway, whatever [18:52:15] this is probably better [18:52:26] and it's not me who'll have to clean up. :> [18:52:43] Anyone who is 1) motivated enough to ask about it, 2) to discover who to ask, 3) known by the asked person, 4) not scared of being caught wandering in bugzilla [18:52:48] hehe [18:53:29] <^d> lunch, etc. [18:54:28] cute https://bugzilla.wikimedia.org/editusers.cgi?action=activity&userid=5774 [18:54:32] can we change $wgGroupPermissions to just use array( 'group' => array( 'rights' ) ) instead of what it is now [18:54:54] it makes no sense having an additional boolean to memorize [18:55:15] who knew https://bugzilla.wikimedia.org/editusers.cgi?action=activity&userid=7541 [18:55:40] Withoutaname: and how would you remove a default permission from a group? [18:56:07] $wgRevoke? [18:56:12] "Product responsibilities: none" sounds so sweet [18:56:45] Withoutaname: that's not what revoke does, it would override the permission even when coming from another user group [18:57:13] So for instance if you want to give "delete" to crats and you revoke it to sysops a sysop+crat wouldn't be able to delete, would it [18:57:32] just remove it from the array then? [18:58:14] * marktraceur sent email [19:02:18] Nemo_bis: uh, I don't think that's how $wgRevoke works [19:02:37] sysop+crat cannot delete only if they belong to the $wgRevoke group [19:02:44] so just don't add them [19:04:55] !editbugs is https://www.mediawiki.org/wiki/Bugzilla#Why_can.27t_I_claim_a_bug_or_mark_it_resolved.3F [19:05:00] ty wm-bot [19:17:24] was editbugs restricted because of spam... [19:18:27] Withoutaname: abuse [19:58:54] Added some users [19:58:57] Can someone check https://bugzilla.wikimedia.org/editusers.cgi?action=list&matchvalue=login_name&matchstr=%40wikimedia.[^o]&matchtype=regexp&groupid=7&enabled_only=1 [20:00:14] Nemo_bis: what do we have to check? [20:14:57] nevermind, I'll do myself [20:17:41] now let's see how long a regex search can be :) [20:28:14] hi. does tools.toolname@tools.wmflabs.org MAIL work? I sent a mail to tools.bub@tools.wmflabs.org but did not receive any reply on my gmail (linked) account. [20:40:28] Now raise hand anyone able to make kate bring their computer to swapdeath and 200 % load [20:42:42] something broke mediawiki.org? returning 403s to me [20:43:14] Cluster is all affected I guess [20:43:18] Withoutaname: They're looking [20:46:02] anomie: Hi [20:46:17] hi kunalg [20:48:58] anomie: In the review for the API method to get page content language, if we have a DB entry, we need to load it from it right? Just making a new title and doing $title->getContentLanguage() will otherwise always return the default wiki language. [20:49:29] How would I go about becoming an op in this channel? [20:49:42] Because I'm a sysop at MediaWiki.org and I'd like to be able to update the channel topic. [20:50:05] kunalg: You mean $title->getPageLanguage()? If it's coded right it should automatically load the language, either when the Title object is constructed or when the method is called. [20:51:28] Mode +t isn't set here, iirc, most people should be able to change the topic, if there is a good reason to. [20:51:35] oh [20:52:04] there we go, updated [20:52:35] Oh, there was a .7 release... [20:53:09] anomie: So, you say that the getPageLanguage() method should read the language from DB? Currently all the properties like page_len are loaded separately for the page. What would you suggest? Should it load the page language from DB with other properties or separately using this method? [20:53:42] kunalg: It should probably do it exactly like how page_len is done. [20:54:28] Now I have to log back in to do a .7 update for ShoutWiki... bad release team, next time be a few hours earlier ;) [20:58:31] anomie: Yeah, that is what I thought. The page_len is loaded from the DB while loading the page and also using the API. So something similar should happen for the page_lang case. [20:59:01] kunalg: Well, for the API module keep in mind that the logic is more complicated than just "dump whatever is in the database field". [20:59:14] kunalg: So calling the Title method might make sense there. [21:00:23] anomie: The reason we will still need to use the getPageLanguage() method is that if the database field is null it takes the default( or in a case of MW namespace which you had commented on ) [21:00:37] !hook [21:00:46] Does anyone know if there is a plug-in or way to get 'live' SQL Server Reporting Services reports integrated on pages? [21:11:36] Hah, got Request-URI Too Large now. It takes a 7k characters regex it seems [21:12:55] that's huge! [21:19:27] I probably added a hundred editbugs, enough for today. [22:13:09] Nemo_bis: Whoa what [22:13:21] That's awesome [23:55:21] is there a means within abuse filter to see which are hitting the condition limit?