[00:13:07] hi, I'm having problems login in via api using login token, always getting no matter what, but I believe the token should be good [00:14:39] I'm getting token which looks like 46cae32ea441093a093137a8b519ad7a57bf89e0+\ [00:16:04] auvajs how are you passing the token back ? would it be asking too much to look at your code ? [00:18:06] is there a way to make the headings in long tables float so when the user scrolls down, the headings stay visible? [00:18:11] (honest question, i wouldn't mind if you don't want to show it) [00:19:35] auvajs: you need to make sure you pass the cookies you got in your original request onto the second request [00:21:55] Alphos: http://pastebin.com/GYqaev6e I only changed username and pass [00:22:02] it's in python [00:23:37] legoktm: hm that might be the problem :/ [00:23:53] um what [00:23:58] don't use regex to parse xml...use JSON [00:24:24] auvajs: https://github.com/legoktm/supersimplemediawiki/blob/master/mw.py is a decent reference implementation [00:24:29] (for login) [00:24:44] or dom to parse xml [00:24:58] but json will probably be a lot easier for everyone :) [00:25:07] also see https://www.mediawiki.org/wiki/API:Client_code#Python [00:26:53] well I'm not a programmer.. :) doing it this way seems easier to me [00:27:40] I used pure bash and curl up to know but decided to update to a bit higher level :D [00:27:46] *now [00:28:02] * bawolff made a bot in bash once [00:28:08] It was a bad idea. Don't do it [00:28:25] but it powered [[Template:Popular Articles]] on enwikinews for several years [00:29:06] these statements seem contradictory [02:26:50] well I'm not a programmer.. :) [02:27:37] I used pure bash and curl up to know [00:29:49] it's easy but I only managed to login the old method via action=login [00:30:28] auvajs really, stick to json. json parsers are far easier to use than dom for xml [00:30:53] they'll give you native structures in whatever language you're using, which dom probably won't [00:31:02] and using anything other than dom to parse xml is absurd [00:31:11] regular expressions : case in point [00:31:37] curl -b mycookie --data-urlencode "action=login" --data-urlencode "format=xml" --data-urlencode "lgname=""$username" --data-urlencode "lgpassword=""$pass" --data-urlencode "lgtoken=""$token" "$mywiki""/api.php" -c mycookie [00:31:46] this worked so far for me, lol [00:32:15] http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags that post will never cease to be funny [00:36:25] anyway, back to my little code, the reason is not working is probably that I'm not using cookies? [00:45:19] Wait, so $wgEmailConfirmToEdit blocks all actions except read? [00:45:23] That seems messed up [00:45:59] not really [00:47:20] I think non-email confirmed users should at least be able to edit their preferences [00:47:27] To request the confirmation email be resent [00:48:12] err, wait, it doesn't seem to actually block that [00:48:35] meh, kinda means "any alteration on the db, whether insert/update/delete/replace/'not select' requires a confirmed email address" [00:48:45] i find that sane [00:50:52] Actually i think i was wrong [00:51:00] code does not seem to actually do what i thought it did [00:51:20] * bawolff points out that confirming your email involves an db UPDATE :P [00:51:37] MW permission code is just plain confusing [00:51:56] yeah, but by the time the UPDATE occurs, the user has technically sent the confirmation :p [00:52:15] i'd point out that creating the user in the db involves an INSERT though :D [01:27:04] auvajs :) but again, i suggest you use json [01:31:17] you'll have less trouble using json than xml [01:32:04] https://docs.python.org/2/library/json.html [01:32:35] lot better than parsing xml using the dom, and really really really a LOT better than attempting to parse it using regular expressions ;) [01:39:32] Alphos: the problem was I was not using data = {'lgname': user, 'lgpassword': password, 'lgtoken': logintoken} to post data [01:39:51] ah ! :D but the json bit remains ;) [01:40:49] Alphos: well honestly I don't know what json is :D I only know there's format option json, but I have no experience with it at all.. as I said I'm not a programmer (but a lawyer :D) [01:41:41] auvajs something that has a way of being converted to a native value in your programming environment with a single function call :) [01:42:13] if you're still parsing xml yourself, relying on regular expressions, you WILL hit a brick wall at some point [01:42:55] well, maybe later [01:43:33] getting edit token works for me, hopefully editting will to and time to got bed :D [01:43:34] json on the other hand has json.loads() in python which will turn the entire json blob the server returns into a neat object/array/list/whatever which you'll be able to run through as if you defined it yourself in your code [01:44:28] go to bed.. 3:44 am here, I'm not even able to write properly [01:44:36] same time here [01:45:03] :) gn and tnx for help [01:45:07] yw :) [05:04:19] could someone please help me with an error here: https://maiasongcontest.miraheze.org/wiki/Template:Infobox_settlement [09:10:15] help [09:12:07] I want to create a wikipedia, wikidata and other apps for Windows with the original name and logo..Can I use it? [09:40:29] help please [09:40:50] shubham : short answer, no [09:41:40] wikipedia, wikidata, and their logos are trademarks of the wikimedia foundation. you can't use them without permission. and you may ask for it, but you won't get it [09:42:53] i'm not interested in a private conversation on the topic. let's keep it here. you won't get it because they don't give that permission away to just anybody [09:43:48] besides, there's already a mobile version for wikipedia and wikidata [11:05:51] hey there, i have a question on the new SessionProviders. Is anybody here that knows how to use them? :) [11:07:59] !ask | akmet [11:07:59] akmet: Please feel free to ask your question: if anybody who knows the answer is around, they will surely reply. Don't ask for help or for attention before actually asking your question, that's just a waste of time – both yours and everybody else's. :) [11:08:21] Okay, thanks andre__! :) [11:11:46] akmet, i was working with them couple of days ago [11:11:54] !ask When trying to create my own SessionProvider i get a ClassNotFound, but the class is loaded correctly. Maybe my extension.json is just not correctly? http://pastebin.com/emaPjL6u [11:11:54] Please feel free to ask your question: if anybody who knows the answer is around, they will surely reply. Don't ask for help or for attention before actually asking your question, that's just a waste of time – both yours and everybody else's. :) [11:12:00] When trying to create my own SessionProvider i get a ClassNotFound, but the class is loaded correctly. Maybe my extension.json is just not correctly? http://pastebin.com/emaPjL6u [11:12:41] hang on [11:12:50] i got the exact code to make it load [11:13:30] That would be very great! Been searching the whole day to find a way to use the SessionProviders [11:16:07] Oh i can't seem to find it.. [11:17:07] ah [11:17:11] i see the problem [11:17:16] akmet, remove the autoload key [11:17:49] Done, but does not solve the problem.. same fatal error [11:18:53] Could it be that my class is just corrupt? [11:19:18] http://pastebin.com/Mk0vNqLZ [11:20:24] aha [11:20:27] same mistake as i did [11:20:31] namespace MediaWiki\Session; <- remove that [11:22:18] Still Class not found o.O earlier this morning i got an error that SessionProvider was not found, so i added it [11:23:06] maybe you need the namespace for SessionProvider? [11:23:28] just a guess, I'm not familiar with PHP namespaces [11:24:13] akmet, whats the exact error [11:24:25] Fatal error: Class 'WWUAuthSessionProvider' not found in /www/data/FSMI/htdocs/FSMI/wiki/includes/libs/ObjectFactory.php on line 147 [11:26:22] oh [11:26:30] put back the autoload class key, whast the error [11:29:04] Okay, now i get the missing SessionProvider error (Fatal error: Class 'SessionProvider' not found in wiki/extensions/WWUAuth/WWUAuthSessionProvider.php on line 7) [11:31:18] yeah hang on [11:31:29] trying to remember what i put.. [11:34:26] use MediaWiki\Session\SessionProvider; brought me the following error: Fatal error: Declaration of WWUAuthSessionProvider::persistSession() must be compatible with MediaWiki\Session\SessionProvider::persistSession(MediaWiki\Session\SessionBackend $session, WebRequest $request) in [11:34:46] ah yes [11:35:02] You will need to add [11:35:08] use MediaWiki\Session\SessionBackend; [11:35:13] as well [11:35:18] yeah, that fixed it [11:36:19] thanks a lot! :) [12:22:57] hi, how's everyone doing? [12:28:41] is anyone here [12:28:41] Hi luis_, I am here, if you need anything, please ask, otherwise no one is going to help you... Thank you [12:30:17] Hi there how can i retreive my username for wikipedia Thank you [12:32:29] anyone [12:32:33] here [12:35:55] luis_: do you mean you forgot what's your username on Wikipedia? [12:36:11] yes [12:37:23] Vulpix: yes [12:39:07] luis_: https://en.wikipedia.org/wiki/Special:PasswordReset enter your email address [12:50:10] Vulpix: I have tried but i do not receive anything from wiki. I have tried different emails [12:50:56] luis_: did you register an email when you created the account? [12:51:44] I am not sure, but i have tried different emails and i don't receive anything Thank you [12:53:00] so your only options are: - If you remember editing a page, look at the history of that page to find your user name there [12:53:42] okay thank you i will try that, be right back [12:53:47] - If you registered your email address, you should have a confirmation email from when you confirmed it, see if it's still on your mail account [12:54:27] nothing more, unless your browser history has an entry for your user page or similar [12:58:20] Vulpix: I do not see my username, can you help? http://wikivisually.com/wiki/Draft:PapiTrapSuave [13:00:08] luis_: are you PapiTrapSuave ? [13:01:42] Yes [13:02:22] Vulpix: So that is my username? [13:04:16] luis_: if you recognize that edit, yes https://en.wikipedia.org/wiki/Special:Contributions/PapiTrapSuave [13:05:44] Vulpix: okay, i will try to log in [13:08:45] Vulpix: I succesfully logged in, Thank you. How can i delete the article http://wikivisually.com/wiki/Draft:PapiTrapSuave [13:11:52] wikivisually.com is not operated by Wikimedia Foundation, so we can do nothing... but supposing it fetches contents from Wikipedia, you can try editing https://en.wikipedia.org/w/index.php?title=Draft:PapiTrapSuave&action=edit and place a {{delete}} template [13:12:34] Vulpix [13:12:48] wikivisually.com is not operated by Wikimedia Foundation, so we can do nothing... but supposing it fetches contents from Wikipedia, you can try editing https://en.wikipedia.org/w/index.php?title=Draft:PapiTrapSuave&action=edit and place a {{delete}} template [13:16:03] people should look @ the domain name first ffs [13:18:06] y0 and Thanks, Thanks, Thanks for the awesome softwares [13:18:16] I'm seeing some weird behaviour at one of my wikis [13:18:19] http://develop.consumerium.org/wiki/Special:RecentChanges [13:19:36] jubo2: can you please elaborate? [13:19:42] Vulpix: sorry, what do you mean by place a delete template. You mean type {{delete}} at the end of the article? [13:19:45] There is addition of porn spam onto the article here http://develop.consumerium.org/w/index.php?title=Talk:Claims_of_corruption&curid=5701&diff=45161&oldid=15878 but the recent changes reports octet change as '(-63)' [13:19:49] luis_: yes [13:20:10] So is kind of freaky error somewhere [13:20:28] hmmm, indeed [13:20:35] The addition is maybe 150 chars but the RC does say in red font (-63) [13:20:37] Vulpix: That will let them know that i want the article deleted? [13:21:42] luis_: yes, an admin will delete that page, and that will hopefully replicate "wikivisually.com", but as I said, that domain is not operated by WMF [13:22:55] jubo2: http://develop.consumerium.org/w/index.php?title=Talk:Claims_of_corruption&action=history history has track of the number of bytes for each revision, and is consistent with the -63, in fact the difference is calculated with that, the error must be in one of those revisions [13:23:32] Vulpix: but look at the edit diff. [13:23:41] zero removals [13:23:44] many additions [13:23:54] I know the diff, look the size in the page history [13:23:54] how does the raw wikitext byte count go up? [13:24:02] sorry [13:24:06] how does it go down? [13:24:45] this may have something to do (probably a bug anyway, but...) http://develop.consumerium.org/w/index.php?title=Special:Log&page=Talk%3AClaims+of+corruption [13:28:30] I should prlly protection [13:28:48] I just find this "wrong prefix integer in MediaWiki"-business a bit unnerving [13:29:19] of course one thinks of things such as "maybe time to migrate to clean server again" [13:29:56] I'll delete-restore once and .. uhh.. protect.. can I protect so that only logged in can edit? [13:30:20] you can also recalculate the byte count of those entries [13:31:41] https://www.mediawiki.org/wiki/Manual:PopulateRevisionLength.php but that requires those revisions to have a null value on the revision length [13:32:07] the previous revision is probably the one that has it wrong, so every new edit will cause this mismatch again [13:34:09] Can't I protect level "only logged in may edit" ? [13:35:02] yes [13:35:20] Vulpix: How long do you think it will take for an admin to delete my article? Thanks [13:35:49] luis_: shouldn't take more than a day [13:36:24] Vulpix: Thank you really appreciate your help today! [13:36:31] yw :) [13:36:38] Vulpix: what does "autoconfirmed" mean ? [13:37:08] !man Autoconfirmed [13:37:08] https://www.mediawiki.org/wiki/Manual:Autoconfirmed [13:37:22] * https://www.mediawiki.org/wiki/Manual:Autoconfirmed_users [13:37:43] a redirect is probably worth it :) [13:37:48] Yeah, made. [13:39:20] Vulpix: what are the procedures to writing a wiki [13:40:05] luis_: https://en.wikipedia.org/wiki/Wikipedia:Contributing_to_Wikipedia [14:27:01] Hi folks, I have a problem with my mediawiki. Since I updated to 1.27, articles won't be added to categories. In addition, extension MsUpload is marked as "installed" on Special:Version, but it won't show up while editing an article. I updated to 1.27.1 today, but my problem is still there [14:27:45] In Firefox console, I do not see any errors [14:28:02] produnis2: the first problem sounds like you have the job queue disabled [14:28:19] MatmaRex: how can I found out if I did so? [14:28:53] do you have $wgJobRunRate set to 0? [14:28:56] https://www.mediawiki.org/wiki/Manual:Job_queue [14:28:58] job queue is broken, probably [14:29:09] https://www.mediawiki.org/wiki/Manual:$wgJobRunRate [14:29:23] https://phabricator.wikimedia.org/T142751 [14:29:47] just set $wgRunJobsAsync = false; in LocalSettings.php [14:30:06] I'll try, thx Vulpix [14:31:46] YEAH, THX guys, this solved my Category-Problem [14:32:50] it's a pity that AaronSchulz is not here :) [14:33:52] My second and last problem is extension MsUpload, which I used quite often. After I updated to 1.27, the MsUpload-bar just does not show up. [14:35:32] https://phabricator.wikimedia.org/T139341 [15:14:55] any Echo gurus around? I have a rather huge patchset for adding Echo support to one of my extensions (see https://gerrit.wikimedia.org/r/#/c/278868/), and it's been tested quite a lot and is almost ready to be merged, the only thing I can't figure out is the bundle stuff. how is it supposed to work? I don't think it's working as intended in my code; thus I can't figure out what, if any, i18n... [15:14:57] ...messages related to the bundle stuff I need; that's why there's a Korean (!) i18n msg in the UserBoard/i18n/en.json file in the patch -- I have no clue where or how it's used, *if* it even is used [15:15:21] (this patch is live on http://social-tools.wmflabs.org/ should someone want to test it or something) [15:21:47] TE MATARE CON MIS PROPIAS MANOS HIJO DE PERRA ALVARO MOLINA [15:21:48] TE MATARE CON MIS PROPIAS MANOS HIJO DE PERRA ALVARO MOLINA [15:21:49] TE MATARE CON MIS PROPIAS MANOS HIJO DE PERRA ALVARO MOLINA [15:29:47] it's better called Un-Ban Bot :P [15:41:09] ban the bans [15:58:53] ashley: In Special:Preferences's notifications section, there is an option to set bundled daily/weekly notifications instead of separate notifications [16:25:54] Glaisher: hm...so it's something only used for emails, and not for the web UI, right? [16:28:10] ashley: I think you can do bundling for both web and emails but it's optional, I think [16:28:11] not sure [16:29:00] https://github.com/wikimedia/mediawiki-extensions-Thanks/blob/master/Thanks.hooks.php#L184 [16:29:13] https://github.com/wikimedia/mediawiki-extensions-Thanks/blob/master/ThanksPresentationModel.php search for isBundled() [16:29:15] ashley: ^ [16:29:59] Then there's the hook for getting bundle rules [16:30:02] ahhh, this would explain a thing or two -- thanks Glaisher :D [16:30:17] You will probably be able to get more definitive answers at #wikimedia-collaboration [16:30:27] :) [16:47:49] TE MATARE CON MIS PROPIAS MANOS HIJO DE PERRA ALVARO MOLINA [16:47:51] TE MATARE CON MIS PROPIAS MANOS HIJO DE PERRA ALVARO MOLINA [16:50:24] someone needs to create an AbuseFilter for IRC channels :) [18:10:17] does anyone have an idea why extension MsUpload won't show up after upgrade to mediawiki 1.27? [18:11:30] or a guess where to start debugging [18:11:36] firefox console won't show any errors [18:11:51] it's simply not there [18:12:01] I assume it worked properly on 1.26? [18:12:06] yeah [18:12:29] it may not be compatible with 1.27, I'm not sure if it has been updated to work with that version [18:12:48] https://www.mediawiki.org/wiki/Topic:T721d2d8776y5fyg [18:13:00] That might help [18:14:38] thx, xxmarijnw... but I started this thread.. :) [18:14:44] Oh heh... [18:14:47] :D [18:15:26] Have you tried the method 122.225.127.202 is suggesting? [18:15:33] yes [18:17:00] Let me try installing it on my wiki. [18:19:04] wait [18:19:09] sorry, [18:19:26] it works [18:19:29] just a second [18:19:39] I have to check what I did to make it work [18:20:59] does msupload work with VE? [18:21:43] produnis2: Works fine for me aswell [18:25:42] I did my debugging at the wrong place of my filesystem. So, while playing with differnet versions, and re-installing the extension, the "real" folder of the livesystem wasn't touched.... [18:25:54] thx for your time, xxmarijnw [18:26:21] I can confirm that using the method of 122.255.127.202 does solve the problem [18:52:31] yw, produnis2 [19:32:55] Do we have a script for cleaning up unused thumbs? [19:34:34] we just don't know which of them are unused [20:43:25] Hello!! [20:44:42] I have just installed mediawiki, and extension EditAccount. My user is in group administrator, and I have line $wgGroupPermissions['administrator']['editaccount'] = true in EditAccount.php. [20:45:21] YET! When I go to Special:EditAccount, logged in as my user, I only get the option to close my account!! [20:46:30] In fact! When I go to EditAccount, I am redirected to CloseAccount. [21:01:40] is there a groups table? [21:02:06] I can only see 'former_groups' and 'user_groups' [21:02:16] there is not [21:02:39] check Special:ListGroupRights [21:02:42] see if you see it on there [21:02:58] remember that any config for an extension should go below the point you load it [21:03:28] also check extension documentation for any other things you may have missed [21:03:54] ty [21:04:14] Skizzerz, I don't see sysop in ListGroupRights, yet I see it in my table? [21:04:35] Problem is I have removed myself from administrator group which means I can't access some things. [21:04:47] sysop is listed as Administrators on that pag [21:04:48] *page [21:04:50] Can I user INSERT (my_user_id, 'administrator')? [21:04:58] into user_groups [21:04:58] don't do that [21:05:07] just add yourself back in Special:UserRights [21:05:25] I get Permission Error trying to access that page [21:05:45] if you insert into that table, you need to use the internal group names [21:05:49] aka 'sysop' and 'bureaucrat' [21:06:00] administrator is the front-end name for sysop, but it's still sysop in the backend [21:06:21] there is also the createAndPromote.php maintenance script which you can use to grant yourself +sysop and +bureaucrat even if your account already exists [21:06:52] either way, you will likely need to log out and back in on the wiki for any rights changes to take effect [21:07:05] I am in that table as sysop. Strange, but not in it for Beaurocrat. So I can't access UserRights even if I am sysop? [21:07:15] UserRights is restricted to bureaucrats [21:07:30] if you own/run the wiki, I'd suggest being in that group as well [21:07:42] but you can change that restriction in LocalSettings.php [21:15:12] okay, i am back in bureaucrats now [21:15:16] back to square 1 [21:15:52] soo... i am in groups: 'administrator' and 'bureaucrat' [21:16:02] in EditAccount.php i have: [21:16:17] $wgGroupPermissions['administrator']['editaccount'] = true; [21:16:21] so this should work? [21:17:10] lol wth i have TWO groups named administrator showing on UserRights page [21:17:13] I think administrator should be sysop [21:18:07] okay, i can edit when i add myself to this second 'administrator' group [21:18:09] strange [21:18:41] as Skizzerz said, MediaWiki uses the internal name "sysop", "administrator" is the "displayed name", if you add administrator or whatever in $wgGroupPermissions it will show as another user group [21:19:06] see https://www.mediawiki.org/wiki/Manual:User_rights [21:19:29] rightio [21:20:14] so i need to put $wgGroupPermissions['sysop'] rather than administrator? [21:20:36] yes [21:20:45] Cool :D [21:21:18] I totally missed that, whoops [22:09:29] !version [22:09:29] To find the current version of Wikimedia wikis, see https://tools.wmflabs.org/versions/. To find out the version of your MediaWiki installation, visit the page Special:Version. Should the wiki be broken, but you have access to the program files, find $wgVersion in DefaultSettings.php. Please note that 1.15.0 > 1.5.0 (since nobody wants to go to 2.0). See http://www.mediawiki.org/wiki/Version_lifecycle for supported versions. [22:11:29] I'm trying to make a template which outputs the first parameter literally in the code block, this is what I tried but the problem is it returns the raw HTML code generated by templates, rather than leaving the input as-is: [22:11:30] !update [22:11:30] update.php is a script that updates the database tables. You usually need to run it after upgrading MediaWiki or installing certain extensions. For details, see [22:11:31] {{#tag:pre|{{#tag:nowiki|{{{1}}}}}}} [22:52:45] nyuszika7h: not possible with pure wikitext, may be possible via scribunto