[00:25:07] hi [00:25:46] i'm using own Skin, but after upgrade i got error, i should add the skin name to include/Skin.php [00:26:33] after each upgrade i have to do it, or is other way to do it once? [00:26:52] my mediawiki 1.23.7 LTS [00:28:07] any idea or any one online her? [00:44:19] Sia-: You shouldn't be having to modify Skin.php [00:44:42] Reedy, then i can't install med skin! [00:45:15] let me find you an example [00:45:21] ok [00:47:26] Aaand my connection is playing up [00:50:27] Sia-: I can't link to the lines I want because my dns is playing up and github isn't loading numerous resources [00:50:28] https://github.com/wikimedia/mediawiki-skins-Vector/blob/master/Vector.php [00:50:39] Have a look around line 41 [00:53:36] __DIR__ . [00:56:04] Reedy, but still can't find the skin [01:10:15] Sia-: if there is an error, please provide the error instead of paraphrasing it. :) [01:10:33] ...or why https://github.com/wikimedia/mediawiki-skins-Vector/blob/master/Vector.php#L41 does not work. [01:10:43] andre__, ok [01:11:13] we can only guess what your code is, does, or does not do so far :) [01:14:18] andre__, http://pastie.org/9761673 [01:14:31] now loaded the skin but without the CSS [01:17:54] where is the skin registration performed? [01:18:44] ?? [01:20:30] andre__, http://www.mediawiki.org/wiki/Skin:Erudite [01:21:32] I bet that skin doesn't work due to [01:21:32] 'remoteBasePath' => &$GLOBALS['wgStylePath'], [01:21:32] 'localBasePath' => &$GLOBALS['wgStyleDirectory'], [01:22:27] Sia-: the whole $wgResourceModules entry is wrong [01:22:53] Reedy, how is wrong? [01:23:11] Compare it to Vector? [01:23:41] Reedy, so not working also http://pastie.org/9761690 [01:25:06] Sia-, you need to point to the location of your styles [01:25:24] not core's resources [01:25:31] MaxSem, is already their [01:25:36] nope [01:25:45] wgStylePath is for MW [01:25:55] that is from your wiki, maybe the wiki is wrong [01:26:09] ok how can i change it [01:26:12] What? [01:26:29] likely it's from "our wiki" because we run that wiki with our skin and not with your skin? :) [01:26:49] 'remoteBasePath' => 'erudite', [01:26:49] 'localBasePath' => __DIR__, [01:27:21] then drop all the erudite/ prefixes from the styles array [01:28:42] ok Reedy thanx [01:29:51] Reedy, now working thanks to you and other supporter her [01:30:09] You should commit your changes to gerrit so other people can benefit from it [01:31:09] ok [01:54:13] Hi [01:57:07] Im trying to get Gerrit set up on my computer, but I'm having some problems. I'm using the tutorial at http://www.mediawiki.org/wiki/Gerrit/tutorial, and I've followed the steps all the way up to "Add ssh key to use with git." I enter $ ssh @gerrit.wikimedia.org -p 29418, and it tells me " [01:57:29] "permission denied (publickey) [01:57:54] did you upload the key to gerrit, and then load the key into your ssh agent? [01:58:16] Yes, as far as I can tell at least [01:58:21] https://gerrit.wikimedia.org/r/#/settings/ssh-keys [01:58:31] what OS? [01:58:43] OS X Yosemite [01:59:40] do you see the key when you run ssh-add -l [01:59:41] ? [01:59:58] I can post what it told me when I had it debug it (put -v at the end), would that help? [02:00:03] one sec, ill check [02:00:53] Yes, it will [02:02:30] I've tried uninstalling git, deleting all the files related to this, and starting over, but I still get the same result [02:07:45] hmm, no - it's not windows so reinstalling shouldn't help:) [02:09:46] Can you think of anything else that might help? [02:12:30] I feel really dumb right now... I was entering the full name instead of my username [02:12:47] :) [02:12:51] Thanks though :) [02:12:53] so works now? [02:13:32] YES! [02:13:51] lol I spent an hour trying to figure that out [02:15:12] btw the all caps was supposed to be excited not yelling [02:16:10] You were just being cool [02:17:46] <^demon|away> CAPS MAKES EVERYTHING BETTER [05:18:26] Have anyone here tried to put Facebook Like Box in Mediawiki Sidebar? [10:01:42] Funny double block https://www.mediawiki.org/w/index.php?title=Special:Log&page=User%3ATerry9912ftoafi&type=block [13:20:41] WTF is wrong with Gerrit. [13:21:01] I'm running `git review -d I4ce6fbb163234c195c5419015cfb333a87678700` [13:21:09] Which refers to https://gerrit.wikimedia.org/r/#/c/177785/ [13:21:21] and I'm running it in the VisualEditor repo. [13:21:25] And I get: [13:21:41] "Does specified change number belong to this project?" [13:21:54] "fatal: Couldn't find remote ref refs/changes/85/177785/1" [13:22:48] Reedy, ^demon|away, James_F|Away -any idea? ^ [13:22:50] aharoni: you're sure you're in the right VE repo? [13:23:00] MatmaRex: what do you mean by "right"? [13:23:12] VisualEditor/VisualEditor [13:23:13] aharoni: mw/extensions/VisualEditor or VE/VE? [13:23:19] It's not extension/VisualEditor [13:23:23] ah, crap, something changed again. [13:23:40] I guess that https://www.mediawiki.org/wiki/Extension:VisualEditor needs an update. [13:23:41] aharoni: do `cd lib/ve` first :) [13:24:00] Oh, that. Mmmm, ok. [13:24:38] aharoni: VisualEditor/VisualEditor is the basic editor that can run standalone, without MediaWiki; mediawiki/extensions/VisualEditor implements things on top of it, like templates and MediaWiki skin integration [13:28:09] MatmaRex: thanks, it worked. [13:28:27] :) [14:37:00] Is there a way to [[xxxxxxxxxxx]] to a certain peice content of a page without doing a # or seeing that in the tag? [14:41:02] Gecko: Nope. [14:41:14] I mean, not without considerable effort and convoluted...ness. [14:52:41] Gecko: you could use a redirect, but then it would still show up in the address bar [14:53:11] Gecko: and you could just use a different link display title, e.g. [[page#anchor|page]] [14:54:01] You could probably do something silly like use a redirect combined with a common.js snippet to find an anchor tag that has the same name as the redirect page, then set scrollTop to include that anchor. [14:54:17] But don't do that. It's silly. [18:16:34] anyone know why my site wouldn't load skins? [18:17:18] would it possibly be because the skins is a symlink? [18:17:21] benkevan: Do you have the skins downloaded and installed? [18:17:24] Hm, maybe. [18:17:28] marktraceur: yes. [18:17:35] benkevan: Where does the symlink go? [18:18:21] more info about the problem would be welcome: styles not applied? a warning saying skins need to be installed...? [18:18:26] /usr/share/mediawiki/skins [18:18:49] Vulpix: it's just no styling at all.. no errors or anything> I can browse the site it's just ugly as all heck (internal site so I can't link either). [18:19:18] benkevan: https://www.mediawiki.org/wiki/Manual:Errors_and_symptoms#The_wiki_appears_without_styles_applied_and_images_are_missing [18:23:24] well I'm getting 200's it appears "GET /wiki/skins/common/ajax.js?270 HTTP/1.1" 200 4777 [18:24:18] well, that file is not a load.php URL [18:25:02] ajax.js is not part of a skin, and I wonder why is even loaded at all... [18:27:08] Vulpix: strangely enough I don't see a load.php request hummm [18:29:07] can you look at the HTML source of the page and search for "load.php"? there should be some of them [18:31:14] Vulpix: indeed load.php is in the stylesheet. [18:32:56] does it have the complete URL? could you check if it loads at all in your browser?= [18:36:18] petan : Hi , I'd like to work on this task. - Can u please assign it to me and Also guide me on how to carry on with it ? [18:36:26] https://www.google-melange.com/gci/task/view/google/gci2014/5899133453860864 [18:50:37] Vulpix: it does not .. let me check [18:51:34] Vulpix: actually incorrect.. it does have the full URL.. I can get to it.. BUT .. it doesn't load with the style [18:52:25] load.php URLs don't load a wiki page, but just JavaScript or CSS code. Just be sure it contains JavaScript or CSS code, and not a Server Error page or a completely blank page [18:53:10] benkevan: also, if your wiki is publicly accessible, it would be incredibly helpful to give us a link :) [18:53:39] Vulpix unfortunately it's not :( .. and agreed.. that would have been the first thing LMAO. [18:54:20] Vulpix: load.php looks as php as I'd imagine a.. and nope no server error page or anything [18:55:19] I mean load.php URLs in your browser, not the load.php file on the server [18:55:40] like https://www.mediawiki.org/w/load.php?debug=true&lang=en&modules=skins.vector.styles&only=styles&skin=vector&* [18:56:44] agreed.. that loaded just fine [18:57:11] loaded just fine without any type of style I should say [18:57:30] is it possible the skin path is wrong.. hummm.. [18:57:40] $wgStylePath = false; [18:57:41] $wgStyleSheetPath = &$wgStylePath; [18:58:04] that ampersand looks wrong, it shouldn't be there [18:59:53] removed & and still the same. [19:00:53] source shows /wiki/skins/common/images/wiki.png as a place to pull skins and also /wiki/skins/ for vector. [19:01:52] !wg StylePath [19:01:52] https://www.mediawiki.org/wiki/Manual:%24wgStylePath [19:02:22] I'm wondering why would you put a false on that variable [19:03:07] also, $wgStyleSheetPath is not meant to be modified in LocalSettings.php https://www.mediawiki.org/wiki/Manual:%24wgStyleSheetPath [19:03:26] you probably want to remove those 2 lines [19:04:51] not sure.. this is a base insatll [19:05:21] I guess I can pull a non distribution provided DefaultSettings.php [19:06:32] benkevan: what? DO NOT EDIT DefaultSettings.php! [19:07:02] Vulpix: no.. i'm downloading DefaultSettings.php from source just to compare and make sure my distributino didn't f it up [19:07:05] :) [19:08:28] benkevan, instead of trying to figure out what packagers were smoking, why not just use a tarball? [19:09:57] Vulpix: honestly.. I just wanted to try the distribution provided rpms. [19:10:26] but it all looks good.. (no change of source.. just symlinked) [19:10:40] maybe I should recrete my localsettings.php [19:11:00] ugh. rpm [19:11:07] MaxSem: I know right :D. [19:55:47] !2.0 | rfarrand [19:55:47] rfarrand: No, seriously, 2.0. Have a tracking bug: https://phabricator.wikimedia.org/T72000 [20:31:11] hi [20:31:52] i'm using this skin http://chawg.org/w/index.php?title=HTML&useskin=erudite [20:32:10] in the css LEFT means RIGHT [20:32:19] and RIGHT is LEFt [20:32:33] because i'm using RTL language mediawiki [20:32:41] how can stop doing this [20:32:46] ? [20:33:38] i dont need autmaticlly, i need to style by me self in rtl.css [20:33:46] is that possible? [20:34:12] the skin source is http://www.mediawiki.org/wiki/Skin:Erudite [20:37:08] Sia-: are you a skin developer? If done right, Resource Loader should take care of it automatically. See https://www.mediawiki.org/wiki/ResourceLoader/Features#Flipping and https://www.mediawiki.org/wiki/Manual:Skinning#Right-to-left_.28RTL.29_languages [20:38:01] Vulpix thanx i know this link [20:38:17] but is not like that in other skins [20:38:33] anyway, thanx for the link itry it self [20:50:18] Sia-: apparently, it's doing it correctly. Do you mean there are things that shouldn't be flipped in RTL? [21:18:52] How to parse API json results properly? Inside the each loop? Otherwise I get I end up with "Request-URI Too Large" [21:20:07] Subfader: Request-URI relates to the url of your query to wiki server. parsing results usually happens client-side. Are you sending an api result back to the API? [21:20:42] Yes, I was told to. I need a json result link list to be fully parsed [21:21:15] you may need to send it through POST, not GET [21:21:30] Subfader: In what way to you archeive 'parsing of json' by sending it back to the API? [21:21:48] I'm trying to add a "load more" button for new pages. https://www.mediawiki.org/wiki/Thread:Project:Support_desk/API:_Parse_result_titles_to_links%3F [21:21:51] do you achieve* [21:23:00] Subfader: Can you paste the code you have? https://gist.github.com [21:23:38] (and yeah, you should probably submit your wikitext through POST instead of GET) [21:24:49] POST shouldn't have such limitation. Of course, the data should be sent in the request body, not in the URL [21:25:08] https://dpaste.de/SHKw [21:25:18] $.ajax( { type: 'POST', url: .., dataType: 'json', data: { ... } ).done( function ( data ) { .. [21:25:55] data: { format: 'json', action: 'parse', text: mpNewMixesScrollListItems } [21:26:08] it will automatically encode in this case, no need to re-encode [21:26:25] Thanks, trying. [21:26:50] Subfader: As mentioned though on that page, there's no need to do an extra server request for the link [21:26:56] you can use mw.util.getUrl( title ) [21:27:22] I hacked Linker to add more classes. These would be ignored? [21:27:34] Don't hack core. [21:27:44] Add classes to your wrapper element if you need it. [21:27:59] You should not have change Linker to achieve your style [21:28:06] like '' + mw.html.escape( title ) . '' [21:28:08] They are conditional if the linked target is in certain cats [21:28:22] or mw.html.element( 'a', { href: mw.util.getUrl( title ) }, title ); [21:29:09] I know one should not hack core. But I do :) [21:29:17] gtg [21:29:45] Cheers! [21:35:45] ok.. back to this skins issue [21:35:53] and Vulpix .. do you have that name because the pokemon? [21:36:04] yes [21:36:26] Vulpix: :D.. nice.. [21:37:01] Vulpix: I'm getting 304 "GET /wiki/load.php5?debug=false&lang=en&modules=mediawiki.legacy.commonPrint%2Cshared%7Cmediawiki.ui.button%7Cskins.modern&only=styles&skin=modern&* HTTP/1.1" 304 < is that expected? [21:37:35] 304 - Not modified. Yes, it's fine because your browser has a cached version [21:37:50] you can force a reload hitting CTRL+SHIFT+R [21:37:56] Vulpix: POST works like a charm :) [21:38:09] Vulpix: ok... and.. Vulpix do you play? [21:40:39] petan: Could you set me up with trusted or admin access to wm-bot in #wikimedia-design? [21:41:33] I swear I'm going to punch this media wiki installation in the face when I figure out how stupid this issue I'm trying to track down is