[00:02:23] wikieditor [00:04:38] RoanKattouw: it is wikieditor that is causing problem. [00:04:57] Filed task at https://phabricator.wikimedia.org/T117136 [00:46:31] hi, i transfered my mediawiki to localhost right, but i see that i dont have $IP on my LocalSettings.php , is it ok? or should i put it there? [00:47:24] i mean, the wiki seems to work fine, its a really small one, but i dont know if its a must to specify $IP variable there [00:47:50] autofsckk: $IP is just a variable in mediawiki's config to point to the wiki directory, in this case localhost [00:48:13] autofsckk: MediaWiki will autoset $IP, you don't need to set it manually [00:48:49] c: its what i see, but i see that it is used on plugins for example, they take it as a base to ther actual path, but how do they use it if it isnt specified :/ [00:49:01] ok [00:49:46] i transfered my mediawiki from hostgator to localhost, it was very easy, i thought it was going to be a lot more difficult :D [00:50:23] glad you were able to do it successfully, and yes you would use it when adding extensions [00:50:26] e.g. require_once( "$IP/extensions/ParserFunctions/ParserFunctions.php" ); [00:51:04] a lot easier than referencing /var/www/htdocs/mediawiki whatever [00:52:04] c: yes i know, and i also read about mediawiki placing the $IP automaticly, but i was searching for it in that file [00:55:18] autofsckk: https://www.mediawiki.org/wiki/Manual:$IP may be informative :) [00:57:17] thanks [00:58:36] i changed $wgScriptPath = ""; to my path and it stopped working [01:00:14] i thought i was going to have troubles because at hostgator it was running on apache, and here i have nginx and php-fpm, but everything seems to work just fine [01:00:35] autofsckk: that will happen if you haven't defined rewrite rules, i would change it back to what it was before [01:01:08] i already changed it [01:02:03] autofsckk: if you want your wiki to use a custom path (like foo/wiki/), see https://www.mediawiki.org/wiki/Manual:Short_URL [01:03:43] i was reading it the other day, but i dont remember why i didnt do it that way, something i found there that made me decide the other url was better, do you recommend to use shor urls? and here with nginx i think i would have to change the server config file to make the rewrite work [01:07:58] autofsckk: /wiki/ is just what i'm used to, old habits die hard [01:09:53] im pretty new to wikis, i think they are absolutely great, but i think that is a little bit difficult for starters to get a big picture of the information, for starters is maybe not very easy to find information [01:10:43] i started using wikis with the archlinux wiki, i think is a fantastic way to gather information and let people use it, but at first i remember it was no tos obvious to find what i was looking for [01:13:09] autofsckk: *nod* [01:15:20] c: how can i make a front page like the frontpage on mediawiki? is it a plugin? or just "code" [01:15:47] or is it a different theme? or how to make boxes? [01:17:15] autofsckk: it's a plethora of templates mostly [01:18:10] autofsckk: Its with css. There should be tutorials on css around the internet [01:20:28] ok [01:20:41] I think it may be want wikieditor depends on may be the problem. So the js error is comming from mediawiki/core. [01:22:57] i also found this https://www.mediawiki.org/wiki/Manual:Gallery_of_user_styles so it is called skins instead of themes [03:11:16] is it enought to put this on LocalSettings.php $wgEnableEmail = true; to enable the sending of emails? im using it at localhost but i have just test sending an email and it worked but i tried to send again a confirmation from preferences but it does not work [03:27:44] i have my repository downloaded . i have been accessing the core folder through the web browser .Its showing me dependencies need to be installed . can someone give me a bit more clarity on this .I have already checked even the gerrit tut [03:27:55] but i wasnt able to find the solution [03:29:18] waiting for the reply ... [04:16:29] Please do reply .. [04:17:06] hmm? are you trying to install mediawiki fresh on a server somewhere? [04:17:08] mouni: you need to run composer [04:17:27] see https://www.mediawiki.org/wiki/Composer [04:18:14] !libraries [04:18:14] Starting with 1.25, MediaWiki core's git repository no longer contains certain external libraries, see https://www.mediawiki.org/wiki/Download_from_Git#Fetch_external_libraries for how to get them [04:19:23] i have composer installed in mine [04:19:24] sir [04:19:32] after that i am not able to proceed . [04:19:44] where do you get stuck? [04:19:53] the dependencies of php , mysql ,apache server are present [04:20:41] actually i have got these and then i try to access the core folder from the web browser. it shows me the dependencies needed to be installed [04:22:03] did you follow the instructions in https://www.mediawiki.org/wiki/Composer or https://www.mediawiki.org/wiki/Download_from_Git#Fetch_external_libraries ? [04:22:27] i have installed it from the site instructions [04:22:28] composer [04:23:33] and i am using it on koding.com platform [04:27:43] have you configured SSH access? [04:27:59] according to the koding.com documentation, you should be able to SSH into your VM and install things [04:29:29] koding.com looks cool. I'll create an account and see if I can walk you through it. [04:31:25] hmm wish i could check that out right now [04:37:37] http://i.imgur.com/T3UVCFM.png (~650k image) [04:42:44] you can share sessions, neato [04:43:00] mouni: would you like me to share my session with you so you can see how i do it? [04:49:19] well, s/he's gone [04:49:22] but i'm still impressed [04:49:43] it seems like a great environment to learn how to be a developer [04:49:50] nice. i sent myself a memo about the site so that i'll know to check it out later [05:03:38] Sorry sir i was out in the middle of conversation . [05:03:52] Sir you asked if you could have my session in koding.com [05:03:56] right? [05:25:27] Sir waiting for your reply .. [05:27:15] ori: ^ [05:29:18] mouni_: so, here is the exact sequence of commands i typed: [05:29:44] curl -sS https://getcomposer.org/installer | php [05:29:50] sudo mv composer.phar /usr/local/bin/composer [05:30:05] git clone https://gerrit.wikimedia.org/r/p/mediawiki/core.git mediawiki [05:30:18] cd mediawiki [05:30:20] composer update [05:30:26] (that's it..) [05:30:35] it worked [05:31:21] :-) [05:40:53] yes sir checking [05:41:28] and you want my access to account , sir ? [05:43:08] no [05:44:03] ok sir [05:48:39] sir its still showing the same error . what can i do ?' [05:48:51] MediaWiki 1.27 internal error Installing some external dependencies (e.g. via composer) is also required. External dependencies MediaWiki now also has some external dependencies that need to be installed via composer or from a separate git repo. Please see mediawiki.org for help on installing the required components. [06:08:37] mouni_: Have you tried cloning mediawiki/vendor.git? [06:09:41] Instead of using composer, you can try cloning mediawiki/vendor.git into your vendor/ directory. [09:47:36] \logout [09:48:08] Considering that #autowikibrowser is desert, I'll post here too my question: Special Pages->Disambiguation Pages doesn't work .... is it normal? [10:54:14] !access [10:54:14] For information on customizing user access, see . For common examples of restricting access using both rights and extensions, see . [11:56:42] Could someone review https://gerrit.wikimedia.org/r/#/c/183903/ please. It is to do with upgrading moment from 2.8.4 to 2.10.6. Since upgrading to mediawiki 1.27 wmf 4 js has been broken and the error shown in the develeper tools box points to moment since i updated moment on my local machine the js has started working again. [12:56:22] Can i have help converting deprecated hook UnkownAction https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FDeletePagesForGood/a77699fb9e5d95f6fa7b04d9369480700c739106/DeletePagesForGood.class.php#L13 to $wgActionfor please for https://www.mediawiki.org/wiki/Extension:DeletePagesForGood [12:56:33] $wgAction [13:01:26] paladox, also see http://www.catb.org/~esr/faqs/smart-questions.html#explicit [13:02:25] "Can I have help" sounds like an open-ended question... [13:03:39] andre__: Ok. I am just asking for some help to replace the Deprecated UnkownHook and replace it with $wgAction as the manual suggested. I doin't know how to switch since it isen't as easy as it suggest because in that hook it looks for a function whereas $wgAction you just need to do for example $wgAction = array( foo, bar); [13:03:58] That's definitely a better question, thanks :) [13:05:10] Oh. [13:21:44] paladox: extensions should add their actions to $wgActions. [13:22:06] paladox: which means you need to split AddActionHook [13:22:13] saper: Yes but how would i do that if it has function code. [13:22:19] saper: How would i do that. [13:23:14] paladox: and do $wgAction['ask_delete_page_permanently'] = 'ClassName' and $wgAction['delete_page_permanently'] = 'ClassName' [13:23:41] saper: thanks i will try that now. [13:23:43] good question if we can hook $wgAction in extension.json [13:25:13] most importantly please double check "deletePermanently" if it deletes all references to the page in the current MediaWiki schem [13:25:37] I think we can do "Action": { "ask_delete_page_permanently": "ClassName", "delete_page_permanently": "ClassName" } [13:26:06] good, there's an "Actions" object [13:26:12] saper: I think it does. Dosent look like most of tables it has referenced have been changed or removed. [13:26:45] maybe some new are added, I don't now, just double-check [13:27:21] saper: Dosent look like $wgAction is supported in extension.json https://git.wikimedia.org/blob/mediawiki%2Fcore/eb8d6eb754cc00e44ee27914639db762c0f3b6f6/docs%2Fextension.schema.json [13:27:30] saper: Ok. [13:46:11] saper: How would i do it through wgActions i mean find the correct function to choost [13:47:34] It comes up with class not found if i do something like for example Example::FunctionName [13:48:03] did you autoload your class? [13:49:08] 'foo' => 'ClassName' - Load the specified class which subclasses Action [13:49:43] Yes i doint think it is the class i did a static i did DeletePagesForGood::FunctionName instead of DeletePagesForGood [13:50:28] Do i split that function into different classes but what should i do in those different classes meaning how do i set the function out since it wont support customed named functions. [13:51:52] class AskDeletePagesForGood extends FormAction { } and class DeletePagesForGood extends FormlessAction { } [13:52:45] you need to do permissions in checkCanExecute() [13:53:53] Ok thanks. Where do i put rest of code for that hook. [13:54:13] use getRestriction() to give the permission name [13:54:14] And is the permission code this one if ( !$wgUser->isAllowed( 'deleteperm' ) ) { $wgOut->permissionRequired( 'deleteperm' ); [13:54:32] are you familiar with the concept of overriding methods in derived classes? [13:54:38] Nope. [13:55:00] Would i copy all code inside of if ( $action == 'ask_delete_page_permanently' ) { into getRestriction() [13:55:14] you only write public getRestition() { return 'deleteperm'; } [13:55:21] getRestriction() sorry [13:55:43] well maybe you should try to learn how object-oriented derived methods work [13:57:03] for FormAction you just need to write getFormFields(), onSubmit() and onSuccess() methods [13:57:20] for FormlessAction just onView() [13:57:27] and getRestriction() for both [13:58:28] getFormFields() will be probably one line of code since you have only 1 button [13:59:18] paladox: check actions/PurgeAction.php for example how it work [13:59:41] paladox: you actually don't need a second action, just write the onSubmit() method [14:09:30] saper: Thanks for example where do i move the code located in if ( $action == 'ask_delete_page_permanently' ) { to. [14:09:50] paladox: sorry, I cannot hand-hold you [14:10:37] try to read a bit about object-oriented inheritance and use PurgeAction as an example [14:10:58] you don't need to do show() from PurgeAction, your action will be even simpler [14:11:50] probably only getRestrictions(), alterForm() to rename a button and onSubmit() with your deletion code, that should be it. [14:12:55] Oh what about checkCanExecute. [14:17:02] read Action.php. Understand what public/protected/private and abstract is about. Why is Action defined "abstract class". [14:17:13] your code will be much simpler after this [14:17:34] one class, one action, just your delete queries and the name of your permission. [14:18:02] Well an abstract class is where it copys its functions but re uses it and changes the code for its uses. [14:18:27] don't tell me what it is; just use it. I am happy to review in gerrit once you get it working. [14:20:40] Ok sorry. [14:36:14] saper: Could you review https://gerrit.wikimedia.org/r/#/c/250007/ it is not ready but i need some more tips on if it is correct or if i am doing it wrong. [14:37:24] in few hours, yes [14:37:43] ok thanks. [14:38:08] ask_delete_page_permanently can do away completely [14:38:24] use one action with a form and onSuccess() processing [14:38:29] go away I mean [14:38:55] gtg, bye [14:38:58] ok. [15:50:45] anyone know of an extension that will allow for keyword highlights in a page? ex: I have a list of staff names, each with their own color, assigned to projects. currently using span tages to specify their color at every instance. Would like a solution/extension that allows me to predefine names with colors, then every instance of that name/keyword will automagically be colorfied :) Does such a thing exist? [15:52:46] *tages=tags [16:38:35] good morning, is there a way i can see if not sending emails is problem of mediawiki or my local server? i have putted $wgEnableEmail = true; at LocalSettings.php but it doesnt send me anything [16:40:40] just a guess - you don't have proper reverse dns and your email provider flags the mails as spam [16:43:54] hi paladox, haven't seen you on IRC before [16:44:37] Hydronium: Hi i recently started going on the irc suggested by Hashar. [16:48:22] well, have fun [16:49:15] Hydronium: Thanks. [16:53:14] RobotsOnDrugs: no i dont have them but i send an email from console to the same address i was expecting to receive the email from mediawiki confirm email and it works [16:55:18] check your spam folder [16:57:56] i think that is a prove that sendmail is working, but i dont know if its a php-fpm problem or mediawiki, yesterday i saw that phpinfo shows the sendmail path right so i would like to know how i can debug mediawiki [16:58:33] RobotsOnDrugs: i have just checked spam folder on thunderbird and directly on my accound with horde, and i dont have any spam filtered [16:59:51] i received the email from webuser@lap.localdomain from the test i did yesterday right, so what else could it be? [17:01:24] if you've messed with settings in php, that could be it [17:02:07] since your test mail went through, that means sending mail works, and if you've enabled mail in mediawiki it should just work [17:02:45] http://i.imgur.com/dAqEu9C.png i have that on phpinfo, and i have $wgEnableEmail = true; [17:03:42] well im testing nginx and php-fpm so i dont know how different is php to php-fpm, so you think it is most likely to be a php config problem? [17:05:31] if you've stayed with the defaults for mail, probably not [17:05:43] i never needed to mess with php config to set up mail [17:07:59] (and i've always used php-fpm) [17:09:39] i see, well i think ill have to search for a php script send mail or something like that to see if thats what is wrong [17:12:45] is there any extension that reshapes mediawiki when it a smartphone or tablet is accessing it and provides a better look/feel and navigation to it ? [17:14:19] HeXiLeD: Extension:MobileFrontend [17:15:28] RobotsOnDrugs: i think something is wrong with mediawiki, i have just tested from php and i received the email right :/, so now how can i debug mediawiki or is it something else i have to do besides adding "$wgEnableEmail = true;" to settings? [17:16:20] autofsckk: no idea why it doesn't work for you [17:17:49] well at least i know my install is alright and the problem comes from there :D thanks for your help RobotsOnDrugs [19:13:25] my user got blocked on mediawiki because i tired to post before i verified my email. Who do I talk to to get that resolved? [19:14:15] bu3alwa: if your account got blocked you normally receive a message with reasons and how to challenge such a block [19:14:23] Anything written on your talk page? [19:15:19] "This user is currently blocked. The latest block log entry is provided below for reference:" [19:15:27] It thought I was a spam bot [19:15:46] we can check in block log who blocked you, but need the user name for that [19:15:53] and I did not received an email yet [19:16:21] this is the username: Ksures [19:16:49] I believe a automated bot blocked me. [19:17:23] Abuse filter (talk | contribs) blocked Ksures (talk | contribs) with an expiry time of indefinite (account creation blocked) (Automatically blocked by abuse filter. Description of matched rule: Temporary mass spambot attack) [19:18:26] andre__: should he challenge it here? https://www.mediawiki.org/wiki/Extension_talk:AbuseFilter [19:18:41] I honestly do not know :-/ [19:18:58] bu3alwa: ^ best idea i have for now, leave a comment on that talk page above [19:19:04] it was the AbuseFilter extension [19:19:33] looks like you matched a rule for spambots [19:20:18] yea I think it was because I just registered and didn't confirm my email and it thought it was spam. [19:22:58] yea, so i think the talk page of the user who blocked is the right place [19:23:08] and in this case it's just this bot/extension [19:29:51] I guess while this is getting resolved can anyone help me with a technical issue I have been having trying to import an xml dump onto media wiki? http://pastebin.com/s1PEjBQC [19:34:49] Hi ive been trying all day to convert from hook unkownaction to $wgAction dosent work. [19:34:54] Please could i have some help. [19:40:07] hmm I wonder since I am on a campus network if my ip is blocked and thats why my username got blocked. My user got unbanned right after I messaged an admin but I still can't post in the support desk. Does anyone know the issue? [19:40:59] what does the block message say? [19:42:11] this is what I get when I try to post on the support desk: http://pastebin.com/g887b6fW [19:45:12] ....and it says: "If this has occurred in error, please e-mail an administrator" [19:45:15] hmm [19:47:00] Well I will be contacting an admin if no one knows what is flagging. I just asked in irc to see if anyone knows about this. [19:47:44] paladox: "by abuse filter. Description of matched rule: Temporary mass spambot attack)" [19:48:10] eh [19:48:15] p858snake: ^ [19:48:39] mutante: What does that mean. [19:49:25] paladox: the answer to p858snake> what does the block message say?, sorry wrong nick [19:49:32] He pinged you by accident [19:49:38] S/he [19:49:44] Oh ok. [20:13:00] Please could i have help to convert extension DeletePagesForGood from using deprecated UnkownHook to $wgAction please. Ive tryed all day but dosent work for me. [20:26:08] paladox, maybe see http://www.catb.org/~esr/faqs/smart-questions.html#explicit [20:26:23] OK [20:26:51] ...otherwise I don't think someone will be able to answer. [20:32:15] paladox: Do you mean UnknownAction? [20:32:48] G_SabinoMullane: Yes i am trying to convert from using UnkownAction to $wgActions. [20:33:07] https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FDeletePagesForGood/a77699fb9e5d95f6fa7b04d9369480700c739106/DeletePagesForGood.class.php#L13 [20:33:16] https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FDeletePagesForGood/a77699fb9e5d95f6fa7b04d9369480700c739106/DeletePagesForGood.class.php#L45 [20:33:24] You said "UnkownHook". Getting the name right in your question is a good start :) [20:33:59] Woops sorry UnkownAction [20:34:15] https://www.mediawiki.org/wiki/Manual:Hooks/UnknownAction [20:36:48] What have you tried that is failing? [20:37:50] Well i tryed this https://gerrit.wikimedia.org/r/#/c/250007/ [20:38:21] Ive also tryed http://pastebin.com/8QLm5wRh [20:40:18] paladox: and how is your oop? :) [20:40:32] paladox: did you study Action.php ? [20:41:00] saper: Well not really i am following how delete action is set but that isent working. [20:41:22] can you update 250007 so I can have a look? [20:41:39] Ok i will do that now [20:42:20] Ive uploaded it now. [20:42:36] thx [20:42:38] got mail [20:43:03] Sorry if the code dosent look nice some are duplicate ready to be deleted. I will sort how the code looks once i get the code to work,. [20:43:04] . [20:56:55] paladox: in ActionAskDeletePagePermanently you need to get rid of show() [20:57:23] $this->deletepagesforgood($action is not there. did you mean deletePermanently ? [20:57:58] requiresUnblock why false? [20:58:22] saper: not sure just copied thinking that is the default since most are like that. [20:58:30] saper: Where would i put $this->deletepagesforgood($title); [20:58:51] use deletePermanently [20:59:01] the one you have I think is good [20:59:18] Ok. [20:59:53] But since i removed show() i doint know where to put $this->deletePermanently(); [21:00:14] onSubmit ? [21:00:28] Thanks. [21:01:28] I get this error [21:01:28] Fatal error: Call to a member function getNamespace() on a non-object in /home/paladox1/public_html/extensions/DeletePagesForGood/DeletePagesForGood.class.php on line 224 [21:03:14] That is when i click yes i want to delete page permenantly. But now it dosent show the text that was above it like it was in the unknownaction hook. [21:04:46] Ive uploaded another patch with the changes ive done. [21:14:46] Ive managed to get the text back by changing code in alter form. Just need to fix when you press yes it dosent show error and just does what it did before. [21:14:49] saper: [21:18:44] hi [21:20:25] o/ [21:20:41] hi [21:20:42] hello [21:21:51] Boolean_: true or false ? :) [21:22:29] what do you mean? [21:22:55] check this out https://en.wikipedia.org/w/index.php?title=Foul_Play_(video_game)&curid=40950568&diff=688282124&oldid=687953975 [21:23:12] some idiot [21:25:37] truetro: https://en.wikipedia.org/w/index.php?title=Foul_Play_%28video_game%29&diff=next&oldid=688282124 [21:26:14] i saw it [21:26:23] saper: I managed to get it to work. I just need help for when you click yes it should go to a page that says this page has succesfully been deleted or to a page that says this page cannot be deleted. [21:26:30] this is #mediawiki, we write software here [21:26:48] this page you need to implement in onSuccess() [21:30:17] Curious, anyone know of an extension which can push situationally page updates or new pages to multiple wikis? [21:32:07] I'd use pywikibot, a bit written in Pythn [21:32:12] Python [21:32:31] I'll look into it thanks saper [21:33:03] it rns outside of mediawiki, can edit pages an lots of things [21:33:10] and lots of things [21:35:13] saper: Thankyou very much for your help. One last thing ive added it to onSuccess but it nows shows http://pastebin.com/RLGswFZi [21:35:33] Pastebin.com has blocked your IP [21:35:33] We have blocked your IP from accessing our website because we have detected unnatural browsing behavior. [21:35:36] Blocks are usually temporary, but sometimes permanent. [21:35:37] they hate tor [21:36:07] paladox: check action=purge [21:37:36] Try this one [21:37:37] https://dpaste.de/9gHu [21:38:07] Ive uploaded a new patch at https://gerrit.wikimedia.org/r/#/c/250007/ with the updated code. [21:38:20] Could you review it please. I doint think purge is the problem. [21:38:29] check your flow [21:38:43] first there is "show()" which displays your form [21:39:02] then there is onSubmit() that deletes pages [21:39:33] and then onSuccess displays something [21:41:04] I remove show() i only added onSuccess and onSubmit [21:42:24] paladox: btw I think you don't need checkCanExecute ? [21:42:41] saper: Please see patch because in alterForm I have set a few other things. [21:42:51] Ok i will remove that. [21:42:53] in theory is someone gives this right to anonymous so be it [21:43:21] whye run $this->deletePermanently( $title ); [21:43:22] again? [21:43:26] in on Success? [21:43:29] onSccess [21:43:56] Not sure thought that should be there but i will remove it. [21:47:00] we also ned to define hat happens if elete fails [21:47:18] what is if elete fails. [21:48:13] We need to do and if for both since well that is how they hide some text. [21:48:22] if ( $action == 'ask_delete_page_permanently' ) { [21:48:29] } elseif ( $action == 'delete_page_permanently' ) { [21:48:56] saper: Not sure how to change it so it works. because if i set that the code dosent work, stops working. [22:39:00] saper: What should i do for it when i click yes it should show one short line that the deletion was successful not have all text plus that. [23:16:44] Anyone want to review https://gerrit.wikimedia.org/r/#/c/249676/ so I can win an argument with some glam folks over whether our tiff support sucks or not? [23:17:03] * bawolff 's key argument strategy is try to fix their counter-arguments before they knew what hit them ;) [23:21:55] bawolff: but that's how fifth avenue looks like after snow! [23:22:28] To be honest, that was my actual reaction to the bug initially [23:22:39] This picture is totally fine, its just a picture of a white-out [23:37:02] The joke works better in the older version of VIPS where the bug manifested as almost pure white, instead of pure black