[03:16:47] did wgNamespaceNumber die on wmf wikis? [03:26:25] Seems unlikely. [04:38:16] Was hoping to pick some brains for a moment if that's okay [04:50:26] Patches_: What's your question? [04:51:22] Okay, we've got a site running MW 1.24.1 and we did a import of content from a Wikia site and now anything that you put in Common.js just dosen't work [04:52:35] So I killed everything in common.js and tried copying over the collapsible stuff we wanted from mediawwiki.org [04:52:44] that didn't make a difference either [05:06:01] Patches_: Can you link to your common.js page? [05:06:13] yes, one moment [05:06:14] Try putting "console.log('hi');" or something in Common.js. [05:06:22] To make sure it's actually being loaded. [05:06:40] http://en.kancollewiki.net/wiki/MediaWiki:Common.js [05:06:55] gonna throw that in now, Fiona [05:07:07] Looks like it didn't run on that page. [05:07:26] Are you using a custom skin? [05:07:33] Have you set any custom settings in LocalSettings.php? [05:07:40] nope, just Vector [05:07:45] Fatal error: Class 'Services_JSON' not found in /var/www/kancollewiki.net/htdocs/extensions/CategoryTree/CategoryTreeFunctions.php on line 248 [05:07:51] That's going to be your problem [05:07:56] RL can't load scripts [05:08:22] that would explain it haha [05:08:25] Patches_: I'm *guessing* that CategoryTree is not an appropriate version for whatever version of MediaWiki you have. [05:08:41] How is CategoryTree related to Common.js? [05:08:56] Probally not, i'm willing to bet it was overwritten when the Wikia stuff was imported [05:09:05] that Wikia site was running 1.19 [05:09:12] Fiona: Dunno, but that's the error I got from a load.php request [05:09:29] It probably has an RL hook that calls a non-existent core class [05:09:44] Patches_: So you can try disabling extensions. [05:09:52] By commenting them out in LocalSettings.php. [05:10:04] You can verify that they're disabled by visiting the page "Special:Version" on your wiki. [05:10:18] will do [05:10:58] thank you so much, i'll let you know how it goes [05:11:31] We'll be here. [05:11:44] Well, we might not. It's late. But our computers will. And some other people might show up later. [05:12:06] haha, sounds good [05:12:38] Patches_: Looks like it's working now [05:13:10] just commented that out [05:13:12] sweet [05:13:36] yep, thank you guys so much! [09:09:56] https://cloud.google.com/launcher let's just hope that this one-click installer actually is good [09:10:02] (since it's Google) [09:10:17] * JD|cloud still wouldn't trust that MediaWiki thing [09:37:23] Hi. I'm trying to programmatically set a $wgDefaultUserOptions variable from an example extension. (like $wfDefaultUserOptions['previewontop'] = 1; ) but it isn't persisting beyond page reloads. I'm at a bit of a loss as to what I'm missing; I'd be very grateful for any hints... [09:37:58] Apologies in advance, I am sure it's something stupid :/ [09:45:28] JosefAssad: did you remember to specify global before $wgDefaultUserOptions[] in the scope where you're using it? [09:45:52] yep :) [09:46:01] let me try to pastebin some code, actually [09:46:49] Hello, do mediawiki has any project related to recommendation systems? [09:47:31] JosefAssad: you wrote $wfDefaultUserOptions['previewontop'] = 1;, is the $wf a typo you made just now, or is that also in your code? [09:47:32] Here's the code in question. I think the problem might be between lines 33-41 http://pastebin.com/dbecT7Tr [09:47:51] bawolff: yes, apologies. That's an IRC typo not present in the code. Good eye [09:49:10] JosefAssad: Normally you should only set a configuration global in the php global scope (e.g. not inside a class) [09:49:45] bawolff: in a class, I should use getConfig() ? [09:49:57] that new API? [09:50:12] Well that too, but that's not what I mean [09:51:03] Ah, ok. Is that a matter of good form, or does it just plain not work setting that stuff in a class? [09:51:30] For example in the Echo extension, $wgDefaultUserOptions is set in Echo.php not in any function [09:52:09] I think using the new getConfig() api is more a matter of good form. I believe we still have (for now) backwards compat with the old way [09:52:57] Yeah. Problem is, I'm trying to provide a web UI for manipulating options set by other parts of code [09:53:09] I played with the getconfig() api, my problem there was I couldn't figure out how to set() on a value in an array [09:53:15] My php-fu is pretty weak sauce [09:53:30] I'll look at Echo.php maybe get some ideas [09:53:33] ah, ok. $wgDefaultUserOptions is supposed to be the fallback values if the current user doesn't have an option set [09:53:39] to change an option you have to [09:53:54] * JosefAssad listens [09:54:42] $this->getUser()->setOption( "option_name_here", "value" ); $this->getUser()->saveSettings() [09:55:43] oooo [09:55:47] and to get an option you use $this->getUser()->getOption( "option_name" ); [09:56:04] ok, that's for existing users. How about for new users? [09:56:13] Does that HAVE to be in LocalSettings.php? [09:56:26] Or maybe I can use a hook then for new users [09:56:38] new users will automatically get whatever $wgDefaultUserOptions is set to [09:56:47] Normally options are changed in Special:Preferences [09:57:54] yes, I am probably trying to so something a bit strange here :) [09:58:44] What I'm doing is actually learning MW by developing a toy extension, so that's why I'm trying to programmatically modify that default setting [09:59:02] Well that's probably a good way to learn mediawiki :) [09:59:42] Yes, fighting with code that doesn't work is actually a great way to learn :) [10:01:09] !class User [10:01:09] See https://doc.wikimedia.org/mediawiki-core/master/php/html/classUser.html [10:01:15] Might be helpful [10:01:23] also [10:01:27] !hook GetPreferences [10:01:27] https://www.mediawiki.org/wiki/Manual:Hooks/GetPreferences [10:02:26] actually, this conversation has helped me ask better questions [10:02:39] I think now what I'm trying to do is to programatically override a setting in LocalSettings.php [10:03:42] Generally you don't want to do that. You either have to override it always, or it won't persist after the current request [10:03:52] yes, precisely [10:04:06] If you want to override it always, see $wgExtensionFunctions [10:04:34] but if you want to be able to set it from a special page, then you probably want to look into creating your own db table [10:04:55] Yep, that makes a lot of sense. I understand much better now [10:05:12] !hook LoadExtensionSchemaUpdates [10:05:12] https://www.mediawiki.org/wiki/Manual:Hooks/LoadExtensionSchemaUpdates [10:05:27] And that actually makes me drop the idea. not a fan of creating more tables generally [10:06:42] If you want user editable configuration, sometimes people abuse the mediawiki namespace (i18n system) to do that [10:06:47] e.g. Extension:Sidebar [10:07:02] err, I mean MediaWiki:Sidebar controls the config of the sidebar [10:07:28] yes, I am guilty of banging on that sidebar already :) [10:08:12] bawolff: your feedback has been absolutely invaluable! I'm going to go read up on $wgExtensionFunctions [10:08:19] I am very grateful [10:08:20] another example is the Titleblacklist extension [10:08:44] Don't hesitate to ask if you have questions [13:23:05] is there any way to delete a record of an IP editing a wiki page completely? [13:23:23] do I have to go in the sqldb? [13:23:40] Rewriting history isn't a great idea. [13:23:54] internetman, revision deletion [13:24:02] Which is really revision suppression. [13:24:12] There will still be a partially visible record of an action. [13:24:13] depends on whether you allow admins to see it or no [13:24:34] right, it only hides it from the web interface of unprivileged users [13:24:39] Right, but even at its highest level, revision suppression leaves the entry there. [13:24:49] I think internetman was asking about something equivalent to Oversight. [13:25:05] Oversight keeps a record [13:25:16] But it removes the entry from the page history. [13:25:24] it behaves more like page deletion in that it shifts the record to another table all together [13:25:25] Instead of just suppressing the entry's metadata. [13:25:28] ah, as long as underprivileged users cannot view it, its fine for this case [13:25:28] Right. [13:25:33] !revdelete [13:25:34] RevisionDelete can change the visibility of revisions and log entries. See for more information. [13:26:50] cheers poeple! [13:28:15] Oversight's record is a huge pain in the ass to migrate to revision deletion as well [13:28:29] I really need to finish that migration on the english wikipedia at some point :/ [13:28:51] and then we can finally be rid of it [13:33:55] doesnt seem like i have the revisiondeletion feature enabled, and cant find anything about it in LocalSettings.php ? [13:36:25] internetman, https://www.mediawiki.org/wiki/Help:RevisionDelete [13:39:05] Krenair: isnt the group revisiondeletion supposed to show in Special:UserRights ? [13:39:31] no [13:46:34] Krenair: do you know how i can add myself or check if im there? [13:47:10] It doesn't exist [13:47:20] There is no revisiondeletion group unless you manually create one by editing the config [13:47:35] Instead you should assign the revisiondeletion rights to the sysop group which you're presumably already in [13:47:36] lol [13:47:37] wait [13:49:20] Krenair: strange it doesnt say on the revisiondeletion page how to do that? [13:49:31] thought i had figured it out, but no [13:51:11] internetman, https://www.mediawiki.org/wiki/Manual:RevisionDelete#Enabling [13:51:18] we should probably move that section [13:51:39] Krenair: ah, cheers :) [13:51:51] put it in the help page instead of the manual [13:52:23] Krenair: yeah or just a link there at the top of the help [13:56:16] Krenair: working fine now thanks alot [13:56:38] yw [14:01:31] Since when we're using &type=revision ? [14:01:44] I almost preferred the uberverbose &action=historysubmit [14:02:00] I think it's related to some of the changetags changes? probably? [14:02:27] that's the first place I'd look anyway [14:10:27] hello, I want to insert a button to my wiki page [14:10:30] how can I do that ? [14:10:51] hej, I converted the custom skin I am using on my page to the new style (no autodiscovery), but I have one little issue left, I need the skin path in the main.css (http://fpaste.org/218994/92138414/) - is there a better way? [14:10:58] chaasof, a button that does what? [14:13:00] to redirect to an other page [14:26:56] Krenair: [14:27:04] Where do we go about username unification/hijacks? I've always been 'hacker' on Wikipedia since the early days, and now I log in and it tells me I'm 'Hacker~enwiki', so I request a rename back to my original account, and it tells me 'hacker' is already taken. [14:27:17] chaasof, ... so you press a button and it just takes you to another page? [14:27:28] to be honest you could probably achieve that with a link and some styling [14:28:06] setuid, another user got that global username on wikimedia sites [14:28:16] Someone from... itwiki [14:28:19] Krenair, But how is that possible? [14:28:29] Mine preceded theirs by YEARS, maybe even a decade [14:28:36] That's not the selection criteria. [14:28:48] What is the selection criteria? First in gets it? [14:28:54] No that'd be stupid [14:29:09] The current implementation is stupid as well. [14:29:22] Did you read https://meta.wikimedia.org/wiki/Single_User_Login_finalisation_announcement ? [14:30:34] So nobody has 'hacker' then, they have Hacker~itwiki and I have Hacker~enwiki? [14:30:52] But why does it tell me that 'hacker' is unavailable, when I request a unification renaem? [14:31:18] no [14:31:23] the itwiki user has hacker [14:31:23] https://meta.wikimedia.org/wiki/Special:CentralAuth/Hacker [14:32:03] Again, the criteria makes no sense [14:32:18] Do you know the criteria now? [14:32:20] why do you deserve the name more than them? [14:32:37] "Your email address was confirmed on 31 May 2007 at 14:29." [14:33:03] How is this a #mediawiki conversation, guys [14:33:03] I don't "deserve" it more, I HAD that name. Now that name was taken from me, and given to them. Why? [14:33:07] That's what I want to know. [14:33:18] marktraceur, True, I apologize. Where should I go? [14:33:31] I have noooo idea but this doesn't sound like a software discussion [14:33:40] Software makes it possible. [14:33:42] #wikimedia-meta maybe? [14:33:44] (TM) [14:33:44] It's a policy/governance discussion, mostly [14:33:57] Or maybe just talk about it on-wiki [14:36:52] jackmcbarn, haha [14:36:56] that's an invite-only channel [14:37:09] setuid, marktraceur is right that this is not a MediaWiki discussion [14:37:09] it's not used [14:37:14] oh, i didn't notice it was a forward channel [14:37:15] and so is off-topic for this channel [14:37:19] it's supposed to fwd to #wikimedia [15:13:01] hi, i need to load the library for jquery.ui.widget for my mediawiki extension, but i'm not able to include the library. Does anyone know how this can be done? I already tried to load wgResourceModules['ext.MYEXT'] = array( 'scripts' => array('jquery.ui.widget')); but it doesn't work. [15:15:19] and i also tried the javascript equivalent mw.load.load('jquery.ui.widget'); [15:15:32] lukas007: I think jquery.ui.widget is in core, so you don't need to add it to your scripts. [15:15:45] lukas007: It's mw.loader.load( 'jquery.ui.widget' ) probably [15:16:25] lukas007: Can you give us a pastebin of your code? [15:17:46] lukas007: Unless you absolutely need privacy, please use the channel. [15:19:37] ok this is the part where i load all my scripts: http://pastebin.com/MAvWKZm2 [15:20:17] OK. [15:20:33] lukas007: "jquery.ui.widget" is a module, not a file, so move it to "dependencies" instead of "scripts" [15:21:08] ah ok tanks, i will try that [15:39:58] worked well, thank you :) [16:11:47] hello [16:11:50] everyone [16:12:11] anyone there ???? [16:13:00] hello people [16:13:37] Yes? [16:14:51] hi! When a page on my wiki is out of date, I'd like to put a banner that tells people where to go. I want to keep the old page for reference/not breaking links. Is there an extension that makes this easy, please? [16:15:14] generally you just stick a big template at the top [16:15:25] copy/paste? [16:15:27] no [16:15:30] an actual template [16:15:37] most wikis have an {{outdated|blah blah blah}} of some sort [16:17:29] ahaaaa... http://www.mediawiki.org/wiki/Help:Templates i am begining to grok it. thank you! [16:18:02] Hello Krenair can you please suggest me what to do with following > [16:18:02] I have mediawiki installed on one site that I have SSH access to [16:18:22] I want to migrate that to another domain and also update mediawiki and all plugins [16:18:42] Please note that I have no admin access to mediawiki . Krenair [16:19:05] Krenair - how can i list templates that might already be in my installation? [16:21:13] i-make-robots, look at all the Template namespace pages [16:21:43] vivek__, you might need to change a couple of config variables but it should all be fine unless you also move to a different server [16:22:12] I'm sorry, "the Template namespace pages"? I don't understand. [16:23:06] found it [16:23:29] https://www.mediawiki.org/wiki/Help:Templates [16:23:55] * ensonic tries again [16:23:59] thank you! [16:24:00] I converted the custom skin I am using on my page to the new style (no autodiscovery), but I have one little issue left, I need the skin path in the main.css (http://fpaste.org/218994/92138414/) - is there a better way? [16:24:06] Kester: I also want to move to a new server [16:24:32] Krenair: I want to move to a new server [16:24:49] somehow the monobook theme does not need to do it, but I can't figure where the difference is [16:24:52] well that's a whole different project :) [16:24:53] Krenair: Until now I have backed up database and imported it on new server [16:25:17] okay, does it still work? [16:25:37] Krenair: Installing a new mediawiki and using that old database will do ? [16:25:45] Krenair: is it same like wordpress ? [16:26:34] vivek__, why would you install a new one? [16:26:38] aren't you migrating an existing one? [16:26:49] I don't know anything about Wordpress. [16:26:57] And from the sounds of things I don't want to. [16:27:07] Krenair: yes but that one is using older version [16:27:25] Okay, so you need to update. [16:27:31] Krenair: so I want to 1. Migrate it to new server with new domain 2. Update it to current version ... [16:27:40] Have you done step 1 yet? [16:27:46] Does it still work? [16:27:50] Krenair: also update all the plugins [16:28:04] Krenair: Step 1 , backing database ? [16:28:06] no [16:28:09] Krenair: so I want to 1. Migrate it to new server with new domain 2. Update it to current version ... [16:28:10] this step 1 [16:28:16] migrating to new server [16:28:35] Krenair: no. should I move all the files as it is ?? [16:28:49] Krenair: I wonder how will i be able to change the domain ? [16:29:12] There's a few MW config variables you'll need to change. [16:29:16] Possibly. [16:29:26] Krenair: in localsettings.php ? [16:29:44] Actually I'm pretty sure you'll need to change $wgServer if it's on a new domain [16:30:03] maybe $wgPasswordSender [16:30:09] maybe $wgEmergancyContact [16:30:32] And various extension options, I don't know what you have configured. [16:30:51] Krenair: $wgServer is located where ? [16:31:12] All of your config settings are probably going to be in LocalSettings.php, but seriously I can't read your mind. [16:32:01] At Wikimedia we have them in a file called InitialiseSettings.php [16:32:04] Krenair: sorry but I am new to mediawiki .. isn't it same for all ? [16:32:10] Not necessarily. [16:32:35] In the default config it's all in one file [16:54:01] interesting, when I add @embed to my main.css, then the images are resolved [17:57:36] I just installed my first gadget (searchFocus from Wikipedia). [17:57:42] In Yoran's book, to activate the gadget it says to go to the Preferences page and the Gadgets tab, but I don't see a Gadgets tab [17:57:55] Does that mean the installation wasn't successful? [18:00:33] Cory_1975: did you install the Gadgets extension? [18:01:15] wmat: I think it's bundled with my version (1.24.2). I see it in the extensions directory [18:01:32] is it enabled in LocalSettings? [18:01:41] check for it in Special:Version [18:01:51] Ah, maybe not. Yes, I'll check... [18:02:59] No, it's not in special:version [18:04:15] mediawiki comes with some extensions, but they are not enabled by default [18:04:32] RobotsOnDrugs: good to know [18:05:03] Is it $wgGadgets = true; [18:05:11] https://www.mediawiki.org/wiki/Extension:Gadgets [18:05:41] Got it. Thanks guys. [18:20:22] e [18:20:25] hi [18:49:09] hello everyone [18:49:38] I have migrated mediawiki from one server to another [18:49:45] but the problem is that image files are not siaplaying [18:49:52] displaying [18:50:07] can you please suggest me how do i fix it ? [19:21:01] wait around long enough to get an answer perhaps [20:06:37] hi, folks - i'm from Fedora, and i've been running into some odd issues with our mediawiki install lately. it seems like sometimes, after i edit or move a page, the response from the server is as usual but with the page URL added to it a bunch of times. [20:06:52] so when I do it in a browser, I see something like: https://www.happyassassin.net/temp/wikifail.png [20:07:27] and when I do it with mwclient, I get a traceback ending in "raise ValueError('Could not decode JSON: %s' % res)" because the json has the page URL appended a bunch of times [20:07:54] what version of MediaWiki are you on, are you running any extensions, and can you pastebin your LocalSettings.php (but redact things like passwords)? [20:07:57] e.g. http://fpaste.org/219148/14309428/ [20:08:08] jackmcbarn: i'm not the mediawiki admin, but i can ask one to step in [20:08:23] jackmcbarn: https://fedoraproject.org/wiki/Special:Version [20:09:18] my first hunch is that https://www.mediawiki.org/wiki/Extension:HTTP302Found is at fault [20:10:37] * threebean waves "hello" [20:10:45] jackmcbarn: thanks - threebean is one of the wiki admins [20:10:53] hi threebean [20:10:56] and is trying to help figure this one out for me, because he's awesome [20:11:01] have either of you noticed any sort of pattern for when it misbehaves? [20:11:25] no obvious pattern yet [20:11:31] we have mediawiki 1.19.24 [20:12:29] here's our LocalSettings file https://infrastructure.fedoraproject.org/cgit/ansible.git/tree/roles/mediawiki/templates/LocalSettings.php.fp.j2 [20:13:23] and we have a couple extensions. An auth plugin for our account system. A message bus plugin that triggers on article edits. [20:13:33] although I can't imagine how those would be related. [20:13:51] can you run "grep -R URL:" in your extensions folder? [20:15:42] also, i see require_once "$IP/extensions/fedmsg-emit.php"; but i don't see anything in Special:Version that corresponds with it. what is it? [20:16:15] a number of hits for that grep http://paste.fedoraproject.org/219155/94335314 [20:16:57] jackmcbarn: that's our message bus plugin. the source is here -> https://infrastructure.fedoraproject.org/cgit/ansible.git/tree/roles/mediawiki/files/fedmsg-emit.php [20:17:17] interwiki-url-label looks interesting [20:18:41] do you have a test instance of this wiki anywhere? [20:19:01] yes. https://stg.fedoraproject.org/wiki [20:22:47] adamw: oo.. I haven't been able to get it to fail on our staging wiki yet. [20:22:54] jackmcbarn: you can mess around with https://fedoraproject.org/wiki/User:Adamwill/Test_page2 as well, i don't care. [20:23:07] threebean: that kind of messes up how i planned to test this then [20:23:09] (you'd need a fedora account to do it though i guess...) [20:23:18] threebean: aren't they supposed to be in sync atm? [20:23:39] adamw: well, that's the idea. :) but now we can look for differences. [20:24:00] i bet you're just not trying hard enough to break it! [20:24:06] here, let me try. and if that fails i'll get kparal. [20:25:17] heh, ok. :) I've got to run for now to pick up the kids. will be back in a bit. [20:26:10] thanks...' [20:29:00] adamw: if you don't manage to break it in staging, then just start looking for differences between the two environments. if you do manage to break it in staging, then i'd say start disabling extensions in staging until you're no longer able to break it [20:29:19] yeah, i'm trying to break it atm [20:29:49] and you haven't hacked the core of mediawiki, have you? [20:30:32] i don't believe we have, no. [20:33:10] (i can't find the exact package the server is running, but i can't find any scary patches in the fedora package) [20:33:30] what package? [20:33:36] are you running mediawiki out of a package? [20:33:36] the mediawiki package [20:33:51] sigh. it's at least like that in both environments though, right? [20:33:56] yes, almost certainly [20:34:08] it's a fedora policy that we use our own packages for stuff. [20:35:09] ah. http://pkgs.fedoraproject.org/cgit/mediawiki119.git/tree/?h=el6 will be it. [20:37:22] adamw, I think the general MediaWiki consensus is that packages tend to change weird things or be outdated [20:37:32] 1.19 is.... [20:37:35] still supported, I think [20:37:53] Krenair: the general distro consensus is that upstream distributions stink, so we can all get together and have a nice bunfight :P [20:38:09] just. [20:38:18] It's EOL this month [20:38:32] Krenair: yes, the team is working on an upgrade. [20:38:57] Krenair: in this case, the people who maintain the instance are the same people maintaining the package; the package more or less exists because of the policy that we use packages for our infra. [20:39:05] so it's kind of academic. [20:40:43] Hi, we're trying to switch over to Flow from LQT, but we're having a bit of a problem with the conversion - the script throws out errors and that's that [20:40:51] PHP Fatal error: Class 'Flow\Import\LiquidThreadsApi\ApiResult' not found in /var/www/wiki/source/master-dev/extensions/Flow/includes/Import/LiquidThreadsApi/Source.php on line 432 [20:41:26] That sounds like it should be using \ApiResult [20:41:37] flow is -> #wikimedia-collaboration [20:41:53] Ah, I'll ask again there, thanks. [21:07:57] <^d> 1.25.0-rc.0 is now available - https://lists.wikimedia.org/pipermail/wikitech-l/2015-May/081695.html [23:00:13] i'm on 1.25, and some of the extensions i'm using have switched their extension.php files to the new json format. is the old requireonce method of inclusion still supposed to work? [23:00:58] cause it doesnt seem to be working for me [23:10:11] Is it possible to just make one particular page of my wiki public writable? [23:11:30] Also, it would be great if users could spawn new pages from that page which would also inherit the same permission. Does mediawiki allow that? [23:12:17] I had used this extension for something similar a long time ago: https://www.mediawiki.org/wiki/Extension:EditSubpages