[06:16:04] hey, guys! I am new here [08:29:22] Hello prpr :) [08:30:35] prpr: channels are a bit quiet at this time, except #mediawiki-i18n (you can join that too if you want to see some action) [08:30:48] hello [10:21:21] legoktm: I have uploaded a new patch for TextExtractor https://gerrit.wikimedia.org/r/#/c/258065/ [12:23:46] Hello all. I am developing a project with Mediawiki. A huge thank you for the entire team before I proceed. I have some generic questions only. I looked at wikia's codes and it uses mediawiki too. But it's quite different from the main mediawiki. As I am a beginner to mediawiki development, I am confused which one would do good for my project. My project is to create an encyclopedia with simple scientific facts and explanation for school level [12:23:47] kids. It will be a 'for-profit' one. So is it ethical to use MediaWiki for my project? [12:24:41] Can I theme my wiki easily like a wordpress theme? [12:25:08] TridenRake: not as easily, but it's possible. [12:25:11] !skinning [12:25:11] From scratch: https://www.mediawiki.org/wiki/Manual:Skinning/Tutorial / Based on another skin: http://blog.redwerks.org/2012/02/28/mediawiki-subskin-tutorial/ / See also !skins for general help and list of available skins [12:25:18] !skins [12:25:18] General skin help: http://www.mediawiki.org/wiki/Manual:Skins / List of available skins: https://www.mediawiki.org/wiki/Category:All_skins / Creating a new skin: see !skinning [12:25:33] MatmaRex, Thanks. [12:26:02] Could you tell me about MediaWiki >< Wikia versions? Which one should I use? [12:26:22] TridenRake: Wikia's software is a fork of the main MediaWiki. in the past they tried to pull new changes into their version every few years, not sure if they still do. [12:26:26] MediaWiki is a software, wikia is free wiki hosting [12:26:51] petan, I am talking about the forked version of mediawiki of Wikia. [12:27:14] I would go for original mw it has far better support [12:29:23] Okay then. Thanks. I am on a shared hosting. So I dont have a root level access for the server. Can I still update the mediawiki via FTP as mentioned in the documentation? Is there an option in mediawiki to automatically update itself and update the database? Sorry if this sounds dumb. But I'm a mechanical engineer who learned codes and server stuffs via Wordpress. [12:33:20] Anyone? [12:37:17] Hi [12:37:27] I think I've found a glitch I don't understand [12:37:28] User:ShakespeareFan00/Sandbox/Ruffhead [12:37:40] https://en.wikisource.org/wiki/User:ShakespeareFan00/Sandbox/Ruffhead [12:37:52] This should be pulling in a 'transculded section' cross wiki [12:37:53] TridenRake: yeah, you can use ftp. no, mediawiki can't update itself. [12:37:58] and sometimes it does [12:38:29] However this seems to be completly inconsistent, and unpredictable as to when it will work as documentation implies it should [12:38:35] MatmaRex, Thank you. [12:38:48] TridenRake: You shouldn't need root to update mediawiki. Shell should be ok [12:39:06] At worst, you just "re-run" the installer to do the database updates [12:39:10] It would be appreciated if someone here can use a sledgehammer on the underlying code to ensure consistent behaviour [12:39:30] which matches up with ehat the docmentation implied [12:40:31] Reedy, I don't think Hostgator provides SSH on shared servers. Thank you anyway. I will try FTP now. [12:42:34] you can do database updates from the web interface, too. [12:42:36] !upgrading [12:42:36] http://www.mediawiki.org/wiki/Manual:Upgrading [12:43:30] MatmaRex, Yeah. I think I have seen that the first time I installed MW. It took me to an update.php. [12:44:21] Anyone available or is now a bad time? [12:45:35] Available for what? :) [13:08:35] See above [13:08:57] I feel I've found a possible bug in LST as uded on wikisource [13:09:03] *used [13:09:24] In that the sandbox example I made here - https://en.wikisource.org/wiki/User:ShakespeareFan00/Sandbox/Ruffhead doesn't display correctly yet [13:10:59] https://www.mediawiki.org/wiki/How_to_report_a_bug ? :) [13:12:29] I was asking here cause I am not sure if this is a bug in the code, or it's something thats not been documennted properly [13:26:16] ShakespeareFan00: i think that "interwiki transclusion" feature at Wikisource in implemented with JavaScript, right? [13:26:33] Well I havent' blocked it [13:26:38] As far as I know [13:26:47] It would make more sense to do it in LUA [13:26:56] or as a parser function [13:27:00] ShakespeareFan00: when viewing that page, i get "Uncaught TypeError: Cannot read property 'top' of undefined" in the console, coming from https://en.wikisource.org/w/index.php?title=MediaWiki:PageNumbers.js line 288 [13:27:17] Ouch [13:27:25] So something broke.... [13:27:28] nto sure what [13:27:33] *just not sure whhat [13:51:58] MatmaRex: Hmm seems to be rnadom when it will and won't trnasclude [13:52:05] Doing repeated page views [13:56:12] Weirdly 1 out fo 6 transcludes, and others don't... [13:56:15] Cache lag? [14:01:10] hi! [14:01:56] if I want ldap auth on 1.25.3 ... is this possible? [14:04:23] or do I have to downgrade? [14:07:24] Nope, you should be fine [14:07:46] hmmmm ok. [14:07:50] great =) [14:09:05] something's weird though, the conf I used for the ldap ext, 2.0a, doesn't work with 2.0d.. [14:09:55] maybe I just need to fuzz it a little. [14:10:24] I don't think there were any major changes to the extension, but can't be sure [14:11:11] $wgLDAPLowerCaseUsernameScheme was removed between e and f [14:11:20] Latest version of the extesnion is 2.1.0 [14:11:24] oh?? [14:11:39] https://github.com/wikimedia/mediawiki-extensions-LdapAuthentication [14:11:43] awesome [14:11:47] I was looking at https://www.mediawiki.org/wiki/Extension:LDAP_Authentication#Installation [14:11:51] thanks! [14:12:02] https://github.com/wikimedia/mediawiki-extensions-LdapAuthentication/tree/REL1_25 [14:12:09] The version for MW 1.25 is 2.1.0 [14:12:23] So probably want to make sure you're up to date before wasting much time debugging [14:12:53] great! I'm already on 1.25, but some users can't log in [14:13:11] MatmaRex: This is perplexing as all I want it do is work how the documentation CLAIMS it should work without incident [14:13:24] Make sure you update extensions when you update MW core [14:13:41] Reedy: aye [14:14:09] Reedy: thing is though, I thought it worked since me and my closest coworkers can log in without any troubles =) [14:14:29] OK I've spent ewnough time trying to get this transclsuion working... [14:14:45] Shame Proofread page can't actaully cope with a complex layout [14:14:48] :( [14:20:17] Please fix your code [14:20:19] :( [14:29:46] hello Nemo_bis! [14:37:59] Hi, this is Additya. [14:37:59] Hi again. I tried updating mediawiki manually and the extraction created identical files with .php5 extension rather than overwriting the files. What should I do now? [14:39:25] Nemo_bis: I have taken this: https://codein.withgoogle.com/dashboard/task-instances/6118837405614080/ task and I've already done two todos, but I haven't commited them yet. Should I create Phabricator discussion and commit then? Or just commit, review and paste link to Gerrit in GCI comments? [14:41:12] Albert221: make patch and add link [14:44:58] Can I use the 1.23 LocalSettings.pho in 1.26 (current version)? [14:45:05] additya1998, hi! [14:45:11] *LocalSettings.php [14:45:56] TridenRake: yes, but read the upgrade notes [14:45:57] https://www.mediawiki.org/wiki/Manual:Upgrading [14:46:42] Reedy: hm, so I upgraded the extension, and with the configuration I used with 2.0a I now get an error message that says (loosely translated from swedish) "A bug has been encountered" [14:46:49] Hi additya1998 :) Are you sure mIRC is free software? https://en.wikipedia.org/wiki/MIRC says shareware [14:46:59] Reedy: checking the apache access log, it says I get a 500 [14:47:23] mjau^: which extension? you usually need to upgrade both core and extensions to keep compatibility [14:47:36] multiple extensions dropped compatibility with 1.23 already in 1.25 [14:48:42] Nemo_bis: right, ldap auth [14:48:57] !debug [14:48:57] For information on debugging (including viewing errors), see http://www.mediawiki.org/wiki/Manual:How_to_debug . A list of related configuration variables is at https://www.mediawiki.org/wiki/Manual:Configuration_settings#Debug.2Flogging [14:49:04] Nemo_bis: I'm going from 2.0a to 2.1.0 (which should work with 1.25) [14:49:11] great, thanks [14:51:12] Does the current 1.26 version has major changes from the previous ones? Extensions are little incompatible now. Just curious. [14:52:32] Nemo_bis: Am I not allowed to this? [14:56:48] additya1998: the task asks to use free software [14:56:51] as in FLOSS [14:57:05] like HexChat, irssi etc. [14:57:16] TridenRake: there are multiple breaking changes yes [14:58:23] Nemo_bis: okay, thanks, i'll get HexChat [14:58:32] Hello, I'm making a screencast for phabricator, can I mention credits in the end? [14:58:42] Yeah i noticed. The localsettings.php needs some refactoring. At least that is visible. I am not sure about any silent errors so far. If there are anything obvious to be expected please share. :) [14:58:49] Husun: Hi! Thanks! What do you mean by credits? :) [14:58:54] additya1998, Hexchat is awesome. [14:59:05] additya1998: FLOSS clients are in light blue on the table, distinguished by their license, such as GPL [14:59:07] IRSSI stopped supporting windows. [14:59:17] Nemo_bis, ^ [14:59:23] I'd rather drop Windows than irssi, much simpler ;) [14:59:43] Nemo_bis, Sure. For dev I'd do the same. I love gaming here. [15:00:08] "36 students currently working on tasks" omg [15:00:27] andre_ Hey, by credits I mean: "screencast by husun" ? Should I do that? [15:00:31] I don't get it. [15:01:13] Husun: the author is shown on the file description page on Wikimedia Commons already [15:01:31] Husun, such metadata should be part of the File description, not content in a video itself [15:05:22] andre_ ohhh, okay ;) [15:06:40] andre_ thanks! [15:14:58] Nemo_bis: could you help me? I've fixed two "Would be nice to use a Trait here to avoid code duplication" todos but the problem is that PHP is probably too old and doesn't support traits (error: PHP Parse error: syntax error, unexpected T_STRING in includes/api/ApiMessage.php on line 69) What now? [15:15:42] Albert221, which PHP version do you have? [15:16:20] I mean it fails on tests: https://integration.wikimedia.org/ci/job/mediawiki-core-phplint/15390/console in this patchset: https://gerrit.wikimedia.org/r/#/c/258151/ [15:16:48] Albert221, thanks. Is there a related bug report / task to that patch? [15:17:04] this: https://codein.withgoogle.com/dashboard/task-instances/6118837405614080/ [15:17:12] I read the default explanation of why one shudn't use domain.com/my_page and should use domain.com/wiki/my_page. I don't understand it. could anyone explain me this in a better way? Like an ELI5? [15:18:07] Albert221, ah thanks. Context is always good to help understand problems. :) [15:18:24] TridenRake, which "default explanation" do you refer to? Any link? [15:18:47] andre__, https://www.mediawiki.org/wiki/Manual:Wiki_in_site_root_directory [15:19:35] TridenRake, which parts are less comprehensible? [15:20:21] andre__, The answer section of "MediaWiki on dedicated servers with wiki-specific domain (or subdomain) names" section. [15:21:20] Albert221: there is no consensus on whether to use traits, you could update the todo to refer to https://phabricator.wikimedia.org/T118932 [15:21:30] and Traits require PHP 5.4 I think? [15:21:42] If you use them, you need to test on a recent PHP (probably easier on Linux?) [15:22:05] yes, it requires 5.4 [15:22:40] I think we're still supposed to support 5.3 (see https://phabricator.wikimedia.org/T75901 ) though that might change soon, see open discussion in https://phabricator.wikimedia.org/T118932 [15:22:52] as Nemo already pointed out [15:24:29] andre__, shall I use such URLs in my installation? What exactly is the problem/con of using domain.com/my_page? [15:25:06] TridenRake, i cannot help with that part either, sorry [15:25:15] Okay. NP :) [15:36:14] Nemo_bis: so should I just remove these two todos about traits? [15:41:47] Is it possible to assign 'protect this wiki' to the sole person who creates the wiki (and of course to the admins)? Do I need an extension for that? [15:45:12] what does "protect" mean? making everything read-only? not allowing creating new pages or files? [15:45:14] https://www.mediawiki.org/wiki/Manual:User_rights basically [15:46:29] andre__, Yeah exactly. In my case, if a user creates a wiki for his project team, I need him (and me, the admin) to able to make it read-only. sort of like moderators. [15:47:16] I hope my questions are not annoying everyone. I've asked too much, as I am just learning and getting to know PHP and mediawiki now. So apologies if I am actually annoying anyone. :) [15:47:57] Don't worry. We're here to help. :) [15:48:04] TridenRake: no one is annoyed, everyone here is happy to discuss [15:48:52] Thank you guys. I kinda had this feeling that I am asking way too basic questions. Most of you here are pros and honestly I had the mentality that basic/newb questions are annoying. [15:51:03] I'm not pro. I'm just lurking. :D [15:51:18] Ha ha :) [16:13:18] Nemo_bis or anyone: so should I just remove these two todos about traits? [16:15:45] Albert221: see above: you could update the todo to refer to https://phabricator.wikimedia.org/T118932 [16:16:23] Nemo_bis: oh, ok. does this count as done todo? [16:20:33] does anyone know how to recover your password on phabricator? [16:20:59] this is just to write in PhpDoc when it returns null, right? https://doc.wikimedia.org/mediawiki-core/master/php/classArticle.html#a320e5680e927700b59e5453663791d78 [16:22:32] onei: How do you mean? What have you tried, and what happens? [16:23:03] I tried to login into phabricator and it keeps coming up with invalid username and/or password [16:24:37] incorrect rather [16:25:56] hey, can anyone answer me? :/ [16:25:58] scrap that, I was trying to login via ldap rather than mediawiki [16:26:02] and what does "BC cruft" mean [16:30:02] onei, how do you log in? Do you follow https://www.mediawiki.org/wiki/Phabricator/Help#Creating_your_account_and_notifications ? [16:32:07] onei, so you go to https://phabricator.wikimedia.org/ and click the button in the upper right corner. What is the next exact step that you do? [16:32:24] andre__, sorry I figured it out in the end [16:32:34] onei, ah alright. Glad it works for you now! [16:32:54] I was trying to login with an ldap username, forgetting I'd done it via my mw username [16:33:06] shows how long it's been since I logged in ;) [16:33:22] hah. Welcome back then :D [16:42:43] Hi everyone. I'm a researcher trying to do some stats on the 5,028,270 articles of English Wikipedia (https://en.wikipedia.org/wiki/Special:Statistics). I'm using a dump (https://dumps.wikimedia.org/enwiki/20151102/) but it seems to include much more than 5 million articles. Do you know if there is a list of the 5 million articles somewhere so that I can filter the dump? [16:52:27] Hi gbecan. You can get them from a DB query. Do you have access to labs? [16:52:55] Mmmh no. [16:53:46] gbecan: No worries. We have Quarry. Let me write up the quick query for you. [16:54:00] Ok thanks ;) [16:57:26] gbecan: http://quarry.wmflabs.org/query/6380 This should give you the list. It's a large query though and might take a while to run. [16:58:04] Great ! What will be the format of the result? [17:01:55] gbecan: Downloadable as JSON/CSV/Excel etc. [17:02:13] Perfect. Thanks a lot Niharika [17:02:31] gbecan: You're welcome. [17:56:13] Hi there, we are a Canadian company. We are establishing our own official website. We are wondering if we can use some pictures from your website on our own, it is only for introducing our company, no other purpose. [17:57:38] pictures like the world map without borders, Vancouver view [17:58:57] Tendtop: probably yes. it might depend on the particular image. its description page should have the information about what attribution is required, etc. [18:00:03] I could not find such information [18:00:15] For example, for the picture of world map https://commons.wikimedia.org/wiki/File:BlankMap-World-noborders.png [18:00:54] did not see any information about attribution [18:01:09] could you please help me double check it? [18:01:17] it says it's public domain [18:01:25] Could i have some help please. I am trying to migrate $wgFileStore to some other setting. How can i migrate it. The extension in question is confirmaccount. And needs the update as a high priorty since it wont let you accept any user account since it keeps brining up [10-Dec-2015 17:14:19] PHP Warning: failed to mkdir "/accountcreds/p/pa/pal" mode 0777 [Called from wfMkdirParents in /home/paladox1/public_html/includes [18:01:25] /GlobalFunctions.php at line 2573] in /home/paladox1/public_html/includes/debug/MWDebug.php on line 300 [18:01:25] error [18:02:16] Problem code start at https://phabricator.wikimedia.org/diffusion/ECAC/browse/master/ConfirmAccount.config.php;edb7eb311db6b8187185b7ee759d2f0a6b4a7089$84 [18:02:26] ends at https://phabricator.wikimedia.org/diffusion/ECAC/browse/master/ConfirmAccount.config.php;edb7eb311db6b8187185b7ee759d2f0a6b4a7089$98 [21:09:10] Hi i am getting a deprecation warnning User::createNew with param 'newpassword' was deprecated in MediaWiki 1.27 what should i replace it with. it is for confirmaccount. [21:12:02] I also get this deprecation warnning [10-Dec-2015 21:11:49] PHP Deprecated: Use of User::crypt was deprecated in MediaWiki 1.24. [Called from AccountConfirmSubmission::acceptRequest in /home/paladox1/public_html/extensions/ConfirmAccount/business/AccountConfirmSubmission.php at line 179] in /home/paladox1/public_html/includes/debug/MWDebug.php on line 300 [21:14:06] paladox: Try reading the documentation? [21:14:11] User::crypt [21:14:12] * @deprecated since 1.24, use Password class [21:14:43] Oh ok. Sorry. I was trying to find the documentation but it brings you to release notes. [21:16:57] Look at the code [21:18:28] Ok yes i found the password class and i see what it means, Thanks. [21:20:47] Reedy: What should i do with User:createNew warnning for param 'newpassword' [21:21:09] You can just stop passing it, as it's ignored [21:21:16] Reedy: Because looking at the code it just shows a deperecated warnning nothing suggesting what to replace it with. [21:21:20] Oh ok. [21:21:21] Use setPassword [21:21:48] Thanks SO like 'setPassword' => Password::crypt( $pass ), [21:22:03] err, no? [21:22:20] call the setPassword function on the user object returned [21:22:54] Of course, setPassword is deprecated [21:23:01] but don't worry about that [22:10:21] Reedy: I am getting abstraction errors because Password is an abstract class. But i carn't extend it in confimaccount since it uses __construct and you carn't extend __construct in a class that extends an abstraction class. [22:10:35] Yes you can [22:15:55] Reedy: Oh ok but it is shwoing this [22:15:55] Fatal error: Cannot call abstract method Password::crypt() in /home/paladox1/public_html/extensions/ConfirmAccount/business/AccountConfirmSubmission.php on line 179 [22:16:58] I guess you need to use a PasswordFactory [22:17:06] You can't instantiate an abstract class [22:25:17] I upgraded to 1.26 from 1.25.2 and I have some problems with the wiki's display. I do not use github so there is no easy to update extensions. Could someone recommend me some extensions to update that are likely the cause of the problem. My extensions can be found here: https://wiki.gamepaduniverse.com/wiki/Special:Version [22:26:16] You should update all your extensions [22:26:31] You mean don't use git? [22:26:35] !extensiondistributor [22:26:35] You can download bundeled for extensions maintained in the wikimedia repository from . [22:27:19] 'Less.php cache directory isn't writable: C:\Windows\TEMP' in C:\Inetpub\vhosts\gamepaduniverse.com\wiki.gamepaduniverse.com\w\vendor\oyejorge\less.php\lib\Less\Parser.php:447 [22:27:23] That's your problem [22:27:31] Look at your js console [22:29:24] hmmm, monobook doesn't seem affected, why? [22:29:32] this looks like https://phabricator.wikimedia.org/T119934 [22:30:41] Sorry. Yes, Git. [22:30:54] ok [22:31:11] I remember doing a reset on some folder permission not too long back [22:31:14] let me change that first [22:31:38] Vulpix: probably because MonoBook doesn't use Less. [22:31:48] I really need to get in the habit of going to the javascript console first [22:31:50] Not being able to write to a temp dir is a bit weird [23:03:12] hello my name is Rithvik Kodali [23:07:39] hello rkodali13 [23:07:47] your timer starts now [23:08:27] just kidding, why would anyone sit around timing others' IRC uptime? [23:08:40] also, what happened to my cloak D: [23:09:13] there