[08:20:14] a [08:22:08] Hello my name is hitesh kumar sofat. I am student of guru nanak dev engineering college ludhiana (india). I want to contribute my knowledge in this community so please guide me. [08:27:05] Hi sofat you may try solving bug / microtasks from here https://phabricator.wikimedia.org/tag/possible-tech-projects/ [08:28:11] You may choose to solve any bug / microtask whether it is featured for GSoC or not. [09:28:12] echo ' can someone explain me why this prints "wut: 2"? [09:38:02] Nikerabbit: I think that's #20 on my list of complaints about PHP: http://toykeeper.net/soapbox/php_problems/ [10:27:21] ToyKeeper: ah I should have used . and not + [10:29:27] Nikerabbit: I suspect, if it's a new project instead of a patch to an existing project, it would be a better long-term solution to use something other than PHP. [10:30:10] Otherwise, modding an existing project... it's unfortunate, but when in Rome one must do as the Romans do. [11:07:05] hidgw, I am trying to setup ssh keys in gerrit, I need to submit a patch, but getting this error http://pastebin.com/w5Lsyhgy [11:07:32] following https://www.mediawiki.org/wiki/Gerrit/Tutorial [11:11:11] ujjwal: did you put everything that is inside the file .ssh/id_rsa.pub into the field in gerrit ? [11:11:27] thedj, yes [11:11:53] ujjwal: and there is a file .ssh/id_rsa ? [11:12:11] yes, it's there [11:13:58] ujjwal: and do the two belong together: http://serverfault.com/a/426429 ? [11:15:12] ujjwal: oh, are you using the right username to connect btw ? [11:15:40] username is ujjwalwahi [11:16:46] *ujjwal [11:17:07] https://gerrit.wikimedia.org/r/#/settings/ shows you your gerrit ssh username [11:17:10] then you know for sure [11:21:58] thedj, It's working now, I guess I was using wrong username :P [11:22:01] thanks [11:23:27] ujjwal: np, it happens :) [11:24:18] to your .ssh/config you can add something like [11:24:57] Host gerrit.wikimedia.org [11:24:58] User = [11:28:03] this is for? [11:28:19] to make sure you always use that username with that specific host [11:28:40] instead of the default of the username with which you are logged in on your local machine [11:28:53] handy if they are not equal to eachother [11:29:17] ok, yeah it will be helpful, thanks :) [16:39:32] hi anomie [17:30:27] Seems I have somehow broken one of my wikis. Other wikis on the same host look OK. [17:30:57] I have checked Apach2 virtual host should be OK, read the Short_URL manual. [17:31:26] When I try to use the wiki the browser shows: "The requested URL /wiki/Etusivu was not found on this server." [17:31:43] I don't understand what is wrong. [17:35:28] tale: look at apache error_log to see what physical path it's trying to access, or enable the rewrite rules logging [17:37:12] Error log: [Sun Mar 15 19:35:08 2015] [error] [client 88.195.12.193] File does not exist: /var/www/w/Mediawiki:Sidebar [17:39:38] tale: does that make sense? rewrite rules should target index.php. Apparently rewrite rules aren't set on that host [17:40:32] rewrite log shows there is extra w/ in the path. [17:40:47] Like this: /var/www/w//w/index.php [17:44:19] Can not see where that extra w comes from. [17:45:15] tale: could you provide your rewrite rules in a dpaste? [17:47:38] Vulpix: From the virtual host file? Only the rewrite lines? [17:49:23] yes. Well, a background of how your directory structure and expected URL would be nice also [17:54:05] Vulpix: https://dpaste.de/Hh5h [17:55:31] tale: DocumentRoot is /var/www/w/ but $wgScriptPath = "/w";. There you have the extra /w [17:55:58] same in rewrite rule: RewriteRule ^/*$ %{DOCUMENT_ROOT}/w/index.php [L] [17:57:22] Vulpix: Should I remove it from both places or only one? [17:58:16] you should remove it from DocumentRoot, or from everywhere else. This might change how your URLs will look, so you should decide [17:59:50] I think it has to be in DocumentRoot, otherwise Apache can not find the correct subdirectory. [18:00:14] Removing it from everywhere else seems to repair the wiki. [18:00:59] I wonder where this situation came from, I am pretty sure I did not change those things. [18:01:53] Vulpix: Thanks a lot, You found the error. [18:02:01] yw :) [18:07:05] aharoni:i have written today Hindi rules in languagetool.What should be the next microtask for the project? [18:27:45] Hi i would like to participate in GSoC 2015 [18:27:53] for the project [18:28:37] Find SpamExtension to identify and delete spam pages [18:28:44] any help will be appreciated [18:41:40] Hello, I have some spam modifiers on my wiki, is it possible to add a captcha for not loged modifications ? [18:45:50] I just put a protection… [19:14:55] Hi. My wiki (1.24.1) is giving the following JS error: "TypeError: $.browser is undefined" Does anyone know why jQuery is not being loaded? [19:17:27] orion, $.browser was removed in jQuery 1.9 [19:17:49] check $ to determine whether jQuery is loaded [19:18:42] Ah [19:18:45] It is loaded. [19:18:53] It happens on the UploadWizard page. [19:19:21] I am using UploadWizard version 1.4.0, which seems to be the latest version. [19:30:03] b080a03e (Mark Holmquist 2012-06-01 15:00:00 -0700 21) * @version 1.3 [19:30:04] acb43c82 (Siebrand Mazeland 2014-03-29 17:08:17 +0100 40) 'version' => '1.4.0', [19:32:30] orion, I think it should work. https://gerrit.wikimedia.org/r/#/c/74425/ came before the version number was bumped [19:45:10] Krenair: That patchset was already part of my version (1.4.0). [19:45:18] There are still many instances of $.browser being used. [19:45:31] hm [19:45:51] if you browse to the page with debug=true as a URL parameter, which file is the code that triggers this error in? [19:46:23] resources/mw.fileApi.js, resources/mw.Firefogg.js, resources/mw.UploadWizard.js, test/jasmine/spec/mediawiki.parser2.spec.js all have "$.browser" in them , as determined by grep. [19:47:12] The file/line that breaks my page is mw.fileApi.js, line 44. [19:47:51] what version are you using exactly? [19:48:03] git hash? [19:50:44] Krenair: I downloaded the release via HTTP, not from git. [19:51:17] ah [19:52:26] orion, via ExtensionDistributor? [19:53:30] Via the website [19:53:32] f173a1d [19:53:41] https://www.mediawiki.org/wiki/Special:ExtensionDistributor?extdist_name=UploadWizard&extdist_version=REL1_24&extdist_submit=Continue [19:53:47] So, yes. [19:57:10] alex@alex-laptop:~/Development/MediaWiki/extensions/UploadWizard (REL1_24)$ grep "\.browser" * -R [19:57:10] alex@alex-laptop:~/Development/MediaWiki/extensions/UploadWizard (REL1_24)$ [20:00:46] ah [20:01:13] Krenair: I found the problem. I was running REL1_23 [20:01:40] lol [20:01:46] I thought you said you were on 24 [20:22:58] Is there an API to query categorical data from MW? [20:24:54] orion, categorical data? [20:25:01] you mean like, which categories a page is in? [20:43:31] Krenair: yes [20:45:38] orion, https://www.mediawiki.org/w/api.php?action=query&prop=categories&titles=Project:About