[01:41:35] Is it not possible to patrol edits that are more than x number of days old? [01:41:48] Seem to be running into unpatrolled edits that I can't patrol at one wiki [01:51:23] sigh spammers (i.e. mitsubishievo8) trying to convert people [01:58:22] lol I got that too [01:59:20] same [04:22:24] Just noticed how many inactive sysops there are on MediaWiki.org. Some haven't even made an action in over 9 years. Should I maybe put something on Project:Requests to clean some of them up? [04:23:17] georgebarnick: Would it solve any problem? [04:24:33] Not any immediate issue. Only thing I could think of is some newbie going to them for support since they're labeled as an admin and not realizing how inactive they are. Not likely, of course. It's not like them having the rights but being inactive is causing any problem, but it's doing no good either. [04:25:10] Maybe we should try to get them active again instead. :-) [04:27:43] Perhaps send out a notice to sysops who haven't done anything in x number of months/years saying "Hey, we want you to be active. If you don't have any need to be active or use sysop rights anymore, we'll clean the list of sysops up and take you off it until you have a need for the rights again" [04:27:44] ? [04:28:19] Maybe. [04:48:54] * Skizzerz is ambivalent, last I checked we don't advertise "sysop talk pages" as an avenue of support (unlike mailing lists, IRC, the support desk, etc.), so it seems unlikely that newbies would go there for support first [04:49:46] so I don't see any harm keeping them sysopped, but I don't see much harm in pruning the list either since if they'd want it reinstated they likely won't have any issues getting it [08:08:36] I'm trying to make a simple api call here from my extension, but I get an error 'mw.Api' is not a constructor [08:08:37] https://dpaste.de/e1x1 [08:09:13] console says "TypeError: mw.Api is not a constructor" [08:10:06] what could be missing here? [08:12:59] codezee: Have you marked your module as depending on the Api module? [08:14:11] bawolff: you mean as 'dependencies' => array('mediawiki.Api'), in Resources.php [08:14:21] yeah [08:14:42] bawolff: yes I did, and still I get the same error [08:15:21] hmm, I think there's a syntax error in your code [08:15:26] codezee: well for one it should be all lowercase: 'mediawiki.api' [08:15:44] shouldn't the last line be # } )( mediaWiki, jQuery ); not # }( mediaWiki, jQuery ) ); [08:15:51] codezee: no semicolon after src = 'File:abcd.jpg' ? [08:17:08] hmm, that's confusing. mediawiki.api is a lowercase module name, but mediawiki.Title is upper case [08:17:17] legoktm: sorry, there is, got dropped in the edit, and still I get the same error [08:18:04] also I thought that since mediawiki Api module is part of mediawiki which automatically gets loaded, does it need an explicit dependency? [08:18:40] I think it does need to be explicit. Not all things in the mediawiki object are loaded automatically [08:18:55] codezee: usually something will have already loaded it, but you should always be explicit [08:19:32] codezee: that code sample works in my browser just fine...can you also pastebin your php setup code? [08:22:04] legoktm: here's the php setup of Resources.php loading the module https://dpaste.de/vnSu [08:22:49] er, what's the file layout? [08:23:00] is it in resources/ext.WikidataPageBanner.loadImage/ext.WikidataPageBanner.loadImage.js ? [08:23:41] yes [08:23:55] ok, and where is Resources.php? is it in the 'resources' directory? [08:24:14] yes [08:24:43] ok, that's confusing [08:25:28] codezee: what happens if you run the code snippet in your browsers console on a random wiki page? [08:25:53] let you know in a moment [08:29:03] legoktm: it seems to work, that means there's some problem with loading of module [08:29:49] codezee: ok, can you pastebin all your PHP code or upload it as a gerrit patch? [08:31:00] legoktm: should I upload the php of the entire extension or just Resources.php [08:31:08] everything [08:35:54] legoktm: how can I upload the entire extension as a gerrit patch? bec. it'll only show what I modify? [08:36:14] codezee: just upload your changes that aren't working as a patch, and I can look at the rest of the repo already [08:40:30] legoktm: changes here https://gerrit.wikimedia.org/r/#/c/211676/ [08:40:43] repo here https://gerrit.wikimedia.org/r/mediawiki/extensions/WikidataPageBanner [08:42:44] codezee: why are you using addModuleScripts? [08:44:22] legoktm: should that be changed to addModules() ? I used it here because I'm only adding a script [08:44:29] yes [08:47:05] legoktm: that was the problem, thanks! [08:47:22] yay [08:47:33] :) [09:31:56] guys [09:32:01] whats the best method to search wiki [09:32:07] query search? [09:33:50] well this channel doesnt seem very active [09:34:05] Shibe: That depends on what you're looking [09:34:07] for [09:34:18] bawolff: just want to search a wiki and get results [09:34:24] from all namespaces like User: [09:34:44] Then use the search button :) [09:34:57] Advanced search allows namespace selection [09:35:16] bawolff: talking about api [09:35:40] Well then use the api equivalent (I think its list=search) [09:35:46] ok [09:35:51] what about searching all namespaces [09:37:39] Does https://en.wikipedia.org/w/api.php?action=help&modules=query%2Bsearch answer your questions [09:38:04] ok [09:49:03] bawolff: how would you make it show results that are in srnamespace 0 first? [09:49:28] you can make two separate queries [09:49:40] bawolff: was hoping to put it all into 1 query [10:42:24] hello, anyone can help me to solve this error : Error creating thumbnail: Error code: -1 [10:42:26] ? [10:46:31] Hello [10:48:20] I am trying to get different namespaces to be able to upload files into a folder with the same name, so uploads will be organized better [10:48:30] Has anyone, any ideas? [10:49:54] All files uploaded currently go to the images directory and are organised by an MD5 hash I believe [11:35:09] hello all [11:35:17] please see this wiki hdlwiki.com [11:35:24] it has option downlaod as pdf [11:35:34] i want to have this option in my wiki, what should i do? [11:39:23] Hi sasan. [11:39:38] hi [11:39:41] could you help? [11:39:59] You can see the list of extensions installed by a specific wiki at [[Special:Version]]. For example, here: http://hdlwiki.com/index.php?title=Special:Version [11:40:17] (oh, their special pages aren't public, annoying that) [11:41:13] pdf handler? [11:41:47] More likely to be Collection [11:41:49] They could use https://www.mediawiki.org/wiki/Extension:Collection or https://www.mediawiki.org/wiki/Extension:Pdf_Book [11:42:08] Nemo_bis: would you know which extension uses [[Special:Book]] to generate files? [11:43:29] oh oh [11:43:31] Collection qualifies :) [11:44:00] i think it is pdf handler [11:44:01] yes? [11:44:15] sasan: there is no mention of "Collection" in their Special:Version page? [11:44:46] just this [11:44:50] one [11:45:24] License Create books PediaPress GmbH, Siebrand Mazeland and Marcin Cieślak [11:45:33] it is what you mean? [11:45:35] Yes. [11:45:59] This is https://www.mediawiki.org/wiki/Extension:Collection [11:46:07] so how could i have it in my wiki? [11:48:25] really i do not know where i should start? [11:48:34] ? [11:48:36] which extension i should downlaod [11:55:13] hello, anyone can help me to solve this error : Error creating thumbnail: Error code: -1 ? [11:58:14] hello, i installed and then add that command to my php. but it show me error [11:58:16] why? [13:09:47] sasan, if you get an error, paste the exact error. [13:34:49] it is in persian [13:35:36] در زمان رندر کتاب خطایی رخ داد. [13:35:38] it is error [13:35:40] i see [13:36:13] sasan, then try ?uselang=en or ?uselang=qqx URL parameters [13:40:11] An error occurred during rendering of the book. [14:15:14] could you help? [14:16:19] not without knowing what the steps to reproduce are and some info like versions [14:16:29] plus if I know an answer, I paste an answer. [14:22:37] please paste [14:22:45] ? [14:24:12] sasan, please read again what I wrote. [14:24:50] Birgit_WMDE: around ? [14:38:19] i did not get your point [14:41:53] Hello, I'm the operations associate for AIRmedia. Today we noticed that the information in our Wikipedia page isn't showing up (though it still exists in the backend). The page was last edited by us in late April. [14:42:09] Here is a link to our wiki: http://airmedia.org/wiki/mediawiki/index.php/Radio/Media_Fellowships_and_Grants_Directory [14:42:26] and here is a link to the backend: http://airmedia.org/wiki/mediawiki/index.php?title=Radio/Media_Awards_Directory&action=edit [14:45:38] parsing is broken [14:45:54] What does that mean? [14:46:36] or, rather, how can I fix it? [14:48:28] 1.18 on PHP 5.6.6 [14:48:43] AIRmedia: it means that no HTML is being generated out of wikitext [14:49:33] I saw the same issue on one other wiki but couldn't figure out the reason; upgrading your MediaWiki wouldn't harm, as a start [14:49:41] https://www.mediawiki.org/wiki/Manual:Upgrading [14:51:06] or you can try to find out the underlying reason: https://www.mediawiki.org/wiki/Manual:How_to_debug [14:56:19] Thanks! [15:16:30] AIRmedia: let me know what's the conclusion, I want to tell the other user with the same issue :) [15:20:35] Will do! [15:34:42] My mediawiki isn't showing the passwordreset page. Is there a setting I need to find to enable it? [16:04:53] are there any independent ways to send latest edits to Twitter apart from MW extensions like TweetANew? [16:09:30] independent? [16:25:07] for class="wikitable sortable" there is a sortable arrow icon that i want to change from black to white to fit my website color scheme. Where do i upload the altered file to? [16:34:42] legoktm: i mean not as an extension. a completely autonomous app running in linux commandline [16:35:25] gleki: you could probably write a script of some kind to use the API and then submit them to twitter, I don't know if one already exists [16:53:33] yes, that's my question and my surprise. [17:03:56] Is there a reason why MW (still) uses globals to configure extensions? Or is there a more modern way to do so (assuming the extension supports it)? I ask because I am currently developing an extension... [17:13:44] Ravage84: Use https://www.mediawiki.org/wiki/Manual:Configuration_for_developers in your code, but users will have to use globals to modify any values for now. There is some effort (and much desire) for a new system, but it's not a top priority currently as the foundation isn't throwing paid time at it (afaik) [17:21:12] Lcawte thanks for the pointer. Do you see any downsides in using setters in LocalSettings.php which set a protected property of the extention class? [17:26:54] Ravage84: yes, LocalSettings.php should *just* be configuration. If you start putting code in it, it'll make it harder to transition to our future configuration database system. [17:29:42] legoktm: well then, even though I don't think putting the base configuration of an app into the db is a good thing ;-) [17:31:12] Ravage84: sure. But mixing code and configuration in general isn't a good idea. [17:31:29] putting all extension related config settings into a global as array, should be OK, isn't it? [17:31:54] it depends on how complex your settings are [17:32:12] having 2d (or more!) arrays isn't very user friendly [17:33:28] Ravage84: also, there's a new extension loading system in 1.25 (https://www.mediawiki.org/wiki/Extension_registration) so extensions typically won't even be loaded when LocalSettings.php is run [17:33:46] you are talking about comoser? [17:33:49] no [17:33:53] did you click the link? [18:20:52] hexmode: My immediate reaction to your announcements about the stakeholder meeting was, of course, to find my favourite meme pictures: http://media.marktraceur.info/mgoblin_media/media_entries/29/002-captioned.jpg [20:47:29] I need to find a list of all the licensing details for corporate legal review prior to approval to implement. [20:48:00] can you help direct us to a good resource for this info? [20:48:51] ... what? [20:49:00] you want to know how mediawiki is licensed? [20:49:12] !license [20:49:12] There is no such key, you probably want to try: !credit, !import, [20:49:51] https://github.com/wikimedia/mediawiki/blob/master/COPYING [20:50:22] correct. we are trying to implement something for internal use. I need to find a list of all the licensing details for corporate legal review prior to approval to implement. can anyone help direct us to a good resource for this info? [20:50:53] It will depend on what extensions you're going to use [20:51:05] But there shouldn't be any restrictions for you to just use mw internally [20:51:10] none. will be vanilla out of the box. [20:51:29] doesn't the mediawiki tarball come with some extensions? [20:51:29] you'll probably soon find you need an extension or 5 :) [20:51:33] agree. just need something to satisfy legal concerns. [20:51:41] what are their concerns? [20:52:25] i'm getting an error when trying to delete a page [20:52:27] Argument 1 passed to Action::getActionName() must implement interface IContextSource, none given [20:52:31] legal always wants to be risk averse. php freaks out some people. [20:56:09] anyone know of a good resource for all the licensing details for mediawiki? [20:56:09] It's GPL 2, so just give them what Krenair linked above [20:56:09] but again, you're going to want extensions [20:56:09] i'm on REL1_25, and tried disabling all extensions [20:56:10] In a corporate environment at least the LDAP authentication one, if nothing else. [20:58:03] Odd session issue. Some of my users have been getting the Session data loss error message. The only way I've been able to recreate it is shortly after logging in. [20:58:41] After poking around in memcached, I found that occasionally the memcached session isn't being properly setup correctly. It exists when I try to get it from memcached, but it's empty. [20:59:08] Does anyone have any idea what this might be? It seems to only be happening on the first page after login. [20:59:18] looks like it's related to T45591 [20:59:39] when i try to delete, it throws an error in the function public function addHelpLink [21:01:50] not planning to use LDAP. leaving the extensions out of it for now. any ideas where i can get detailed licensing info? [21:02:16] SolutionShark: That link that Krenair gave you before: https://github.com/wikimedia/mediawiki/blob/master/COPYING [21:02:28] wtf seriously [21:02:44] [[Special:Version]]? [21:02:47] @link [21:02:47] https://www.mediawiki.org/wiki/Special:Version [21:02:51] stop asking the same question and ignoring the answer, you're unlikely to get a different answer [21:03:23] did not see it before. thanks for the link. [21:13:29] Nemo_bis: this appears to be related to your change? [21:15:48] what could be broken in my build that would cause a delete action to error out when trying to getActionName [21:17:53] UserProd: I believe a fix for that was merged [21:18:09] * UserProd checks [21:19:00] UserProd: https://gerrit.wikimedia.org/r/#/c/211886/1 [21:22:07] ah thanks, lemme try implementing that [21:23:21] perfect, that fixed it [21:23:23] thanks legoktm [21:40:23] Nemo_bis: ooh, did you get vagrant lxc to ever work on fedora? I thought it required using debian/ubuntu [21:44:16] hey! [21:44:39] hi [21:44:45] I'm running MediaWiki on a DigitalOcean 512 MB of RAM VPS, and it runs really-really slow (i.e. 15 seconds for a page to load). :-( [21:44:52] Any idea what I could do about this? [21:45:00] hi, legoktm! [21:45:12] !fast [21:45:12] [21:45:19] coae: have you looked at those links ^? [21:46:00] Hmm [21:46:02] Nope. :-P [21:46:10] I tried to set up the cache, though [21:46:12] also https://www.mediawiki.org/wiki/Manual:Performance_tuning [21:46:23] The thing is, the server runs decently at start up [21:46:29] But it seems to build up with use [21:46:40] At times Lua extensions just carsh [21:46:48] Because it doesn't have enough memory left [21:46:56] It just froze yesterday [21:47:01] I couldn't connect to it through SSH [21:47:04] Had to reset it [21:55:11] legoktm: I think vagrant itself would work with a clean ruby install [21:55:28] looks like the fedora packagers kept themselves busy [21:55:53] But I didn't get mediawiki-vagrant running [22:07:31] Nemo_bis: dnf install vagrant worked fine for it as a VM, but I haven't tried using it as a container yet [22:08:11] coae: what processes are running? are you using mysql? [22:11:56] I was wondering, since I was told this was ill-advised in case of caching, how does mobile wikipedia manage to have "Welcome, $user!"? [22:12:05] Is it just a feature of MobileFrontend? [22:12:44] if you're logged in then you'll bypass some caching [22:13:29] legoktm: hmm, I did most of the things in there; performance is a bit better. [22:13:35] So, does the presence of that indicate that it's not cached at all for logged in users? I guess it's better to skip it still then [22:13:37] ~ 20-30s for a larger page to load [22:13:44] ~ 15s for the usual ones [22:14:09] coae: what is your main cache set to? are you actually running out of memory? [22:14:24] legoktm: not for the moment, anymore. [22:14:57] 512 might be small if mysql, memcached, apache, and stuff are fighting for resources [22:14:58] I am using CACHE_ACCEL ATM [22:15:08] how about sqlite? [22:15:12] is that any faster? [22:15:30] it'll probably use less memory [22:15:48] good [22:15:50] hmm [22:16:03] now, the thing is: I need support for multiple languages on the wiki [22:16:12] so I was thinking of setting up a mediawiki farm [22:16:26] will that ask for considerably more resources? [22:16:45] it depends on how it's implemented [22:17:08] hmm [22:17:14] but, you can have multiple languages on one wiki [22:17:15] I could only find the MediaWiki page [22:17:21] have you looked at the translate extension? [22:17:28] that says that the article is outdated or such [22:17:34] yes [22:17:37] I have it installed [22:17:39] it's just that [22:17:39] does that not meet your needs? [22:17:47] I need to import pages from Wikipedia [22:17:58] while that works for say, English [22:18:06] if I were to do the same for multiple languages [22:18:10] templates collide [22:18:15] I tried to add a prefix to templates [22:18:29] but then, I'd have to add that prefix in the source code of the given templates too [22:18:36] ah [22:18:49] and then, I don't know if a "{{" is the beginning of a template, a function hook, lua stuff etc. [22:18:55] templates just went crashing :-P [22:19:32] do you have any idea how that could be implemented within a single wiki ? [22:19:56] I was thinking of adding a namespace alias for templates (i.e. "Modele:" for French) [22:20:09] but it seems to me that if {{french-template-name}} is called [22:20:29] MediaWiki will just look for Template:french-template-name [22:20:37] So it's kind of useless [22:21:45] coae: how many languages would your wiki hold? [22:21:55] Arabic, Aramaic, French and English. [22:22:40] Oh, that's not so bad. Yes, I would make a wiki farm. [22:22:57] :-) [22:23:07] I could extend to 1 GB of RAM I guess. [22:23:09] That way you can also have the interface language match the content language in each case, if that would be useful. [22:23:22] It won't take more memory, I don't think. [22:23:54] Yaron, yea. I thought UniversalLanguageSelector took the appropriate language edition if used together with Extension:Translate [22:24:01] It doesn't, though. :-P [22:24:24] Also, there's no support for UniversalLanguageSelector from Extension:MobileFrontend [22:24:29] If you're just importing content from Wikipedia, Translate wouldn't be useful anyway. [22:24:45] Well, that'd be just a start. [22:24:53] I'd need some 20-50 pages from Wikipedia. [22:25:57] Okay - I have no idea what your wiki will look like, but given that it will hold WP-like articles, there's a good chance that Translate wouldn't be that useful. [22:26:19] Hmm, what is a resource documenting the creation of a wiki farm? The header from http://www.mediawiki.org/wiki/Manual:Wiki_family reads "Some or all of the information on this page is inconsistent, irrelevant or confusing." [22:27:11] I always recommend #3, "Drupal-style sites". [22:28:09] ....though if you're going to have images shared across all the languages, that might not be the best one. [22:28:19] hmm [22:28:24] I could have them on Commons [22:28:26] or just run bots [22:28:28] to sync them [22:28:30] heh [22:28:45] Yaron: can I blindly follow the instructions there or are they out dated or such? [22:29:40] For #3? I haven't looked at it in a while, but it's pretty simple, so I'd guess everything still works. [22:29:53] Okay. [22:30:05] Would having shared images be complicated to obtain with #3? [22:30:30] i.e. set up a media-pool as described in #4 [22:38:19] coae: I don't know how to do that either way, so I wouldn't know... [23:07:04] Yaron: does interwiki work for #3? [23:58:00] Hey guys. Does mediawiki have an official debian/ubuntu repo?