[03:26:37] !btinfo #mediawiki [03:27:05] !btinfo #wikimedia-ops [03:28:20] no need for opmoderated here [03:58:17] Huh, I forgot again that JD|cloud isn't J.delanoy. [04:25:52] &$&$ JOIN #wikimedia-ayuda &$&$ [06:40:26] Could anyone help, I'd like to know how to include and from template [06:43:02] I want and to be part of transclude content, is it possible? [08:46:59] hello [08:47:41] what is the use of this channel [08:49:51] how many members are joined this channel [09:41:47] JHK: try {{#tag:noinclude|content}} [11:17:44] Hi everyone, I'm configuring my first instance of MediaWiki, and I want the URLs to look like this: http://example.org/wiki/Page_title [11:18:09] I'm using nginx [11:18:26] I've tried following the 2 articles on mediawiki.org regarding nginx (https://www.mediawiki.org/wiki/Manual:Short_URL/Nginx) (https://www.mediawiki.org/wiki/Manual:Short_URL/Nginx) [11:18:47] But it seems to still be redirecting me to /index.php?title=Page_title [11:19:22] Can anybody link to me to an online resource that explain how I can achieve http://example.org/wiki/Page_title for MediaWiki with nginx? [11:19:28] Or at least give me some hints [11:35:41] jean__: I'm using this on my wiki http://ptpb.pw/tSLe/nginz [11:35:43] jean__: I'm using this on my wiki http://ptpb.pw/tSLe/nginx [11:38:18] nyuszika7h: Thank for the link [11:38:28] nyuszika7h: What about your LocalSettings.php? Have any modifications there to support this? [11:41:23] nyuszika7h: With that nginx configuration, it seems you have your website in a /w directory, relative to your nginx root, correct? [11:43:23] Alright, I have short URLs now [11:43:29] But now I'm having an issue where it's loading /wiki/load.php to get my css, and since that's rewriting to /index.php, the css of my wiki is not loading [12:24:26] oops forgot the LocalSettings part [12:24:30] well he's gone no [12:24:32] w [14:05:34] Hi. How can I load a JS from my own machine? I tried adding mw.loader.load( 'file:///D:/afd.js' ); to my common.js but it is not loading the script [14:07:19] huji: You can't [14:07:28] Well, not unless you turn it into a resouce loader module that references the file [14:07:38] Hmm [14:07:44] What are my alternatives then? [14:07:47] importScript ? [14:08:08] Basically, I want to work on a module, but I don't want to edit it on wiki [14:08:13] is there a way to do that? [14:08:14] ResourceLoader [14:08:33] ResourceLoaderFileModule [14:08:38] "ResourceLoader module based on local JavaScript/CSS files." [14:09:08] hmm [14:09:14] do you have an example in mind? [14:11:26] What's wrong with just registering a normal resourceloader module? [14:11:29] That's all you need to do [14:12:03] and add it to a page [14:12:04] "ResourceModules": { [14:12:05] "ext.securepoll.htmlform": { [14:12:05] "scripts": "ext.securepoll.htmlform.js" [14:12:05] }, [14:12:05] "ext.securepoll": { [14:12:07] "styles": "ext.securepoll.css" [14:12:09] } [14:12:11] }, [14:12:20] just gotta be in the right path [14:12:40] the question is, if I put it in a local file (/home/huji/blah.js) how do I load it? [14:12:43] using importScript? [14:12:50] I don't think you can [14:12:57] Just do it properly... It's easier :P [14:13:10] well then is there anyway for me to load local files at all? [14:13:22] in the old days (before RL) importScript would allow you to do that [14:13:32] I honestly don't know :) [14:13:43] You'd need to ask one of the JSy people [14:13:58] anomie: would that be you? [14:14:06] thanks anyway Reedy [14:16:37] huji: I'm not all that JSy. But I wouldn't be surprised if browsers refuse to load file:/// URIs for non-file:/// pages for security reasons. Try an extension like https://en.wikipedia.org/wiki/Greasemonkey? [14:17:03] anomie: good point [14:17:14] I'm not sure why a RL wouldn't work.... Load it properly, always enable debug mode [17:42:28] I have a quick question for (old) developers - about the access control implementation <= 1.5.0 [17:44:39] uh, 1.5.0 is pretty ancient... [18:02:45] Hey guys, this message keeps showing on top of my page, can any one tell me what it is? "Warning: wincache_ucache_cas() expects parameter 2 to be integer, string given in D:\web\localuser\syslife\www\wiki\includes\libs\objectcache\WinCacheBagOStuff.php on line 58" [18:40:16] legoktm: indeed - I'm doing an evolution study. It looks like that the RBAC configuration is hardcoded in includes/User.php. Am I seeing that right? [18:40:43] RBAC? [18:40:49] well let me find a copy of 1.5.0... [18:40:51] role-based access control [18:41:11] legoktm: git checkout 1.5.0 :) [18:41:24] actually, pre-1.5 [18:41:50] git checkout 1.4.3 [18:43:13] okay yes, user groups and permissions were and still are in User.php [18:43:48] well, no longer hardcoded like that [18:43:52] https://github.com/wikimedia/mediawiki/blob/REL1_4/includes/User.php#L797 [18:44:54] legoktm: was that done always like that < 1.5 ? [18:45:13] or it changed a lot version to version/ [18:45:15] ? [18:46:28] not exactly [18:46:56] https://github.com/wikimedia/mediawiki/blob/d82c14fb4fbac288b42ca5918b0a72f33ecb1e69/includes/User.php is Lee's first revision [18:47:13] it looks like it was all group based [18:47:21] User::isSysop() and User::isDeveloper() [18:48:11] then at some point it switched to a distinction between groups and rights - groups have certain rights, and the code checks for those rights, rather than group membership [18:48:13] I was about to say the same thing - looks like the checks were done using those isXYZ() calls [18:49:36] any idea when rights were introduced? [18:51:45] lets see [18:51:47] evolution study, wonderful; malaverdiere, make sure to advertise it on https://www.mediawiki.org/wiki/Manual_talk:MediaWiki_architecture when ready [18:57:02] malaverdiere: https://www.mediawiki.org/wiki/Special:Code/MediaWiki/6066 [18:58:12] I think it definitely changed since then, but that appears to be the initial implementation [18:58:48] (sha1 is 28ea816fbafe96825d3c35187a12cadafca6905f) [19:05:04] legoktm: Nemo_bis thanks [19:06:56] legoktm: that's the not-hardcoded kind! In newer versions, the defaults are in includes/DefaultsSettings.php - what about those older versions? [19:08:59] hmm [19:11:57] malaverdiere: a6d47f47ffb57840625997063ce01a93d204cdc2 / https://www.mediawiki.org/wiki/Special:Code/MediaWiki/9367 [19:13:13] * saper feels sentimental watching Special:Code links [19:13:14] phase3/config/index.php ? [19:14:02] config/ actually refers to the MW installer [19:14:34] I see that wgGroupPermissions shows up in includes/DefaultSettings.php [19:16:32] Looking on the git log that day, I'm seeing 0863dca4e0b949c6c7123f57b5c3f02bf8e197a0 [19:18:03] it looks like this appeared in 1.4 [19:19:30] legoktm: thanks a lot! [19:19:56] np, glad to help. I'd love to read your study once you're done [19:20:18] Nemo_bis: what do you have in mind? that page looks empty - so I don't have a clear inspiration :) [19:21:15] legoktm: I'll ping you sometime in 2017 :) Takes time to do the research, write the article, get it accepted, etc. [20:21:52] +/1 [20:47:54] legoktm: I have one last question regarding that old 1.4.x code. I see that 'asksql' is assigned twice - first to nobody, then to 'developer' - isn't the second assignment going to override the first? [20:48:14] or is that old PHP behavior that worked differently? [20:49:05] uh, do you have a link to the code again? I closed my windows already [20:50:54] http://pastebin.ca/3733526 [20:51:38] (couldn't find the commit - so its just simpler that way) [20:52:16] malaverdiere: yes, multiple array key's that are the same don't work [20:52:22] I think the later one overrides, yes [20:56:35] Reedy: I hope there wasn't security-critical checks relying on 'nobody' :$ [20:56:46] Anyways, that's ancient history [21:15:04] Am using mediawiki with nginx and php-fpm, when I point my browser at https://mywiki.net/wiki/Special:ListFiles the file "Special:ListFiles" is not rendered like all *.php files but is served as a file to be downloaded. How can I get Special:ListFiles to be rendered like other PHP files? [21:33:22] Daemonik: what does https://mywiki.net/wiki/Main_Page do? [21:33:36] Daemonik: that's probably your short url setup problem [21:38:24] saper, Main_Page works perfectly fine [21:41:36] saper, http://pastebin.ca/3733542 is what the relevant part of conf.d/mywiki.net_.conf looks like. [21:45:50] Daemonik: and any other page, like /wiki/Test ? [21:46:43] Daemonik: since without @rewrite it should not probably work [22:03:26] wiki/Test provides a the PHP file as a download rather than rendering, I have the @rewrite lines and config chunk in the pastebin above commented out now, restarted php-fpm and nginx, wiki/Test still comes in as a flie [22:30:45] Daemonik: you need the @rewrite rule for it to work [22:31:01] saper, Can you point me to a valid example? [22:31:05] Daemonik: Main_Page works only because it gets redirected to index.php [22:31:15] !shorturl | Daemonik [22:31:16] Daemonik: To create simple URLs (such as the /wiki/PAGENAME style URLs on Wikimedia sites), follow the instructions at or try the new beta tool at . There are instructions for most different webserver setups. If you have problems getting the rewrite rules to work, see !rewriteproblem [22:31:40] did you try the redwerks site? [22:47:34] Thank you saper I think you have pointed me in a good direction I will try these things. [23:12:39] hey all, question, how to prevent from multiple concurrent login by same user in mediawiki? thx in advance