[04:31:44] What does a "500 MediaWiki exception" error mean, and why do only some pages do it? [04:33:25] zzo38: it means the server encountered an error while trying to generate the page. where are you seeing this? [04:34:13] On All The Tropes, hosted on Orain. I asked them already; they haven't answered yet. [04:43:01] zzo38: detailed error reports are liable to contain sensitive data, which is why they are not always shown to the user. but they are logged on the server. so you'll need to wait for orain's reponse, i'm afraid. [04:44:31] I (usually) get a cached copy and something saying, oops it doesn't work please try again later. However, some files work properly. [04:45:57] Sometimes I get multiple copies of the "Sorry! This site is experiencing technical difficulties" message. [04:47:33] zzo38: probably best to report it in #orain [04:48:14] I did. They replied just now, in fact. [04:50:47] yay! [09:27:35] Hmm " Importazione non riuscita: Content of User:Moudy83/conference_papers is not valid! Content model is wikitext " http://wikipapers.referata.com/w/index.php?title=Special:Import&action=submit [09:30:26] sigh, http://wikipapers.referata.com/wiki/User:Moudy83/conference_papers : Fatal error: Call to undefined method stdClass::getRedirectChain() in /home/yaron57/public_html/w/includes/Article.php on line 691 [09:52:53] ok, probably $wgMaxArticleSize misconfigured, notified [10:16:27] qgil: seeking feedback and accepted at the same time? https://www.mediawiki.org/wiki/Requests_for_comment/Linker_refactor [12:09:39] hi all. I'm trying to access an interface message from a user script on English Wikipedia. [12:09:59] https://www.mediawiki.org/wiki/Manual:Messages_API#Using_messages_in_JavaScript seems to suggest that for the messages to be available at client side, the site needs to be configured to include the mediawiki.jqueryMsg module [12:11:02] or mw.message / mw.msg, not sure I got it correctly. my question is, this doesn't seem to be activated on enwiki. SO how can I get the contents of a MediaWiki page from a user script? [12:19:40] Hi waldir [12:19:47] hey AndyRussG [12:19:59] I've never used a userscript, but when I need to get a message into Javascript [12:20:11] Still trying to figure this out. The documentation is rather confusing :/ [12:20:15] I have to explicitly tell ResourceLoader to send it with the ResourceLoader module [12:20:38] So I think not all messages are automatically available from JS. Only those that have been sent explicitly for JS use [12:20:42] AndyRussG: you mean in a wiki you own, or in one of the Wikimedia wikis? [12:21:29] Well, on any Mediawiki installation. You have to have server code send the message into the JS code that's loaded on the page [12:22:09] yes, I understand that; im asking this because I obviously can't configure the Wikimedia servers :) [12:22:38] still, wuldn'tit be possible t use, say, an ajax api query to get the contents of a mediawiki page? [12:22:48] I mean a page in the mediawiki namespace [12:23:10] ugh, sorry for the spelling. *wouldn't it [12:23:13] Yeah that makes sense. Maybe also a template or something else in wikitext? [12:23:43] yeah I assume one could get anything. I need to figure out how though. I'll see if I can find any examples [12:24:04] So yeah the mw.message is the route only if you can change server code, I think [12:25:10] http://www.mediawiki.org/wiki/ResourceLoader/Developing_with_ResourceLoader#Registering [12:25:53] well, I was confused because apparently jqueryMsg is loaded by default, since it's listed on this page: https://www.mediawiki.org/wiki/ResourceLoader/Default_modules#mediawiki.jqueryMsg [12:27:25] Right that's code that handles messages, but it's not the messages themselves [12:28:10] bummer [12:28:14] Though it says that it handles {{int:}}, which may be what you want. Scroll down to int here: https://www.mediawiki.org/wiki/Help:Magic_words#Localisation [12:32:08] waldir: ^ [12:32:41] Yeah, I'm reading a little, trying to figure out if I can use that. I mean, I know how {{int:}} works, but I didn't get yet how to work with it using jqueryMsg. [12:33:19] particularly, the wikitext doesn't contain it, I am adding content dynamically to a page. [12:34:12] the goal is to show a link to a user's groups in the tagline. there's a userscript that does this already, but I want to include the links, not only the names of the user groups [12:35:07] so I wanted to build something like "" + friendlyGroupNames[group] + "" [12:35:25] currently it's only showing the plain string friendlyGroupNames[group] [12:36:14] that data is already available in the mw.config js object that is present on every page [12:36:36] but not the link to the wiki page describing the user groups, of course [12:46:46] I think I found a way :) [12:55:17] AndyRussG: I'm now getting the messages as an array of objects in the format { "name": "grouppage-test-sysop", "*": "{{ns:project}}:Administrators" }, but I want to clean it up to an object whose properties will be the "name"s and the their values would be the corresponding "*". Know of any quick trick to do that? [12:59:09] waldir: Hmm, no I don't, sorry [12:59:28] np, shouldn't be hard :) [13:00:26] The best I can think of is what you've already looked at, jqueryMsg. Don't know if there's much documentation, but you can always dive into the code and see how it works, and maybe re-use some of it [13:36:16] AndyRussG: here's what I ended up doing: https://en.wikipedia.org/w/index.php?diff=626617602 [13:36:36] Nemo_bis, ref https://www.mediawiki.org/wiki/Requests_for_comment/Linker_refactor , I'm only a bureaucrat updating a wiki page based on an IRC log [13:36:51] turns out it didn't work, but I am not sure why :/ the console doesn't seem to be registering any error... [13:39:12] waldir: interesting... Yeah I haven't delved into the realm of userscripts too much yet... You know that your browser also has a JS debugger, right? Just add debug=true as a URL parameter to get the non-minified JS for debugging... [13:40:08] yeah, but I've already wasted way too much time on this today. I reverted the edit for now, and asked on WP:VPT. I'll give it another try later :) [13:40:09] ... turn on the debugger (in the developer tools), set a breakpoint and reload the page [13:40:27] Heheh I know the feeling... Good luck :) [13:43:00] thanks, and thanks for the help earlier! [16:20:41] cattivissimo me [16:34:46] Hm, I guess gab90 was a spammer - ops if you want to do something about it; but it looks like it was one-time [18:15:33] hi qgil [18:19:09] hello [18:19:16] hi genildore [18:20:28] i have what should be a simple question. https://www.mediawiki.org/wiki/Extension:AWC%27s_Forum [18:20:42] if you take a look at that link, you see on the right it has a nice information table/box with a green header [18:21:11] ive tried copying its mediawiki code, but it never shows up correctly [18:21:23] how exactly do i get a nice box like that? [18:23:54] !exporttemplate [18:23:54] exporttemplates [18:23:58] !exporttemplates [18:23:59] To copy templates from Wikipedia, use Special:Export and check the "Include templates" option to get all the sub-templates, then upload the file with Special:Import on your wiki. You'll also likely have to install the ParserFunctions extension, Scribunto extension and install/enable HTML tidy. You also might need some CSS from Wikipedia's Common.css. You'll also need a lot of... [18:24:04] genildore: ^ does that help? [18:24:44] im even more confused [18:25:03] basically im just wanting a standard wikipedia information box on the right [18:25:15] it doesn't need to be styled or anything [18:25:50] like this : https://en.wikipedia.org/wiki/Now_That_You_Got_It [18:26:06] ive read the manual on tables, but none of them look like that [18:27:45] i believe its called an 'infobox' [18:29:03] Is anyone there? [18:29:30] Hi sushmareddy! [18:29:32] What's up? [18:29:52] Hii [18:30:00] I need a help actually. [18:30:18] sushmareddy: That's perfect, we want to help :) [18:30:52] So nice of you :) [18:31:13] Actually I am trying to signup in https://wikitech.wikimedia.org/w/index.php?title=Special:UserLogin&returnto=Special%3AUserLogin&type=signup [18:31:20] genildore: sumanah linked you to the template export because the infoboxes are a set of templates. [18:31:24] !infobox [18:31:24] https://en.wikipedia.org/wiki/Template:Infobox [18:31:31] genildore: See that for example. [18:31:43] sushmareddy: OK, and you're having trouble? [18:32:18] But I am getting some errors, "There was either an authentication database error or you are not allowed to update your external account." [18:32:35] Weirdf. [18:32:43] Is it something to do with "Instance shell user name"! [18:32:56] Maybe [18:33:15] sushmareddy: What username are you trying to user? [18:33:16] use? [18:33:31] sushmareddy [18:34:16] sushmareddy: And what shell name? [18:34:32] shell name is "sushmareddy" [18:34:44] and username is "Sushmareddy05" [18:34:46] Hm. [18:35:29] ^d: Do you recognize that error? [18:35:37] nope [18:35:55] <^d> Can't say I do. [18:35:56] sushmareddy: I was talking to someone else, hold on :) [18:35:58] Hm. [18:36:13] <^d> marktraceur: My guess would be to take it at face value and something's up with ldap. [18:36:21] Fun. [18:36:47] No alerts in -operations, so... [18:36:53] Ping Coren? I don't even know [18:36:57] <^d> Coren's in -labs. [18:37:01] <^d> Ask him. [18:37:30] They're already talking about it, super [18:38:07] <^d> sushmareddy: Sounds like you're not alone at least. Wouldn't worry too much then. [18:38:28] <^d> Take an early coffee break :) [18:38:47] I am trying it from long time :( [18:39:19] <^d> Well Coren's on it now so I wouldn't worry too much. Something will be done I'm sure. [18:39:23] sushmareddy: The right people are on it, join us in #wikimedia-labs if you want to follow along [18:39:44] Ok thank you :) [18:40:03] is there a simpler way to create a basic infobox? id rather not have to install a bunch of extensions and import stuff [18:40:17] genildore: You could just write your own template that's simpler. [18:40:59] is there a simple one i could just copy? i really only need one and ill be happy [18:43:20] id just like a table with a picture at the top, with a few lines of text underneath [18:43:36] I dunno [18:43:45] Probably somewhere, but I'm not well versed in the template system [18:43:54] You could probably use the infobox template as a guide though [18:50:35] you see that cute little table here? [18:50:36] https://encyclopediadramatica.es/Online_Sports_Betting [18:50:42] i should be able to just copy that right? [18:53:35] that seemed to work [18:56:23] got it working. thanks [19:15:50] MediaWiki on multiple servers [19:15:57] Anybody got good strategies and guides? [19:16:04] bd808: ^ ;) [19:16:07] Auto scaling. Central image store. [19:16:08] Is Wikimedia a good example? :D [19:16:23] Reedy: No, because they provide information in videos [19:16:34] eh? [19:16:39] I don't have time watch 15 videos of them explaining their setup to an audience [19:16:43] It's all reasonably documented on wikitech [19:16:45] And in puppet [19:17:09] aFreshMelon: Wikimedia's server configurations are all specified using Puppet, a configuration-management tool. If you're familiar with it, it's the most concise and accurate way to see how we configure something. https://github.com/wikimedia/operations-puppet [19:17:10] you might want to maybe watch one of them to get an overview [19:17:57] How am I gonna apply to that a smaller scale project? [19:18:27] I don't have money nor resources to host extra servers for data storage and caching [19:18:44] what is it that you're trying to do? [19:18:50] what makes you think you need multiple servers, in the first place? [19:19:29] I have 40k unique daily with 200k hits [19:19:37] Peaking at 500 concurrent users [19:19:54] seems legit [19:20:02] Vulpix: Want CloudFlare screenshots? [19:20:08] I'm for real. [19:20:18] Caching for anonymous users is a big part of the scaling for Wikimedia projects [19:20:40] Yes, I cache. But Wikipedia has access to the resource they need - caching servers [19:20:50] That can blazingly quick serve shared cache [19:21:08] With super high CPU and RAM specs [19:21:24] aFreshMelon: sorry, I didn't mean to offend you nor to say you weren't providing accurate data. it was just a joke [19:21:35] Vulpix: Don't you joke at me. [19:21:38] I am a German. [19:21:41] I hate fun. [19:21:48] Fun is not efficient. [19:21:53] Exactly. [19:23:17] aFreshMelon: are most users just reading? [19:23:25] aFreshMelon: how many edits a day? [19:23:42] ori: There is a lot of very resource intensive template generation and third party data pulling going on. [19:23:47] A lot of massive stat tables. [19:24:00] And editing them, even in small amount, rams up the CPU [19:24:05] do you have *any* reverse-proxy / web-accelerator like varnish or squid in front of mediawiki? [19:24:10] if only hhvm was a little more mature for MediaWiki [19:24:40] aFreshMelon: Are you running SemanticMediawiki or anything like that? [19:24:46] No ori [19:24:51] Yes Reedy [19:24:53] aFreshMelon: what about memcached / redis? [19:25:07] ori: Yes, I use memcached. [19:25:39] apc? (just checking the obvious) [19:25:53] aFreshMelon: what are the specs of the server that is running mediawiki? [19:38:50] ori: Right now [19:38:51] Sec [19:39:19] Right now it's 8 core CPU and 30 Gigs RAM [19:51:34] Hi [19:54:21] aFreshMelon: so, set up varnish first [19:54:32] aFreshMelon: https://www.mediawiki.org/wiki/Manual:Varnish_caching [19:54:37] some more notes at http://briansnelson.com/Setup_Varnish_for_MediaWiki [19:54:46] and some updates for the article on mediawiki.org at [19:54:51] you can set it up on the same server [20:08:22] Does someone know why "MediaWiki:Anonnotice" contains an empty "

" tags in general? [20:09:50] in general? [20:10:17] usually* [20:10:52] Do you mean when/where it's used? [20:11:16] even when it's not used (fr.wikipedia use "" per example [20:11:41] Reedy: anonnotice is sitenotice for anons [20:11:57] The message definition is "anonnotice": "-", [20:12:01] Automatik: ah! that would be so the sitenotice isn't displayed to anons [20:12:15] because if anonnotice is empty, it will fallback to display sitenotice [20:12:21] ok, I understand better :) [20:26:04] ori: How to? [20:26:10] Know any good guides for Ubuntu [20:31:26] I installed the LDAP authentication plugin but it isn't working. No major erros in the log file, but I do get a Database error on login. [20:31:48] I should say, no errors in the ldap debug log [20:35:33] hmmm, is it logical that PHP Fatal Errors in core code would break Lua modules, i.e. Scribunto? [20:36:36] PHP Fatal Errors usually break everything. That's why they're "fatal" [20:37:41] lovely [20:38:46] I seem to have hit Bug49244 [20:40:49] wait im an idiot, I never ran the maintenance update script :) [20:40:50] or something similar anyway [21:13:57] How can I change the style of my wikimedia instance through it? [21:14:04] I mean, I don't have access to the server. [21:28:52] !css | mribeirodantas [21:28:52] mribeirodantas: To change styles for your wiki, go to one of the MediaWiki:xxx.css wiki page (NOT a file) and put your custom styles there (sysop/admin rights required). MediaWiki:Common.css is for all skins and should be used for content styles. MediaWiki:Vector.css is for the Vector skin (default), etc. For more information, see !skins and https://www.mediawiki.org/wiki/Manual:Interface/CSS [21:29:07] !wikipmediawiki | mribeirodantas [21:29:07] mribeirodantas: Confused about the differences between MediaWiki, Wikimedia, Wikipedia and wiki? See https://www.mediawiki.org/wiki/Wikipmediawiki [21:30:29] The name for that page is really unhelpful. [21:31:36] * marktraceur deputizes Krenair into the {{sofixit}} posse [21:31:52] it already redirects [21:32:55] Thank you. [21:40:11] mribeirodantas: No problemo [21:41:46] Gosh.. I'm trying but it still doesn't reflect what I save :/ [21:52:34] Thank you :) [22:28:02] i'd love it if wikiapiary could tell me if anyone was running Oracle as their db [22:30:34] Hey folks! [22:30:47] I have a question about templates and nested templates. [22:31:41] I'm wonder if there's a way to pass field information to templates called by templates?