[00:00:05] Please excuse me if this is an old idea, but have developers considered showing a term definition when the mouse floats over a linked word? [00:00:40] Thank you for your time! [00:03:59] Hi, bye. [00:20:34] Hi Nemo_bis [00:21:47] I would like to add my draft proposal for the feedback on the same. [00:23:09] Do I have to create subtask for it? Or can I make a page for my proposal? [00:27:23] Its clear now :) [02:22:21] I'm getting error 500 when trying to login. It appears that authentication is working [02:23:24] after Authentication it is trying to redirect to "index.php?title=Special:UserLogin&action=submitlogin&type=login&returnto=Main+Page" [02:23:40] any idea what is going on? [02:27:12] anyone? [02:58:43] prijaya__, i see Shirayuki blocked you on mediawiki [03:22:09] Call to a member function toString() on a non-object in /var/www/html/wiki/includes/User.php on line 3493 [03:22:20] any idea why this error message [03:22:22] ? [03:22:45] I'm getting this right after authentication [03:29:30] anyone? [04:31:10] i'll undo the changes i made [04:40:08] f [07:25:59] What extension should I use to restric view of specific pages to a group of users? [07:26:03] restrict* [08:30:57] the html generated by mediawiki contains links to 127.0.0.1:8080 [where backend apache is listening] - what could be wrong? [09:57:20] How should I move every page linked on the index page of mediawiki to a, for example, namespace1:index page? [10:26:50] To rephrase my question, how would I go to move all of the current pages to a namespace? [10:27:32] http://www.mediawiki.org/wiki/Manual:Using_custom_namespaces ? [10:52:48] Hi, I'm looking for some help to setup a banner in the monobook skin (proper top site banner, not a notice). Anyone got some time? [12:19:18] Hey, please unblock this user, she is my intern in OPW and mistakenly ran her bot in mediawiki.org instead of test wiki I taught her how not to run bots in certain wikis so it won't happen again. [12:19:19] https://www.mediawiki.org/wiki/Special:Contributions/Prianka [12:20:41] Amir1: sure, doing [12:21:49] thanks :) [12:22:14] done [12:25:31] :) ty [12:49:34] I'm having problems with maintenance/moveBatch.php script. I created a test listfile in format "existing name|new name" but the script fails with this error: http://fpaste.org/198927/26596565/ [14:22:50] Hi. My college proxy blocks ssh.. how else can I upload a patch on gerrit? I tried using http://tools.wmflabs.org/gerrit-patch-uploader/ but it allows only one file in a commit it seems.. [14:29:05] ayushi: not a answer but a tip: http://dag.wiee.rs/howto/ssh-http-tunneling/ [14:34:16] Kostic: Thanks :) [14:52:13] saper: you around? [14:54:04] anyone knows where in the database in can verify $wgSecretKey [14:56:27] I guess there isn't an option to use a separate database server for $wgSharedDB etc, is there? [14:57:34] anyone? [15:05:01] hi there [15:30:46] anyone knows where in the database in can verify $wgSecretKey [15:33:12] mallu: i don't think it's used with the database. also, usually you use the secret key to verify something. the key itself isn't verified. [15:33:25] what are you trying to do? [15:34:32] DanielK_WMDE: I'm getting " PHP Fatal error: Call to a member function toString() on a non-object in /var/www/html/wiki/includes/User.php on line 3493," [15:35:26] mallu: and what does this line say? [15:35:28] getting this error right after authentication and something is trying to redirect to index.php?title=Special:UserLogin&returnto=Main+Page [15:36:02] DanielK_WMDE: 'user_password' => $this->mPassword->toString() [15:36:47] so I am thinking maybe something is erroring out after authentication [15:37:23] : something between authentication and database [15:37:29] DanielK_WMDE: ^^ [15:38:33] mallu: yes, sounds like *something* returns null instead of a Password object. I don't think it has anything to do with $wgSecretKey though, why would it? [15:38:39] DanielK_WMDE: I'm authenticating to Active Directory.. so why would it try to write password into the database? [15:39:19] because the code expects a password to exist, i guess [15:39:38] coul be a dummy in your case. i don't know how this is supposed to work, sorry. [15:40:06] DanielK_WMDE: Do you use Active directory authentication? [15:40:13] no. [16:27:27] it appears that my new installation of wikimedia is not writing user info to DB [16:28:05] Can someone please help me troubleshoot? [16:46:00] mallu: what do you mean with "not writing user info to DB"? What is the error message? I think you installed mediawiki? Which version? [16:57:00] FlorianSW: please see this https://dpaste.de/rx0J [16:58:05] FlorianSW: We are authenticating to Active Directory. My understanding is when a new user login it should create that user in user tabled in wiki database [16:58:38] and I don't think whatever is writing this info to DB is not writing it to the DB [17:03:35] mallu: uhm, sorry, but the Ldap authentication extension (i think you're using it?) is totally new to me :/ [17:04:25] have you checked, if the user already exist? That seems the only reason why INSERT IGNORE should not insert the new user. [17:04:31] mallu: ^^ [17:51:06] mallu: you don't need $wgSecretKey for anything I think :) [17:52:40] mallu: it is not stored in the database, only *sometimes* used to generate user's cookies [18:02:29] saper: thank you [18:03:00] saper: so I think the issue is, something is not writing the user info into user DB [18:03:17] so I am suspecting the issue is https://dpaste.de/rx0J [18:09:31] mallu: I don't think so, since there were INSERTs into your database [18:09:38] saper: I see this error too.. https://dpaste.de/T62h [18:10:16] mallu: you should have a stacktrace in the debug log? [18:10:51] saper: I don't see insert command and I don't see the user in user table [18:10:54] what extensions are you using? [18:11:02] there was one in the logs you sent me earlier [18:11:03] let me paste the logs [18:11:19] extensions are in [[Special:Version]] [18:11:22] page [18:15:02] saper: here is the log https://dpaste.de/ssSJ [18:16:18] mallu: hold on [18:16:26] mallu: and then it just hangs? [18:16:37] saper: ok [18:16:48] saper: yes.. it just hangs [18:16:55] so you have not enough random bits! [18:17:03] do you have /dev/[u]random? [18:17:26] saper: what does that mean? [18:17:35] once sec [18:17:37] a device file on your system [18:19:25] mallu: check https://phabricator.wikimedia.org/T62258 [18:19:36] mallu: did you run update.php after installing the extension? [18:19:37] ok [18:19:49] after crypto bits it should try accessing ldap database tables [18:21:13] # ls -l /dev/random crw-rw-rw-. 1 root root 1, 8 Mar 17 01:52 /dev/random [18:21:34] spare: yes I ran update.php [18:21:36] yeah probably not a problem [18:21:42] do you have ldap extension tables? [18:21:54] saper: let me run update.php one more time [18:22:14] ldap extention table? How do I find that [18:23:03] login to mysql and run "SHOW TABLES" [18:23:54] ok.. will do that... BTW I just ran update.php .. same issue [18:24:52] saper: no ldap extention tables [18:25:08] only have ldap_domains [18:25:18] should be enough [18:26:25] saper: should I need to add anything in Localsettings.php to add users to DB? [18:26:58] saper: all I have in localsettings is LDAP info [18:27:04] no [18:27:36] saper: what does this INSERT IGNORE INTO 'user' means? [18:28:11] add the user into the database [18:28:21] can you do "SELECT * FROM user;" and see the users there? [18:29:25] which mediawiki version are you (do you have a git commit like (6f13e6a)) [18:29:37] in Special:Version [18:31:08] saper: please take a look at this log. I have enabled sql debug https://dpaste.de/ZuVV [18:33:11] mallu: can you connect to mysql and try "select * from user where user_id=58" ? [18:33:21] you have probably 58 users already created :) [18:34:26] saper: mysql> select * from user where user_id=58; Empty set (0.00 sec) [18:34:41] saper: no user [18:35:36] and just [18:35:39] select * from user [18:35:39] ? [18:35:54] I also need your exact version [18:36:20] one more thing please ad $wgLDAPDebug=1 to your LocalSettings.php [18:36:23] saper: I can see all the users already in the DB. Please note that I have copied the DB from another machine [18:36:34] so they are not ldap users [18:36:58] I need your version (git commit hash like (6f13e6a) [18:37:07] Everyone in the User tables are ldap users.. we are in the process of migrating from an older server to new one [18:37:42] so it used to work [18:39:43] saper: it used to work in an older version ... the version we are using on the new server is 1.24.1 [18:40:18] do you have a git hash in Special:Version? [18:40:43] MediaWiki 1.24.1 (something-i-want) [18:41:56] saper: the users already in the user table can login. Any new users can't [18:42:31] saper: how can I find the version from the wiki page? [18:44:30] go to https:///index.php?title=Special:Version [18:45:55] saper: the version is simply 1.24.1 [18:48:50] saper: please note that the IP addess in this log change as this server is behind a loadbalancer https://dpaste.de/ZuVV#L [18:49:06] Saper: not sure if that is complicating things [18:50:55] saper: also another thing I noticed is everytime I login with a user that is not in the DB it is incrementing uid: [18:51:02] "Query wiki (23) (slave): SELECT /* User::saveOptions 10.194.211.77 */ up_property,up_value FROM `user_properties` WHERE up_user = '59'" [18:51:15] as you can see up_user is 59 now [18:53:54] still getting https://dpaste.de/T62h error? [18:57:20] saper: yes still getting that error [18:58:17] saper: maybe user.php is the reason why it is not writing to the user table. [18:58:49] mallu: https://phabricator.wikimedia.org/T78108 [18:59:22] saper: line 3493 is 'user_password' => $this->mPassword->toString() [19:00:05] yes [19:00:21] Thats exactly our issue [19:01:44] saper: we have lot of users login to our wiki Is there any better solution than the workaround in this page? [19:02:51] yeah you need a patch [19:04:07] saper: how/where can I obtain patch? [19:05:23] mallu: this got fixed a bit later [19:06:11] saper: so I should upgrade merdiawiki? [19:06:16] mallu: do you know how to use "patch" utility? [19:06:32] mallu: let me send you one specific change related to this problem [19:06:34] saper: no I don't [19:06:47] it's a linux, right? [19:06:55] saper: yes [19:16:05] mallu: get this https://gist.githubusercontent.com/saper/7f20b873cbe009cd9183/raw/7a8bbcec87cd645783c40befdb2c9b529bbd0f9c/- [19:16:24] put in a file "/tmp/ldap.patch" on the box [19:16:54] ok [19:17:36] mallu: then "cd /var/www/html/wiki/" [19:17:44] mallu: and "patch < /tmp/ldap.patch" [19:17:53] ok [19:18:12] let me know what it says [19:18:43] File to patch: [19:19:16] saper: it is prompting me to enter something "i guess the name of the file? [19:19:56] ctrl-c [19:19:59] and run [19:19:59] patch -p1 < /tmp/ldap.patch [19:20:07] ok [19:20:19] should say [19:20:20] Hunk #1 succeeded at 2334 (offset -17 lines). [19:20:20] Hunk #2 succeeded at 2379 (offset -17 lines). [19:20:20] patching file includes/password/PasswordFactory.php [19:20:20] patching file tests/phpunit/includes/PasswordTest.php [19:22:23] and? works? mallu [19:23:07] saper: no.. here is the log https://dpaste.de/J3Ar [19:25:07] mallu: now you messed up :) you should have aborted at the first question ;) [19:25:23] saper: oh no [19:25:47] saper: how do i fix [19:25:57] you will find includes/User.php.orig there [19:26:20] and tests/phpunit/includes/PasswordTest.php.orig [19:26:29] copy them to the respective names without ".orig" [19:28:01] saper: ok [19:30:27] saper: I can't PasswordTest.php.orig [19:31:13] ok no problem [19:31:18] it didn't change it [19:31:54] saper: Reversed (or previously applied) patch detected! Assume -R? [n] [19:32:05] ah and includes/password/PasswordFactory.php [19:32:11] hold on, what are you doing? [19:32:51] do you have this? [19:32:52] $ sha1sum includes/User.php includes/password/PasswordFactory.php [19:32:52] 1bb23e59a1d43450ac0c9c04c876c87dfe5edd4a includes/User.php [19:32:52] 27633de59a6c1758753889e03b08f3fc1d75c78e includes/password/PasswordFactory.php [19:33:06] saper: copied the user.php.orig to user.php then running # patch -p1 < /tmp/ldap.patch [19:33:16] no [19:33:25] can you "sha1sum includes/User.php" ? [19:34:01] # sha1sum includes/User.php includes/password/PasswordFactory.php 1bb23e59a1d43450ac0c9c04c876c87dfe5edd4a includes/User.php 27633de59a6c1758753889e03b08f3fc1d75c78e includes/password/PasswordFactory.php [19:34:30] saper: ^^ [19:34:35] none of them matches what I have :) [19:34:45] can you restore them from your installation media [19:35:11] saper: ok.. one sec [19:35:39] after this give me sha1sum's again please [19:38:26] mallu: where did you get mediawiki from? [19:39:05] saper: I downloaded it from mediawiki site [19:39:15] 1bb23e59a1d43450ac0c9c04c876c87dfe5edd4a includes/User.php 27633de59a6c1758753889e03b08f3fc1d75c78e includes/password/PasswordFactory.php [19:39:56] checksum seems to be same as yours now [19:41:17] good [19:42:12] mallu: can you ry patch --dry-run -p1 < /tmp/ldap.patch [19:42:17] try [19:42:28] sure [19:43:10] still getting "Reversed (or previously applied) patch detected! Assume -R? [n]" [19:43:20] strange [19:43:20] Let me recreate this server [19:43:28] maybe I did something wrong [19:43:35] please give me 10 minutes [19:44:07] maybe it's a different version of 'patch' [19:46:44] saper: I will have the server up in a few [19:47:12] ah those clouds :) [19:54:47] hello [19:54:54] anyone there...?? [19:55:34] you can summon the ghosts by asking a well-stated questions [19:55:58] otherwise the lie dormant in their ghost beds [19:59:12] actually i have a good knowledge about php, javascript [19:59:36] and i am interested in the MediaWiki extensions project [19:59:45] how should i proceed further [19:59:56] i man what are the next steps [20:00:12] that's a good question [20:00:19] now await the ghosts [20:00:20] sorry its mean not man [20:00:54] haha, this conversation will go into my list of favories :) [20:01:17] why.? [20:01:27] whats so funny about it...? [20:01:54] ghosts are funny [20:02:20] ari___: what is it that you want to do ? [20:02:25] Did you think ghosts floated around all the time? Ghosts need sleep too. [20:02:32] so if the fun is over ,can anyone answer my question [20:03:47] * thedj suspects that ari___ is a Google SoC applicant or Outreachy [20:04:12] * thedj can't know for sure, because ari___ hasn't stated this so yet [20:04:28] i am a gsoc applicant [20:05:12] i am planning for writing a code that will first detect the spam pages as soon as it encounters... [20:05:14] XD [20:06:07] saper: I have new server running [20:06:13] ari___: you should read this page first: https://www.mediawiki.org/wiki/Google_Summer_of_Code_2015 [20:06:21] 10c98fa12a18035c0175132b6e59bac4489eb542 includes/User.php cc18ee7e43e883452280209eb5e1e6995b0bd149 includes/password/PasswordFactory.php [20:07:05] ari___, have you seen https://www.mediawiki.org/wiki/Google_Summer_of_Code_2015 ? [20:07:15] yes [20:07:55] okkie [20:08:08] any bugs are required to be solved..?? [20:08:32] saper: should I try patching again? [20:08:33] the steps are outlined on that page: create a ticket for your project idea, try finding people interested in it [20:08:57] where to create the ticket..?? [20:09:17] "Draft your project creating a new Phabricator task following the proposed application template. If you proposal addresses an existing project idea published in Phabricator, then you just need to click "Create subtask" in the project idea task. This will add automatically the projects and the subscribers of the project idea to your proposal." [20:09:43] the gsoc 2015 page has all the links [20:10:50] saper: this is the output of dry-run https://dpaste.de/UJvp [20:11:30] is any a gsoc applicant here...?/ [20:12:21] ^present [20:13:51] probably not. you can contact qgil who is managing GSOC 2015 from our side. [20:15:06] thanks [20:15:24] by the way what is a phabricator...?? [20:15:37] i mean i have never used it before [20:15:50] so i wanted to know how to use it [20:17:23] ari___, people keep telling you to read the manual. probably you should do that because this page explains what phabricator is. at least links to the relevant help page [20:21:35] mallu: ok we can live without the last one [20:22:08] mallu: just do "patch -p1 < /tmp/ldap.patch" without --dry-run [20:23:08] saper: wat about "patching file includes/password/PasswordFactory.php can't find file to patch at input line 77 Perhaps you used the wrong -p or --strip option?" [20:23:26] saper: is that ok? [20:23:27] just Ctrl-C it [20:24:40] mallu: do you have old LocalSettings.php and database ready? [20:25:25] the old Localsettings don't really work .. it needs some work [20:26:26] whatever you have, most importantly ldap settings should be there [20:26:31] and the database of course [20:27:01] saper: here is the output for patch https://dpaste.de/RsYf [20:27:05] yes I have the DB [20:27:21] mallu: good, we are all set [20:27:30] can you try the login? [20:27:32] is debugging enabled? [20:27:36] saper: let me try login [20:28:04] oh yes [20:30:21] saper: Not good :( [20:30:36] logs? [20:30:45] have debugging enabled? [20:31:25] saper: here is the log https://dpaste.de/FbUG [20:31:53] mallu: and php error log? [20:32:58] here is the error: [Tue Mar 17 20:30:06 2015] [error] [client 10.194.212.58] PHP Fatal error: Call to a member function toString() on a non-object in /var/www/html/wiki/includes/User.php on line 3486, referer: https://infracoe.nikecloud.net/index.php?title=Special:UserLogin&returnto=Main+Page [20:33:04] different line # [20:34:04] but same line 'user_password' => $this->mPassword->toString(), [20:34:25] saper: ^^ [20:37:52] ok thanks [20:39:26] mallu: do you have $wgLDAPDebug = 1 ? [20:42:16] Let me enable that [20:42:52] saper: I just enabled $wgLDAPDebug = 3; $wgDebugLogGroups['ldap'] = '/tmp/debug.log'; [20:43:37] mallu: thanks [20:45:26] Saper: good news... it seems to be working now [20:45:36] I think the patch did it [20:45:38] with debug enabled? [20:46:24] no.. I think it worked after patching.. let me verify it by recreating the server one more time [20:47:32] mallu: are you using LdapAutoAuthentication.php? [20:48:10] mallu: sorry, paying customer called :) see you later [20:50:47] mallu: you can comment on the bug https://phabricator.wikimedia.org/T78108 if it's all ok [20:51:09] sure.. Let me verify it first [20:51:19] saper: thank you so much for your help [20:53:04] np, the invoice is on the way :) [20:57:11] Hi all [20:57:33] Is it possible to do an API query which will give me a list of all instances of Person? [21:35:16] saper: Hold off on the invoice... this is not working now :( [21:35:30] so I brought up a new server .. installed patch [21:35:47] saper: same issue [21:36:05] Saper: Not sure what fixed last time :( [21:44:46] Saper: so I think what fixed my issues was I copied snippet of User.php from ver 1.20 (our old server) over to the new server .. Now I am able to login .. Here is what I copied https://dpaste.de/6PFp [22:00:22] saper: I think I see the issue... [23:17:56] Hello, t'm newby on mediawiki. Do you show a simple howto for incluse infobox? [23:23:09] Incredibleaccess, you want to borrow infoboxes from wikipedia to your wiki? https://www.mediawiki.org/wiki/Manual:Importing_Wikipedia_infoboxes_tutorial [23:30:14] Hello Maxsem, i want just create my own infoboxes. i'll see the link. perhaps, it will help me to understand the method. anyway tanks! [23:30:50] well, just copy an existing infobox and adapt it for your needs [23:32:58] Ok, i'll test immediatly thanks Maxsem! [23:37:41] It works! great! thanks!