[00:12:56] marktraceur: well, messed with it for an hour [00:13:02] still no further forward [00:13:35] turns out I didn't have the Widgets installed when I created Widget:Iframe [00:13:41] so I deleted the page from the db [00:13:43] and recreated [00:13:46] o/ [00:13:54] now I have Widget:Iframe in my Widget namespace [00:13:59] and no longer duped in Main [00:14:02] but it's still broken [00:14:07] I want to offer mediawiki instances on my vps [00:14:26] plural, on a vps, with mysql on the same vps? [00:14:28] I would like to know if its more advisable to set up seperate mediawiki installations [00:14:31] or a farm [00:17:35] aelevadoan: that's a broad question [00:17:45] how many do you plan to host, what kind of load, etc [00:17:59] I just installed medaiwiki today, but these are not mediawiki specific questions really [00:18:02] I dont know how many, I suppose several [00:18:15] what do you mean with "what kind of load"? [00:18:17] well, I'd suggest at least have a seperate vps for databases [00:18:26] I mean - what kind of load on the various hosts do you expect [00:18:28] For now I only have this vps [00:18:33] how can you expect someone to answer how to host stuff [00:18:36] if you don't really know [00:18:43] what you plan to host [00:19:00] a vps should be able to run multiple deploys, and a database, if it's not high load [00:19:01] I have a 50gb vps host [00:19:10] it will be limited load [00:19:12] disk size irrelevant mostly [00:19:23] they will be small community wikis [00:19:48] what I was wondering is that if they are going to be independant wikis [00:19:52] if its worth doing a farm [00:20:20] like I said, I only installed mediawiki today [00:20:22] so I have no idea [00:22:23] aelevadoan: if you have no reason to run different versions of mediawiki, make a farm. if you set it up right, it will save you a lot of work [00:22:33] (if you set it up wrong, it will mess things up bad) [00:22:51] DanielK_WMDE_: what do you mean by setting it up bad? [00:23:48] Getting pathes mixed up, etc. Setting up a farm takes a bit of fiddeling. Though the Farmer extension should take care of most of it for you. If you are willing to risk running it... [00:23:53] DanielK_WMDE_: I was checking a tutorial that recommended creating symlinks from the initial wiki to the second wiki [00:24:07] except the LocalSettings.php, images directory and mw-config directory [00:24:11] having a web interface for configuring the server always feels scary to me. too easy to hack in... [00:24:27] DanielK_WMDE_: I prefer doing the fiddeling [00:24:30] symlinks are not needed, rewrite rules work better imho. [00:24:39] DanielK_WMDE_: which way is that? [00:24:47] the magic is really in how you set up your gobal LocalSettings, and how you manage the settings for the individual wikis [00:25:21] DanielK_WMDE_: do you have any link of a documentation? [00:25:26] you basically write an "active" config file. php code that decides which settings to use, based on the Host header or request path. [00:25:40] not offhand, but maybe the bot does [00:25:41] !farm [00:25:41] To run multiple wikis, you can simply install MediaWiki in different folders, with different databases or in one with database prefixes. You can also have multiple wikis using a single installation: If you run a farm or want to, join the mailing list: [00:25:44] :) [00:26:16] not sure how good that documentation is... maybe i'll write a howto one day. in my copious free time [00:27:08] DanielK_WMDE_: I tried the scenario 1 of that documentation which is via symlinks [00:29:37] you can use symlinks or rewrite rules, but you need to diferentiate between the wikis in the LocalSettings.php file in any case. [00:29:55] like this: https://www.mediawiki.org/wiki/Manual:Wiki_family#Scenario_2:_Quick_set-up [00:30:40] eek, the "Updating wikifarm from the commandline" is a nasty hack :/ [00:31:26] DanielK_WMDE_: in scenario 2 I share the same images directory for all the wikis, right? [00:31:53] I wanted to see which is the easiest way for backing up each mediawiki individually, afterwards [00:32:07] i didn't read in detail, i don't think the "scenarios" described are really complete or exclusive. that page is a bit of a mess :( [00:33:22] aelevadoan: if you have a wiki form set up right, each wiki has a separate database and a separate image dir. you can make an xml dump using dumpBackp.php --wiki whatever. [00:34:16] DanielK_WMDE_: scenario 1 and 2 on that wikipage are with the same databse [00:34:19] i have no experience with a shared image dir. i'd do this by setting up a separate wiki as a common file repo, mediawiki has special support for this (that's how wikimedia commons works) [00:34:59] aelevadoan: you can have separate databases or use table prefixes. separate is nicer. [00:35:06] DanielK_WMDE_: what do you mean by setting up a separate wiki as a common file repo? [00:35:06] has nothing to do with using symlinks or not. [00:35:19] DanielK_WMDE_: Im interested in trying that way [00:35:25] seperate databases [00:36:31] DanielK_WMDE_: is this scenario 3? [00:36:41] https://www.mediawiki.org/wiki/Manual:Image_administration#Foreign_Repositories [00:37:50] aelevadoan: the "scenarios" are useless. you have several independent choices: symlinks or rewrite rules, shared images or separate, shared database or separate, wiki by domain or by path (or even request parameter). [00:38:19] in all cases, you need some sort of dispatching logic in your localsettings, as shown in "scenario 2". [00:38:45] * DanielK_WMDE_ grumbles at crappy documentation [00:39:12] you recommended rewrite rules before, right? [00:39:25] aelevadoan: seems like people just wrote down what they did on the help page, in more or less detail. would be nice to describe the different choices and techniques separately. [00:40:17] DanielK_WMDE_: is the rewrite rules option complicated? [00:40:18] aelevadoan: yes, rewrite rules, separate databases, shared images via ForeignDBRepo (or "instant commons" if you want to use commons.wikimedia.org as your shared repo). [00:40:42] I dont need shared images [00:41:05] rewrite rules, separate, separate db and wiki by (sub)domain [00:41:13] i don't find it complicated. there are several approaches for that two (mainly, for apache, rewrite rules or aliases). it depends on the web server you are using. [00:41:32] but really... you can get away without even that [00:41:46] just mapp all the domains to the same wiki installation, and have a "dispatcher" in your localsettings [00:41:59] you may want rewrite rules for pretty urls, but you can farm without. [00:42:37] (see https://www.mediawiki.org/wiki/Manual:Short_URL if you are interested in rewrite rules, but you can skip that for now) [00:43:08] when you say map all the domains to the same wiki installation [00:43:23] you mean through the virtual hosts in etc/apache2/sites-available? [00:43:29] yes [00:44:22] aelevadoan: i'm about to go to bed... you can find me here again in 12 hours or so :) [00:44:32] DanielK_WMDE_: thanks very much [00:44:35] just one more thing [00:44:44] what do you mean by dispatcher? [00:46:30] aelevadoan: a switch statement like the one shown in https://www.mediawiki.org/wiki/Manual:Wiki_family#Scenario_2:_Quick_set-up [00:46:45] thanks [00:46:48] it picks the config for a given wiki based on the host name [00:46:51] have fun :) [00:47:01] DanielK_WMDE_: thanks, see you son [01:43:57] Is there any problem when jenkins-bot does not run? I have submitted the bug https://gerrit.wikimedia.org/r/#/c/183406/ it ran for the first patch set but it did not for the second patch set [01:46:41] recheck :) [01:49:56] Is there any problem when jenkins-bot does not run? I have submitted the bug https://gerrit.wikimedia.org/r/#/c/183406/ it ran for the first patch set but it did not for the second patch set [01:50:22] Sometimes it's broken [01:50:25] It's run it now [01:58:18] What is build test failure with non-voting? [02:06:19] Phoenix303: it means that it will be possible to merge the change even if that test is failing [02:06:45] Phoenix303: in practice, it often means no one cares about that test. :) [02:06:55] Yes MatmaRex [02:07:04] okay thanks :) [02:07:32] How can i get help for code review? Any suggestion? [02:20:24] I am wondering if anyone can tell me if it's possible to layer images (put one on top of another) in wikiscript? [02:27:18] TheRetroGamer, perhaps copy this template https://en.wikipedia.org/wiki/Template:Superimpose [02:29:30] Thanks, that might be useful. [04:53:38] o/ [04:53:43] anyone here has a mediawiki farm? [05:08:55] aelevadoan: I do. [05:09:07] Yaron: o/ [05:09:18] o/ to you! [05:09:19] Yaron: and how did you create it? [05:09:49] It took a lot of work. But it doesn't have to, depending on what exactly you need it to look like. [05:10:09] Mine took a lot of work because I needed it to be super-automated. [05:10:12] I want seperate databases [05:10:19] Alright. [05:10:26] and seperate image directories [05:10:31] Did see the "Wiki family" documentation? [05:10:35] yes [05:10:45] but Im confused [05:10:53] Ive seen there are several ways of doing it [05:10:56] both with symlinks [05:10:59] and rewrite rules [05:11:09] having several LocalSettings files [05:11:11] etc. [05:11:39] You should do the "Drupal-style" approach - that's the only good one, in my opinion. [05:11:56] let me check it again and ask you for guidance [05:11:58] one second [05:19:12] Ah, going to sleep - talk later. [06:43:32] Sigh, still https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx [07:19:28] Nemo_bis: yeah, composer's installer is pretty bad. And it's not packaged for any distros afaik except in homebrew :/ [09:47:07] Hey folks. When I submit changes to a page on my wiki, I get a screen that says this: "Sorry! This site is experiencing technical difficulties. Try waiting a few minutes and reloading. (Cannot contact the database server)" [09:48:08] But it only happens to 1 page. [10:16:25] Hey folks. When I submit changes to a page on my wiki, I get a screen that says this: "Sorry! This site is experiencing technical difficulties. Try waiting a few minutes and reloading. (Cannot contact the database server)" [10:51:11] Hello? [13:19:18] Hi theatrex. [14:27:02] Can anyone tell me, is there a MediaWiki extension that will allow for "in-page editing", where you can edit a section of an article and then save those changes without loading a new Edit page? [14:29:49] frogsy: no [14:30:23] frogsy: There's VisualEditor, but no, not with Wikitext [14:30:33] And not per-section. [14:30:41] So basically we have failed on every level of your requirements. [14:30:53] I will look into buying seppuku implements. [14:31:38] Hah. Damn. [14:32:24] Fiona: Hello! Can you help me? :) [14:32:30] frogsy: It seems like the sort of thing that wouldn't be too hard, though [14:33:09] theatrex: Your error message says that MW can't connect to the database, so maybe check that your database configuration is correct [14:33:43] marktraceur: Well yes it is correct. It's only 1 page that gives me that error. [14:33:57] Delete it [14:34:01] frogsy: There's already an edit section link on every section, there's already an API method for getting section wikitext (I think...) and there's definitely an API method for saving pages [14:34:06] Reedy: Hush [14:34:21] theatrex: Maybe you could tell us what page it is [14:34:45] My minds gone blank.. One of Roans uni friends did a POC type thing for this inline editing [14:35:11] I could just copy the code out of it, delete it, then make a new page couldn't I? [14:35:20] marktraceur: See, that's what I thought. Replace the section you want to edit with a textarea containing its wiki markup, add a button that submits its contents to the save-new-page API endpoint, then load in the new section via AJAX. But I don't know enough about MediaWiki to say it's easy without knowing all the details [14:35:23] theatrex: I doubt that would help [14:35:26] I suppose there's a reason no one's done it yet? [14:35:49] frogsy: I'm not *totally* confident that you could parse only the section. [14:35:56] You would need to get the full page text [14:36:05] Which is fine, you can still do *that* through Ajax. [14:36:13] Not if you have things like references that may refer to multiple parts [14:36:21] (also, things I learned later than I should have: "AJAX" isn't an acronym anymore) [14:36:31] Reedy: Exactly. [14:36:49] Oh, it's just Ajax now? [14:36:49] Or behaviour switches... [14:36:55] frogsy: Right? Seems silly to me. [14:36:59] Makes sense since it seems like 90% of people aren't using it with XML anymore, I guess. [14:37:10] Anyway, you should be able to do this in a gadget or a user-script [14:37:12] !userjs [14:37:12] There is no such key, you probably want to try: !javascript, [14:37:16] !javascript [14:37:16] To set up custom javascript on a wiki, edit the page called [[MediaWiki:Common.js]] (NOT a file, a page on your wiki, which is included via