[00:13:15] what is $wgScriptPath? [00:13:34] php thing [00:14:17] what should it be set to? [00:14:19] !wg ScriptPath [00:14:19] https://www.mediawiki.org/wiki/Manual:%24wgScriptPath [00:14:27] yes, I saw that. [00:14:34] "The base URL path (in relation to DOCUMENT_ROOT)." [00:14:49] does that mean the folder where my MediaWiki installation sits in? [00:15:10] my $wgScriptPath is empty for some reason. [00:15:14] that is indeed a pretty poor explanation [00:15:25] yes, it's the path related to your domain [00:15:46] e.g. for a wiki on http://example.com/wiki/index.php, wgScriptPath should be "/wiki" [00:16:29] ah, I see. so if I have http://example.com/index.php then it should be empty. [00:16:42] no it should be "/" [00:16:49] oh. [00:17:01] (I think...?) [00:17:04] I might be wrong. [00:17:41] pwca: ignore me, it should be empty [00:17:52] ok, it messed things up so that's what I figured. :) [00:18:05] I am troubleshooting my Math extension. getting Failed to parse (unknown error): [00:18:21] checking paths to everything to see if there's some wrong path somewhere. [00:25:46] privileges seem in place, everything seems to link to the right directories, I have no idea what is causing this. [00:26:25] anyone have any suggestions? [04:47:37] !debug [04:47:38] For information on debugging (including viewing errors), see http://www.mediawiki.org/wiki/Manual:How_to_debug . A list of related configuration variables is at https://www.mediawiki.org/wiki/Manual:Configuration_settings#Debug.2Flogging [05:13:47] hi, could sb, see my wiki [05:13:57] parswiki.servehttp.com [05:14:15] when the wiki open, an xampp icon was shown [05:14:29] how can i change it to my desired icon? [05:59:14] !wg Favicon | sasan [05:59:14] sasan: https://www.mediawiki.org/wiki/Manual:%24wgFavicon [05:59:27] Hmm, guess he's gone [06:52:45] hi, assume i write a sentence, i want to align in left [06:52:49] what shoudl i do? [09:47:04] Hi guys. I'm almost ready to give up on a problem. The thing is that I would like to have SMW form that list relevant categories in a list tree, that is in "Menuselect" from "Semantic Forms Input". Why oh why does this not work?: {{#ask: [[Category:Administration]] [[Subcategory of::+]]| format=tree| parent=Subcategory of}} [10:02:13] Does anyone have an idea? [10:03:24] gute: you may have more luck asking in #semantic-mediawiki [10:10:17] ok. thanks. Will do. [10:22:32] Hi, using only data dumps, how can I get from image name (e.x.: AFRAA_logo) to thumburl (e.x. 'http://upload.wikimedia.org/wikipedia/en/5/55/AFRAA_logo.png') [10:24:25] in other words I want to reproduce the result of this API call: http://en.wikipedia.org/w/api.php?action=query&prop=imageinfo&iiprop=url&iiurlwidth=320&format=xml&titles=Image:blahblah [10:34:02] Guest43774: the /5/55/ part of the URL path are the first and 2 first characters respectively of the md5 sum of the filename [10:34:45] hex_md5('AFRAA_logo.png') > 55af99aae36542015595215799f865d4 [10:37:00] MediaWiki uses the md5() function for that [10:37:26] thanks Vulpix. What about /commons/ or /en/ part of the url? [10:37:58] or even /thumb/ which sometimes is present and sometimes not [10:38:45] /thumb/ is only present when the file is used as a thumbnail (reduced size, or PNG rasterization of a SVG file, PDF, TIFF, etc) [10:39:19] about commons or en, that would depend on the filename hosted on commons or directly on wikipedia [10:39:32] that probably can't be guessed by just looking at the dumps [10:40:21] maybe checking if the file is already on the dump or not [10:40:47] I take it /thumb/ is not always present. given this example: http://upload.wikimedia.org/wikipedia/commons/thumb/e/ee/A_Modest_Proposal_1729_Cover.jpg does not exist but this does: http://upload.wikimedia.org/wikipedia/commons/e/ee/A_Modest_Proposal_1729_Cover.jpg [10:42:11] well, the first URL is not a valid one, since /thumb/ urls have the filename replicated a second time, with a thumb size on it [10:42:25] like http://upload.wikimedia.org/wikipedia/commons/thumb/e/ee/A_Modest_Proposal_1729_Cover.jpg/180px-A_Modest_Proposal_1729_Cover.jpg [10:43:05] I see... [10:43:09] thank you again [10:43:14] yw :) [10:44:43] is there any clue in images table (http://dumps.wikimedia.org/enwiki/latest/enwiki-latest-image.sql.gz) to know if image is en or common? [10:49:30] well, that dump seems to be from wikipedia, so it should indicate if it's in wikipedia. If you don't find it there, use the commons URL [10:50:08] excellent! thank you for your time. [12:55:21] i keep getting this error: FileCacheBase.php on line 171 http://dpaste.com/1075K4H and have no idea why or how . any input ? [12:58:25] Guest53406: check permissions on /home/path/to/user.html so your webserver has access to write on that path [13:02:20] Vulpix, fixed :) [13:45:47] hi, can I add css classes to my header in mediawiki? [13:45:54] my headers [13:47:23] what do you mean? [13:47:48] Reedy: I have this syntax for instance "== my header ==" [13:48:13] I'd like to obtain something along "

my header

" [13:48:59] why do you need to add a custom class? [13:49:58] of course, you can use the

my header

syntax, but I guess you want this for every header? [13:50:46] Vulpix, because I'm scrapping the content to generate a webpage, and I'd like to apply a special treatment to some headers [13:51:25] those headers already have a class name. Isn't that sufficient? [13:52:34] Vulpix, let me check [13:53:22] they should have class="mw-headline" [13:54:54] just noticed Script Errors on MW extension page: https://www.mediawiki.org/wiki/Extension:Wikilog [13:56:10] What script errors? [13:56:20] I don't see any script error on that page even after purging [14:02:22] * wmat looks again [14:02:48] heh, weird, they're gone [14:04:01] purge ftw [14:29:25] what's the maintenance script for reseting a password? [14:30:39] createAndPromote.php [14:30:52] isn't it changePassword.php? [14:31:05] or is my mw really old? [14:31:05] There's no changePassword.php [14:31:09] Presumably [14:33:13] Reedy: there is :P [14:33:27] uh [14:33:34] https://www.mediawiki.org/wiki/Manual:ChangePassword.php [14:33:37] wth did I type before then [14:34:17] perhaps there should be one for resetting a password, too… [14:35:07] You mean to trigger a reset email? [14:42:18] Dacry hi there :P [17:00:07] is anybody here with delete right on mediawiki.org willing to delete the duplicate posts here? https://www.mediawiki.org/wiki/Project:Support_desk#Requesting_visitor_stats_for_help_pages_45822 [17:00:45] Apparently Mahitgar was so impatient while submitting the message and hit the submit button several times :P [17:01:05] that's, on the other hand, a LQT bug, ofc [17:04:33] @seen fhocutt [17:04:33] sumanah: Last time I saw fhocutt they were quitting the network with reason: Ping timeout: 272 seconds N/A at 7/23/2014 10:30:33 AM (6h33m59s ago) [17:12:14] fhocutt: hi [17:12:20] hi! [17:12:20] I don't know WHAT is up with vidchat :/ [17:12:30] I doubt restarting again on my end will help again :/ [17:12:33] me neither :P [17:12:33] shall we PM instead? [17:12:42] I can try restarting firefox too [17:12:47] I want to install a new skin to my MediaWiki. I tried unzipping it, putting it in the skins folder and adding require_once "$IP/skins/skinname/Skin.php"; [17:12:54] this didn't work anyone know why? [17:13:02] judging by Special:Version it wasn't installed at all. [17:13:04] fhocutt: ok, lemme know when you have [17:34:24] hey Mithrandir - hope you're doing well! [17:59:36] hi fhocutt [17:59:54] hey sumanah & fhocutt! [18:00:08] hi valhallasw`cloud ! Where do your travels take you today? [18:00:24] * fhocutt waves [18:00:26] valhallasw`cloud: at this moment I am looking at https://www.mediawiki.org/wiki/API:Client_code/Evaluations/MediaWiki-Gateway [18:00:48] sumanah: this week I'm in Easton, MA for a conference (stonehill college campus) [18:01:37] I'm leaving for new york on friday [18:01:57] :) [18:02:18] fhocutt: "A novice would have difficulty getting started with the RubyDoc." because it is long and overwhelming and hard to get a hold in? [18:02:47] pretty much, yeah [18:02:48] fhocutt: re Demonstrates Edits: "There are code samples to demonstrate the use of image_info, langlinks, protect, and upload." - are there missing samples? [18:02:56] those are the only samples [18:03:10] besides the intro script, which shows login and edits [18:03:19] fhocutt: sorry for being cryptic - which samples are missing? [18:04:34] could use some query samples, and it would be great if more of the methods had sample code in the docs, but that doesn't seem reasonable to require [18:05:13] fhocutt: I guess you could find a way to say that in the nice-to-have TODO; I skimmed quickly and didn't see it [18:05:18] "Add more code samples to the documentation, covering queries as well as edits so that new users have examples to learn from and modify" [18:05:20] nm [18:05:40] I guess saying specifically which methods you think ought to be added makes it easier to fulfill that suggestion [18:06:17] yay user agent clarity :) [18:06:26] (as in, yay that you suggest it) [18:07:34] "Watch mediawiki-api-announce-l for breaking changes that impact the library and make necessary updates within a few weeks" great idea fhocutt [18:07:53] overall - yay fhocutt! a fine eval as usual! [18:08:00] I want to install a skin. [18:08:12] thanks sumanah! [18:08:20] but when I unzip the folder into the skin folder and add the require_once of the .php in the skin folder nothing happens. [18:08:27] I will make the changes and submit issues [18:08:58] rock fhocutt [18:09:05] pwca: does the skin have install instructions or something? [18:09:06] and ON TO JAVA [18:09:14] Vulpix: would that it had. [18:09:26] sadly, it has very little documentation. [18:09:36] isn't there some API concerning skins? [18:09:42] MatmaRex: ^ [18:09:55] * sumanah defers to skins experts, flees to other things [18:10:05] skins expats. [18:10:06] hum? [18:10:24] what skin? [18:10:29] I'm trying to install this skin, MatmaRex: https://github.com/seongjaelee/Minit [18:10:32] skins logic seems to have changed in current master. Not sure if 1.23 was affected, though [18:10:38] it's quite old, I hope that doesn't matter. [18:11:23] pwca: that skin does seem to do a few things in non-standard ways :/ [18:11:32] yes, it appears so. [18:11:46] pwca: you should probably ask the developer about install instructions? [18:11:49] I guess you need to add the skin name to the list of available skins so MediaWiki is aware of it [18:12:01] pwca: or ask them to do things in the recommended way :) https://www.mediawiki.org/wiki/Manual:Skinning [18:12:01] what are the usual installation instructions? [18:12:07] it doesn't seem to do that by itself [18:12:23] Vulpix: hm. [18:12:35] pwca: the usual is, put the skin folder as a subdirectory in skins/, then require_once("$IP/skins/SkinName/SkinName.php") in LocalSettings [18:12:55] yeah, that's the thing I tried. [18:13:05] pwca: mediawiki used to have a magical skin autodiscovery mechanism for some time, too, maybe that depends on it? [18:13:23] aha. that might be. [18:13:25] it should still work in 1.23, though. https://www.mediawiki.org/wiki/Manual:Skin_autodiscovery [18:14:29] are changes to LocalHost.php seen instantly? [18:14:46] What's LocalHost.php? [18:14:56] err, LocalSettings.php. [18:15:01] and do you usually have to do some compiling to install skins? [18:15:08] compiling? [18:15:13] yes. [18:15:14] You don't compile php [18:15:22] pwca: that skin does actually look like it relies on the autodiscovery mechanism [18:15:39] pwca: maybe it's working already, just not enabled by default? checkj your preferences and see if you can choose it there [18:15:43] do you need to restart installation of the MediaWiki? [18:15:48] it's not there, MatmaRex. [18:15:57] pwca: no, changes should be immediate [18:16:40] pwca: have you extracted the files directory into skins/, or as a subdirectory? [18:16:56] as a subdirectory. [18:16:57] pwca: you should probably extract them directly there, this is very stupid, but old skins actually require that :/ [18:17:07] oh. [18:17:10] :) [18:17:13] thanks. [18:17:27] there's very little chance I would find these things out on my own. [18:17:27] pwca: point the skin author towards https://www.mediawiki.org/wiki/Manual:Skin_autodiscovery , it has a handy migration guide :) [18:20:02] I am getting an error message right on top of my MediaWiki now, MatmaRex, but it seems to have worked. [18:20:14] it warns me autodiscovery will be removed in 1.25. [18:20:32] yes [18:20:36] it's deprecated [18:20:39] see that manual page ^ [18:20:53] pwca: it's a warning, you can probably disable it somehow [18:21:04] or you can just fix the skin, it's simple, and that manual page has a guide [18:21:24] https://www.mediawiki.org/wiki/Manual:Skin_autodiscovery [18:21:26] ok, that sounds like the best thing to do. [18:21:42] thanks a lot. [18:22:01] good luck [18:22:11] poke me if that page is unclear, i wrote most of it :) [18:29:41] MatmaRex: it was very clear. looks like everything works fine now. [18:29:46] thanks again. [18:31:05] :D [18:31:18] pwca: can you put the updated code up somewhere? [18:31:19] no, wait. I broke it. [18:31:39] pwca: i'd put it in the "Examples" section on that page, if you don't mind :) [18:31:47] sure. [18:59:01] MatmaRex: now I get Fatal error: require_once() [function.require]: Failed opening required '/public_html/skins/Minit.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /public_html/includes/Skin.php on line 188 [18:59:05] whatever I do. :S [18:59:36] pwca: perhaps you just need to update the path? you probably moved the Minit.php file somewhere else [19:00:02] isn't it skins/Minit/Minit.php now? [19:00:25] it is correct in LocalSettings.php. should I change it somewhere else too? [19:00:57] probably not [19:01:13] hmm [19:02:09] pwca: is the SkinMinit class still defined in Minit.php? [19:02:19] yep. [19:02:34] and you're definitely requiring that file in LocalSettings? [19:03:23] hmmm. maybe you forgot to add the $wgValidSkinNames line? (it should be mentioned on the manual page) [19:03:49] I had that. [19:04:03] think I messed up some of the names. [19:04:15] ok, now it's "working." I can use the theme, it's just broken. [19:04:30] that's better at least. [19:04:48] seems like some of the paths in the Minit.php are not correct. [19:05:07] yeah [19:05:10] things like $out->addStyle( 'minit/main.css', 'screen' ); [19:05:34] what should that be? [19:05:44] $this->stylename = 'minit'; too (should probably be Minit now) (although this one probably doesn't matter in practice) [19:05:59] assuming you renamed the 'minit' direcotry to 'Minit', $out->addStyle( 'Minit/main.css', 'screen' ); [19:06:04] probably :) [19:06:15] ok, so those are directories relative to skins? [19:06:33] yes [19:07:13] are the calls to skins.minit ok? [19:09:19] pwca: it seems that they're not actually doing anything [19:09:26] :) [19:09:39] pwca: normally this would load skin's styles, if they were defined as a ResourceLoader module [19:09:50] but this skin uses addStyle() for that (eww) [19:16:01] ah, yes. I noticed my mistake. (I didn't put all files into one folder) [19:20:49] pwca: it is possible (and recommended) to put things in further subfolders, as long as it's all inside the main skin folder (skins/Minit/ in this case) [19:22:20] hm, I see. [19:22:46] is there any way I can change a user's default skin through files? [19:23:26] wow. this skin is going to need some tweaking. :) [19:25:51] pwca: you could use https://www.mediawiki.org/wiki/Manual:CleanupPreferences.php although it requires that the skin preference should be in $wgHiddenPrefs [19:26:19] that script may be improved to allow specify a list of preferences to clear on input, though [19:27:32] hmm, i think there was another maint. script [19:27:52] if you want to change the default skin, just set $wgDefaultSkin to the appropriate value [19:28:09] ($wgDefaultSkin = 'minit'; probably) [19:28:52] and there's https://www.mediawiki.org/wiki/Manual:UserOptions.php [19:30:20] hm. [20:29:26] fhocutt: I have 90 min till my next mtg in case you want to pair on anything [21:55:24] talking about https://www.mediawiki.org/wiki/Requests_for_comment/Composer_managed_libraries_for_use_on_WMF_cluster in #wikimedia-office in 5 min [22:03:21] talking about https://www.mediawiki.org/wiki/Requests_for_comment/Composer_managed_libraries_for_use_on_WMF_cluster in #wikimedia-office now [22:49:03] https://www.mediawiki.org/wiki/Wikia_code ... [22:50:09] Nemo_bis: don't hold your breath [22:50:16] haha [22:50:21] It's just a bit out of date [22:50:25] there was some upstreaming [22:55:08] Reedy: ah, so those were better times than now :P [23:54:34] Could someone have a look on my edit request: https://www.mediawiki.org/wiki/MediaWiki_talk:Gadget-contribsrange.js ? (didn't find any edit request template on mediawiki.org) [23:55:06] danmichaelo, most active users are probably admins :) [23:58:54] danmichaelo, hmm... in init() I imagine var show should be !!$('#contentSub, #topbar').length;