[02:44:16] Is there any way to create a new WebRequest object that doesn't take after the global request? I'm trying to make a DerivativeRequest with an extension that is made whenever a page is edited. It gets a list of recent changes right after the edit and before the page refreshes, but the recentchanges list doesn't include the current page edited. It will only include it after I edit some other page [02:44:45] I tried unsetting all the values of the WebRequest with unsetval and there's no effect, seems like there's data coming from somewhere else [02:59:35] hey [02:59:40] http://vaporwave.wiki/wiki/User:FactoryDefault/Sandbox [02:59:49] Is there any way somebody can diagnose the issue here? [03:00:03] I'm trying to implement Template:LangSwitch [03:05:43] shmn01: where did you import that code? [03:05:49] https://www.mediawiki.org/wiki/Extension:Scribunto#Usage [03:06:14] Try langSwitch (lower camelcase) instead of LangSwitch [03:06:35] OH-: I copied these scripts: [03:06:36] https://commons.wikimedia.org/wiki/Template:LangSwitch [03:06:43] https://commons.wikimedia.org/wiki/Template:Autotranslate [03:06:49] https://commons.wikimedia.org/wiki/Module:Fallback [03:07:19] there was one more Fallback related thing I added as well [03:07:53] Yes, make sure the second parameter of #invoke is case sensitive [03:08:41] which mod/template should I edit for case sensitivity? [03:09:12] For example, Template:LangSwitch you used #invoke fallback|LangSwitch instead of langSwitch [03:09:58] http://vaporwave.wiki/index.php?title=Template:LangSwitch&action=edit [03:10:24] oh wait [03:10:29] i think I found it [03:10:34] Template:Autotranslate [03:10:47] in this one, some of the capital letters are messed up [03:11:09] fixed it [03:11:26] still getting errors though [03:12:28] does "Function" in the error message refer to a missing template? [03:13:26] The template uses {{#invoke: Fallback|LangSwitch}} [03:13:36] It goes to Module:Fallback and looks for a function named "LangSwitch" [03:13:42] The actual function is named "langSwitch" [03:15:20] Right, but in my site's coding, the function is named LangSwitch [03:15:37] unless the template location and function name are seperate [03:16:08] Function refers to the _function_ name in the Lua code: http://vaporwave.wiki/wiki/Module:Fallback [03:17:03] function != template [03:18:17] http://vaporwave.wiki/index.php?title=Module:Fallback&action=edit [03:18:29] I'm looking for the mention of LangSwitch in the code [03:22:59] or at least where LangSwitch is mentioned towards the module [03:24:01] Template:LangSwitch uses Module:Fallback, and not the other way around [03:24:35] I would think editing Template:LangSwitch to use {{#invoke:Fallback|langSwitch}} would fix the issue at hand. [03:25:30] hey, it works now! [03:25:34] thank you so much! [03:25:50] \o/ [03:26:07] using this, I'll be able to translate infobox stuff and still use Extension:Translate! [03:26:25] Best of luck with your wiki [03:26:44] thank you very much [03:27:06] i realize it doesn't seem very serious right now, but i'll be putting a lot of work into this project [03:28:03] Every project starts out small :) [03:29:12] so does the LangSwitch function base what translation it called by the subpage the line is in? [03:29:38] i.e. loading the japanese translation if the page is on "PageName/ja" [03:31:18] I'm not entirely sure, you'll have to ask someone else [03:31:40] ok, i'll just experiment with it a little [03:41:38] http://vaporwave.wiki/wiki/User:FactoryDefault/ja [03:41:42] odd [03:41:57] maybe it works when used with a page that is really translated [03:42:20] instead of just a similarly-named page [03:50:17] OH-, do you know if this works only in translated pages or not? [03:50:31] I tried to change my language, but it didn't affect the page [03:53:06] I think you need to have a translation of the page somewhere [03:53:23] else it defaults to english/whatever default [03:54:47] I thought so, thanks [03:56:03] I'm guessing changing terms in infoboxes through LangSwitch would work fine [04:15:53] http://vaporwave.wiki/wiki/%3F%3F%3F%3F%3F%3F%3F%3F/pt-br [04:16:09] http://vaporwave.wiki/index.php?title=Template:AlbumInfobox&action=edit [04:16:18] Do you know why this doesn't work? [04:23:15] OH-, i'm sorry to tag you again but I'm almost fully prepared here [04:37:09] hello? [04:48:51] Hi! [04:49:43] do you know about Extension:Translate working in tandem with Template:LangSwitch? [04:50:13] .wiki! [04:51:18] What's the issue? [04:51:31] http://vaporwave.wiki/wiki/%3F%3F%3F%3F%3F%3F%3F%3F/pt-br highlights "português do Brasil" just fine. [04:52:31] I understand, but in the infobox, the "Information" tab should be reading "(TEST)" because of a script [04:52:50] testing again [04:53:05] http://vaporwave.wiki/wiki/%3F%3F%3F%3F%3F%3F%3F%3F/pt-br [04:53:28] after modifying the script, the template still refuses to read the subpage [04:54:34] if this works correctly, the infobox should say PT-BR instead of EN [04:57:23] even after modifying my language settings, it still refused to change [05:06:37] please, i need some help with this thing [05:06:42] i don't know why it's not working [10:51:38] a general question: if CTRL+Z/Y doesn't work while editing a mediawiki page (i.e. i can't undo/redo bits of text while writing it), what could be/is the problem? i don't have admin access to the wiki in question but would like to let the admin know how to fix the problem [10:52:19] (the commands work just fine while editing pages on other mediawiki-based wikis) [11:14:21] kaiserlich: which editor ? we have so many these days... [11:15:12] i dunno enough about mediawiki to answer that question. how can i find out which editor it is? [11:15:43] this one ? [11:15:43] https://commons.wikimedia.org/wiki/File:VectorEditorBasic-en.png [11:17:52] no, it's way more old-school looking (seems like most wikis i use are "old-school" :P) it just has a short row of grey buttons with symbols on them [11:17:59] 10 tiny buttons [11:18:24] starts with B for bold button, ends with horizontal line button [11:19:04] right. so our 'oldest' JS toolbar. [11:19:38] ah [11:20:32] well it's hard to tell, but it sounds like something is incorrectly intercepting key strokes. Possibly a piece of javascript form an extension or something. [11:20:44] hm [11:51:05] thedj interestingly, it only happens in FF on my machine, chrome, safari work fine. on a windows' user's machine it also works fine in FF [12:02:53] kaiserlich: browser extension ? [12:03:05] after disabling all add-ons and testing some more, the problem seems to be https vs. http? weird. undo/redo don't work when using a secure connection, but they work when using just http [12:05:57] and that's why it worked in the other browsers: i use https-everywhere in FF, the other browsers default to no SSL [12:24:38] however, i'm not logged in (and cannot log in – i'm told i don't have cookies enabled) on the http-only version hmmmm [12:34:20] kaiserlich: i noticed that too recently (not being able to log in using http). are you using git 1.27 version of mediawiki [12:45:10] thedj it's 1.19.2 [12:45:42] so i tested this some more... and i can undo/redo when on http and _not_ logged in [12:45:59] i CAN'T use undo/redo when logged in with my user name [12:56:40] kaiserlich: Uhm. 1.19 was supported until May 2015 and is full of security issues nowadays. [12:59:34] oups [13:14:59] well, i don't think it'll be updated soon... [13:23:25] morning [13:41:47] Is the Mediawiki Vagrant image supposed to be extremely slow? Seems to either just timeout or take forever to load on refreshes [13:54:32] CZauX: what do you mean with "refreshes"? [13:54:47] hitting the refresh button in a browser [13:57:46] CZauX: if "forever" is within few minutes, yes it may be normal [13:58:16] Check the resources available to vagrant (is your machine's CPU very busy? how about RAM?) and the modules to increase performance [13:59:54] My workstation has plenty of resources, I just expected that running mediawiki in vagrant would be about as fast as my super cheap deployed servers considering I have by far better hardware [14:00:08] Are the default resource allocation settings on vagrant not enough? [14:47:30] Yeah, the vagrant image just doesn't seem to work well. Custom skin will time timeout request until 503 but works perfectly fine in my other environments, deployed even. Guess I have to make my own environment [14:48:15] http://vaporwave.wiki/wiki/%3F%3F%3F%3F%3F%3F%3F%3F [14:48:27] I think this is the wrong way to translate templates [14:49:27] do I need to use a different extension for this? [14:56:55] CZauX: I use vagrant and it's very fast but I recall facing this issue where it was unbearably slow until I restarted vagrant and it was fast for a bit and then became slow again. I think this was because of some weird extension I was using which had a TON of dependencies. [15:24:07] Even just the default is pretty slow, about 5s or so load times for each page. My $5 DO instance is less than 600ms. I have an Xeon E3 1230-V2 with 16GB. [15:25:34] Never have had speed problems running VM's. I do a lot of dev work in VMWare with Visual studio and various environments and its pretty good. [17:50:17] I'm trying to integrate WP with MW but I'm getting a graphical error, due to it not parsing the link as css, and I'm not too sure what to do to fix it [17:51:27] The stylesheet http://site.net/w/load.php?debug=false&lang=en&modules=mediawiki.legacy.commonPrint%2Cshared%7Cmediawiki.sectionAnchor%7Cmediawiki.skinning.interface%7Cskins.vector.styles&only=styles&skin=vector was not loaded because its MIME type, "text/html", is not "text/css". [18:00:20] CZauX: vagrant won't use all those resources by default [18:04:13] hi, is there a way, how to tell if a particular revision was imported using API? [18:04:47] I mean does API have a function to determine if a revision was imported to wiki or not? [18:06:46] Nemo_bis: there's 1500MB allocated to the VM by default [18:09:43] CZauX: 1500 < 16000 [18:10:57] 1500 is still plenty for a basic web server, not to mention thats what the vagrant image comes with, so it should work, but it doesn't out of the box. [18:12:14] Yeah, MediaWiki defaults for memory management have never been sane [19:21:43] After giving the Mediawiki-vagrant instance 5000MB RAM and warming up HHVM, the image works [19:22:03] still not very fast, but certainly more reliable than xaamp [19:51:33] hey [19:51:59] I tried to mark a template for translation on my site, but the lines glitch up on pages [19:53:32] http://vaporwave.wiki/wiki/%3F%3F%3F%3F%3F%3F%3F%3F [19:54:03] the and tags show in normal pages, but viewing the template on its own page looks fine [19:54:30] shmn: try asking people in #mediawiki-i18n [19:54:42] shmn: my advice is, don't use Translate. :/ [19:54:50] the last time I went there, literally nobody was in the room [19:56:02] and I already have a couple translations hosted through Translate and I have no clue how I would make language choices that automatically change links to the right subpage [19:57:15] so I'm kinda trapped with Translate unless i can get some complicated setup like the TF2 site has [19:57:38] shmn: mediawiki.org has this: https://www.mediawiki.org/wiki/Template:Translatable_template - don't ask how it works [19:57:47] how does it work [19:58:01] ;) [19:58:03] !worstcase [19:58:03] Generally, the worst that can happen is that someone compromises your site, steals your data, deletes it and replaces it with kiddy porn. Then they start a spam service on your server advertising the kiddy porn to twenty million email addresses, daily. Then your home gets raided, you get fired and your wife leaves you. Then you get killed in your sleep by ninjas. [19:58:04] i have no idea, and i hope to never hand to find out [19:58:11] have to* [19:59:10] this looks [19:59:13] doable [19:59:16] thanks [20:01:12] uh [20:01:20] do you know what makes a template "Translatable?" [20:01:38] maybe that just means I added the translate perimeters to the template [20:01:40] which i did [20:14:59] hi, does API have a function to tell if a revision was imported to wiki or not? [20:22:03] I'm trying to set up mediawiki mail using my Gmail account, but Google keeps bouncing back all mail it sends, saying "message rejected". Any ideas how I can fix this? [20:23:01] I don't know if google allows general smtp. Check their help [20:23:13] What is the complete error message? Any error ID? [20:24:14] Full error: Delivery to the following recipient failed permanently: @gmail.com Technical details of permanent failure: Message rejected. See https://support.google.com/mail/answer/69585 for more information. [20:24:36] I was following the instructions here: https://www.mediawiki.org/wiki/Manual:$wgSMTP [20:25:46] I assume Google's just assuming all automated mediawiki mail is spam [20:27:54] Oh you mean sending to your gmail account, not sending with your gmail account [20:28:23] Well, no, I mean sending with my gmail account. I want to use gmail instead of trying to figure out how to set up my own SMTP server. [20:28:28] err, nevermind, you mean sending with [20:29:40] It might be that the From address doesn't match your address, or something like that [20:30:01] or that the amount of email that mw sends is enough that it makes google think its spam [20:30:19] I've checked that it does, and it's bouncing back to the gmail account I'm trying to send it from so I don't think that's the issue. [20:30:28] I've only sent 2 test emails so far so it's not a volume problem either. [20:30:32] I'm just trying to get it working at all. [20:30:45] It looks like MW is sending the email fine but then Google says "no, that's sketchy, we're not putting it through" [20:30:55] Oh, so its accepting it at smtp, but then rejecting on delivery? [20:31:03] Yes, that seems to be the case. [20:32:12] hi, some experts on api here? [20:33:58] auvajs: There's a couple [20:34:33] Ecliptica: Try to view the "original message" version of the bounced mail. The headers might say something about why rejected [20:34:59] bawolff: does API have a function to tell if a revision was imported to wiki or not? [20:35:23] You could try and maybe look in the log [20:35:46] or other things like see if the revision id seems to be out of order relative to the revision timestamp [20:36:03] by log, I mean ?action=query&list=logevents [20:36:11] bawolff: there's a list of imports but not of the revisions [20:37:05] bawolff: yeah I found this [20:38:47] logevents: has pageid, logpage, params - one of them is count [21:06:49] I'm trying to override mediawiki.skinning.interface in my skin.json [21:06:59] but it doesn't seem to be having any effect [21:07:13] the next line is working fine for mediawiki.legacy.shared [21:08:07] don't override core modules, override styles from them instead. even !iportant is better than this [21:08:14] * !important [21:09:40] "+mediawiki.legacy.shared": "skinStyles/mediawiki.legacy.shared.css" [21:10:07] that one is working [21:10:29] this is not > "+mediawiki.skinning.interface": "skinStyles/mediawiki.skinning.elements.css" [21:10:38] are you saying not to do it this way? [21:11:58] imagine you update MW. core modules have changed - now you have to adapt to these changes. also, what about other skins that might be using this module? [21:12:14] i'm appending to them, not overwriting directly [21:12:28] as in, in my own skin folder, i've got css files [21:13:01] using ResourceModuleSkinStyles in my skin.json [21:13:18] I think I know what's your problem is, but please do what I said. CSS has "cascading" in it for a reason ;) [21:13:29] that's what i'm doing... [21:14:04] for legacy.shared, when i check resource loader, it loads the default one, and then the one i modified [21:14:18] which is the expected result [21:14:29] no. you're changing a core module while you should just add your styles to your own skin's modules [21:14:35] sorry if I was unclear [21:15:08] i'm probably being unclear [21:15:17] this is what i understand from the docs/what vector is doing [21:17:00] w/load.php?debug=true&skin=vector&modules=jquery.ui.menu [21:17:37] actually, w/load.php?debug=true&skin=vector&modules=mediawiki.special is probably a better example [21:18:00] or am i understanding the purpose of this module wrong? [21:20:17] I'm running Mediawiki on an Apache server. Is it possible to use an HTML file as a landing page rather than redirecting the root to the Main Page on the wiki? [21:20:50] I'm running MW on the server but I want to have other pages as well, and I don't want the wiki to appear by default [21:21:02] i.e. I want to have to link to the wiki from some kind of landing page [21:21:13] Ecliptica: yea, that works, just put your index.html in the root folder [21:21:19] and the wiki installation in /w/ [21:21:31] Okay, thanks, I'll try that [21:21:52] this may help: https://www.mediawiki.org/wiki/Manual:Short_URL < this may [21:23:21] I've been following that short URL guide but it's actually what messed me up haha [21:23:40] I had it as domain.com/index.html was my landing page, and domain.com/mediawiki/index.php is the wiki [21:23:52] MatmaRex: What's the purpose of ResourceModuleSkinStyles (as opposed to using ResourceModules directly) if not to extend the existing modules? [21:23:53] I shortened the URL but that caused domain.com to redirect to the wiki [21:24:19] I tried what you suggested and moved the wiki files into /w/ and added index.html where they used to be but now it gives a "not found" error [21:24:31] Ecliptica: I just try to make everything look like wikipedia :P [21:24:57] Ecliptica: you'll have to update your localsettings.php to work with it [21:25:01] UserProd: That's what I want too, except that I want a landing page that says something like "click here to go to the wiki, click here to go elsewhere etc." [21:25:31] right now, i have an index.html in my root that just redirects, but it should be possible to put anything there [21:25:55] you'll also have to mess around with rewrite rules [21:26:09] hm [21:26:28] as it is now, domain.com gives a 404, domain.com/index.html goes to my landing page, and I can't seem to get to the wiki at all anymore haha [21:26:31] this page seems to have a tutorial, i haven't tried it though : http://shorturls.redwerks.org/ [21:26:32] I'm moving it back out of /w/ [21:26:40] what's in index.html? [21:26:50] Yes, I used that page, it actually generates the code for you [21:26:59] Just a text string in index.html atm, just testing it [21:27:41] 404 for what file? [21:27:44] When I followed the instructions in that link, it did shorten my URL and everything worked fine as far as the Wiki is concerned, but domain.com redirects to Main_Page now [21:27:45] what is it looking for? [21:28:01] domain.com gives a 404, need to put in domain.com/index.html to get to the index now [21:28:36] that might be an apache config, to tell it to look for index.html [21:28:44] or a rewrite rule [21:28:55] Okay, I can look into that [21:29:04] I don't really want to leave it as it is though since I can't even figure out how to get to the wiki now [21:29:10] Not even sure what path to redirect to [21:29:17] domain.com/wiki/main_page doesn't go anywhere [21:29:18] all trial and error :D [21:29:32] I'm seeing that [21:30:58] maybe it would be easier to change the link to something like domain.com/something/wiki/? [21:31:28] I've set it to how it was before, so when I go to domain.com it redirects to domain.com/wiki/Main_Page automatically [21:31:41] But tbh I don't know where it's specifying the redirect [21:31:50] $wgScriptPath = "/w"; [21:31:53] did you set that? [21:31:59] oh wait [21:32:02] so you got shortening working [21:32:07] but now you've gone back to default? [21:34:01] RewriteRule ^/?$ %{DOCUMENT_ROOT}/w/index.php [L] <<< delete this rule i think [21:38:07] Okay, trying it [21:38:57] UserProd: That worked! :D Thanks so much! [21:40:01] np [21:42:13] hi, i am wondering if there is anything unsafe about a modification i have made to my wiki [21:43:02] Ratburntro44: we'll need more details in order to accurately judge that [21:43:14] also depends on what you mean by "unsafe" [21:43:14] sorry, i am typing it out [21:43:23] kk :) [21:43:44] i want it to work on multiple different domain names so in LocalSettings.php i altered it to check if $_SERVER['SERVER_NAME'] is in the list of allowed domains, and if so, use that to generate the $wgServer variable from that domain. if it not in the allowed list, it defaults to one valid domain [21:44:33] you'll want to wrap that in a check for $wgCommandLineMode or else you'll run into troubles running maintenance scripts [21:44:36] (such as update.php) [21:44:40] otherwise seems fine [21:44:50] ok thanks [21:46:43] also consider setting $wgCanonicalServer [21:46:53] here's an example from one of my wikis (give me a min ot pastebin it) [21:48:36] Ratburntro44: http://dpaste.com/3KNTW6P is how I do it on one of my wikis [21:50:26] it should be simple to expand that to cover multiple domains :) [21:50:58] ok thanks looks good [21:51:23] nice to meet you all roo [21:53:01] Ratburntro44: I should clarify that my example is to allow multiple domains to connect to the *same* wiki, not using a single wiki installation for multiple different wikis (e.g. a wiki farm) [21:53:10] what I pasted won't work for the latter [21:53:14] yes that is also what i am doing [21:56:21] Question: what is the magic that associates a main page for each meaningful category ? For example, "Category:Sports leagues" has a main page "Sports league", which comes under section "Pages in category "Sports leagues" and before the alphabetical sortings [21:57:47] Is it by some template? I just feel that it is so dark and intransparent, as I looked at https://en.wikipedia.org/wiki/Special:Export/Category:Sports_leagues , and cannot match any string literals [22:13:25] yanggao1119: look at the page itself, https://en.wikipedia.org/wiki/Sports_league [22:13:39] it's just categorized with an empty sort key. [[Category:Sports leagues| ]] [22:14:16] https://www.mediawiki.org/wiki/Help:Categories#Sort_key [22:30:06] MatmaRex: I searched in https://en.wikipedia.org/wiki/Category:Sports_leagues and https://en.wikipedia.org/wiki/Special:Export/Category:Sports_leagues ; cannot find "[[Category:Sports leagues| ]]" [22:30:41] yanggao1119: https://en.wikipedia.org/wiki/Sports_league [22:30:45] not the category, but the page [22:30:53] https://en.wikipedia.org/w/index.php?title=Sports_league&action=edit at the bottom of the text box [22:35:08] MatmaRex: I see! smart!!! so the vertical bar | separates what and what? [22:35:54] yanggao1119: the category name and the sort key. see https://www.mediawiki.org/wiki/Help:Categories#Sort_key [22:41:08] MatmaRex: ah, so if the sort key is empty string, it comes first and before or alphabets. other categories sort by the first letter and are put under alphabets. right? [22:41:31] yeah [22:52:45] MatmaRex: so * and empty string seem to be two cases where a main page is associated with a substantial category. Are there other sort keys for this purpose ? [22:54:29] yanggao1119: possibly, i don't know if there are any guidelines, sorry [22:54:49] yanggao1119: potentially any character that sorts before letters/digits could be used (https://en.wikipedia.org/wiki/ASCII#ASCII_printable_code_chart)