[01:40:49] i moved a wiki from one folder to the other [01:41:02] and $wgDBservers stopped working [01:41:17] same details for user/password dbname [01:41:23] what could be the issue? [01:41:43] what makes you think its wgDBservers that stoped working? [01:41:57] it says database connection refused [01:42:32] if you move it back to the original folder, does it start working again? [01:43:09] yes [01:43:33] loadbalancer.php connection refused [01:45:53] where do i see that info? [01:49:09] please? [02:25:21] Taven @daegontaven posted in Any success for Mediawiki-Vagrant on GCP instances? - https://discourse-mediawiki.wmflabs.org/t/any-success-for-mediawiki-vagrant-on-gcp-instances/1065/1 [02:35:09] for the $wgDBservers to work [02:35:26] shouldnt each localsettings contain multiple entrances? [02:40:29] and it gives me a my_wiki which doesnt exist [02:44:04] any ideas please? [03:07:14] biberao: what do you mean by "each localsettings"? [03:08:35] theres multiple wikis [03:08:40] with those arrays [03:08:48] moving them to other places it doesnt work [03:09:53] biberao: they are not multiple wikis in example if you mean [03:10:06] "wikidb" is a single database [03:10:07] i know [03:10:09] which is weird [03:10:17] why is it weird? [03:10:19] i dont know how it works [03:10:29] how many wikis do you have? [03:10:33] it has a $wgDBservers [03:10:40] and each wiki has its own db [03:11:14] how many wikis do you have? [03:11:24] 'dbname' => "wikidb" is the same in each array [03:12:05] but why doesnt work moving the wiki to another folder? [03:12:27] can a little bit more clear with what your exact issue is? [03:12:33] thats it [03:12:43] with that wgDBservers moving outside another folder [03:12:46] stops working [03:12:53] it says loadbalancer error [03:12:56] moving outside another folder? [03:13:02] what are you moving and why? [03:13:13] i need to change structure [03:13:43] i need a little bit more data than that https://meta.stackexchange.com/a/66378/354521 [03:14:08] i dont know how to explain more [03:14:27] what do you mean by structure? [03:14:34] and also with a localsettings.php present when doing "php maintenance/update.php" requires me to specify the .php [03:14:46] and also with a localsettings.php present when doing "php maintenance/update.php" requires me to specify the localsettings.php [03:14:51] daegontaven: just changing the folder [03:14:57] move folder a to folder b [03:14:59] thats all [03:15:07] you can't do that? [03:15:13] why? [03:15:24] what breaks when you move a folder? [03:15:31] what i told you [03:15:36] why are you moving folders to begin with [03:15:40] stops working with wgDBservers [03:15:59] and only works with $wgDBserver [03:16:51] this is not specific at all..how would i know what stops working..folders are used throughout mediawiki for everything..simply saying folders stop working isn't specific [03:17:59] anyways, did you check your apache or nginx config to see if you updated paths? [03:18:06] yes [03:18:10] i did update paths [03:18:17] just doesnt work with wgdbservers [03:18:23] but with wgdbserver works [03:18:25] what is the error you get? 404? [03:22:29] no [03:22:40] i said when running php maintenance [03:22:43] gives me that error [03:29:14] daegontaven: [03:29:15] Cannot access the database: Unknown database 'my_wiki' (localhost) [03:29:20] i dont have that database [03:29:41] i dont know where that comes from [03:31:59] biberao: can you do this command: grep -rnw '/path/to/mediawiki/folder' -e 'my_wiki' [03:32:17] replace the first argument with your mediawiki folder path [03:33:29] i can do it [03:33:32] but i dont have that [03:33:44] i know, but just in case [03:34:02] no such file [03:34:05] or directory [03:34:24] hmmmmmm....weird [03:34:35] i know [03:36:28] and you're sure the db doesn't exist in db SHOW DATABASES; ? [03:37:15] after all [03:37:20] defaultsettings has that [03:37:25] but let me recheck the db [03:38:32] ya [03:38:38] but no my_wiki [03:39:56] how many slaves do you have? maybe it's a communication error check all dbs [03:40:08] like [03:40:15] i only got this [03:40:37] $wgDBservers = array( [03:40:38] array( [03:40:38] 'host' => 'localhost', [03:40:38] 'dbname' => 'dbname', [03:40:39] 'user' => 'username', [03:40:40] 'password' => 'password', [03:40:43] 'type' => 'mysql', [03:40:45] 'flags' => DBO_DEFAULT | DBO_PERSISTENT, [03:40:48] 'load' => 1 [03:40:50] ), [03:40:53] ); [03:40:55] [03:40:56] biberao: use a pastebin please [03:40:58] oops [03:41:00] i could have pastebinned it sorry [03:41:09] sorry legoktm ! [03:41:42] said cant find the issue :| [03:41:45] *sad [03:42:36] daegontaven: ideas' [03:43:15] why are you using dbservers when there's only one entry in it [03:43:29] the previous guy made it that way [03:43:48] which is weird it stops working after moving the wiki [03:44:17] anyway, pastebin your localsettings [03:44:25] redact any passwords and secret keys [03:44:34] but do NOT change anything else, like db names [03:45:11] (and by that I mean the entire file, not just that small section) [03:45:21] ok [03:45:31] i will tomorrow then [03:45:33] im tired [03:45:58] thank you guys [03:55:06] meanwhile can someone take a look at my issue? https://discourse-mediawiki.wmflabs.org/t/any-success-for-mediawiki-vagrant-on-gcp-instances/1065 [04:19:38] damn couldnt sleep [04:19:45] without figuring it out [04:28:12] :-) [04:29:59] i dont get it [04:30:11] and Skizzerz the rest of its just extensions [04:31:15] Cannot access the database: Unknown database 'my_wiki' (localhost) and my db isnt called that [04:32:22] could it be being an older version and now its newer? [04:32:42] do you have any sort of wikifamily or shorturl setup atm [04:32:54] shorturl yes [04:33:50] biberao: what do you mean by "each localsettings"? theres multiple wikis theres one mainwiki then all others are symlinked [04:34:51] each has their own localsettings [04:35:07] like if i remove and make it single server it all works [04:35:15] was just curious why it doesnt [04:35:19] currently [04:36:18] are these multiple wikis(symlinked) on a single host with a reverse proxy setup [04:36:57] no [04:37:00] I don't know enough to help you, but I suspect that is whats causing it, not the DB access which is what is appearing [04:37:06] each their own subdomain [04:37:16] p858snake|L: what is causing what? [04:38:02] Hello? [04:38:41] i got more info [04:38:56] swoboda: hi :) [04:39:23] [caches] cluster: MemcachedPhpBagOStuff, WAN: mediawiki-main-default, stash: db-replicated [04:39:23] Is this the right channel for help with my wikipedia account? [04:40:46] swoboda: this is mostly for mediawiki stuff, try #wikipedia [04:41:53] i dont know where it comes from [04:42:18] biberao: can we get a paste of all this, along with your localsettings file into a pastebin [04:44:09] i'm guessing since you said subdomains, i'm guessing this is a wikifamily [04:44:23] but how do icheck for wikifamily? [04:44:33] the localsettings got nothing [04:44:35] related to it [04:45:37] biberao: were you the maintainer of this wiki? why don't you if it's a wikifamily or not? [04:45:48] i wasnt no [04:46:00] *why don't you know [04:47:42] yes we need that localsettings file, hide private info from it, including upgrade keys and passwords [04:48:54] ok tomorrow then thank you again really tired. [04:48:56] good night [04:49:25] * daegontaven waves bye [06:07:59] Taven @daegontaven posted in Who is allowed to request a Cloud VPS? - https://discourse-mediawiki.wmflabs.org/t/who-is-allowed-to-request-a-cloud-vps/1066/1 [06:14:13] Hi. How in a MediaWiki page do you enter more than one space into an article? [06:14:23] I tried , but that didn't work... [06:14:50] I'm directly quoting something (sic) that uses two spaces erroneously, "Too late! I'm done!" [06:17:27] or "Too late! [sic]I'm done!" [06:24:30] RSY: what do you mean? this works https://www.mediawiki.org/wiki/User:Daegontaven/test [06:27:14] that's odd, daegontaven. On the MediaWiki farm I'm using, Miraheze, "Too late! I'm done!" produces "Too late! I'm done!" [06:27:27] as does "Too late! I'm done!" [06:27:43] that also produces "Too late! I'm done!" [06:27:48] what is the version as seen in Special:Version [06:28:12] 1.32.0 [06:28:36] hmmm and it seems on mediawiki.org it's 1.33.0 [06:28:49] could this be a recent fix? [06:31:17] RSY: https://meta.wikimedia.org/wiki/Help:Newlines_and_spaces#Preservation_of_spaces_and_newlines_using_unnamed_parameters [06:31:59] i'm not sure if it's a "fix", i'm a developer ..not an editor..soooooo..only so much i can help with editing stuff [10:19:54] hi is this out of date? https://www.mediawiki.org/wiki/Manual:$wgServerName [10:21:57] var_dump( $wgServerName ) evaluates to bool(false), which is not at all the expected value [10:22:13] mw 1.31 [10:25:26] ahoi all, got a question regarding CategoryTree extension (or maybe I'm using categories in mediawiki in a wrong way) [10:26:51] Let say I've the following: Category:Technical , Category:Technical:Midlleware, Category:Technical:Logging. On each of both subcategories, I've the same pages created (Architecture, Support, Troubleshoot, so for example Technical:Midlleware:Troubleshoot page) [10:27:47] in the end I use categorytree with mode=categories hideprefix=always, and with hideprefix option I was expecting not to see the full name of the subcategories and the page, but basically by writing this it makes no sense as it's flat defined … [10:28:28] so categorytree, if I show Technical category, will show me 2 subcategories: Category:Technical:Midlleware, Category:Technical:Logging, while I wanted to have Middleware and Logging only [10:29:09] you'll say that I could just create Category:Middleware, and inside it do [[Category:Technical]], but it could be an issue in the future if I got 2 categories with the same name [10:29:19] is there a solution for that? Do I do things in a wrong way ? [12:55:43] hi [13:04:26] hi biberao [13:05:49] hi, Im using dpl mode=user format, in this case the separators between the "startall,start,end,endall" are "," (comma), ho can i add comma to one of those sections? [13:08:23] https://pastebin.com/7LVmPepq <-so back from last night qustion [13:08:47] how come this $wgDBservers work [13:09:00] when theres no other info on the file to hve a master or slave [13:09:10] and if i move this wiki to another place it stops working [13:20:15] can you help andre__ ? [13:20:18] Skizzerz: here? [13:26:57] biberao: If someone sees this and someone could help, someone would speak up. No need to ping random people. :) [13:29:23] ya sorry [13:29:35] i was just highlighting Skizzerz because he asked for the config [13:29:38] sorry [13:32:30] but if you check the paste its weird isnt it? [13:32:41] ah, makes sense if they asked before for it, sorry didn't know [13:34:44] i mean the db part [13:46:46] the solution for dpl "," separation: easy: use "," (comma HTML), but that wont be good for cargo querying (which disallow ; in the query), so i used magic in the dpl and replaced it with "," with {{#replace}} [15:00:41] damn i have no idea how to fix this [15:40:57] I want to create an internal wiki for each department, is the initial database the only one I need or do I create databases for each department? [15:45:51] nunyet, what is a "department"? [15:46:25] sales, marketing, retention. etc [15:47:20] nunyet: Are those departments all in the same wiki? Or does each department have a separate wiki? [15:48:30] They are not created yet. I'm creating this from the ground up. I would like for each department to have a separate wiki [15:52:10] MW has the ability to have a db table prefix setup in it yet? [15:52:29] (asking for a different reason than nunyet, actually) [16:17:16] yes you can teward [16:25:57] https://pastebin.com/7LVmPepq <- anyone could take a look please? it works within the same place but if i move the wiki to another place it breaks? [16:27:19] can i make a new db with another name [16:27:27] import a backup from another db with another name? [16:32:56] i found a way [18:08:57] łukasz Polowczyk @lukaszpolowczyk posted in Visual Editor and MediaWiki - Couldn't connect to server - https://discourse-mediawiki.wmflabs.org/t/visual-editor-and-mediawiki-couldnt-connect-to-server/1072/1 [19:27:43] funny 1.32 mediawiki works fine for newer dbs doing the site url/folder/Main_Page [19:27:53] older dbs on 1.32 mediawiki doesnt work [19:28:05] it says url/folder/Main_Page not found [19:33:21] driving crazy :D [20:32:10] hi friends, I have a visual editor question. Does anyone know if there's some config to change the order of the "Insert" dropdown? OR if there's a way to put "Code Block" as a top level button like "Link" or "Special Character"? My installation has a lot of code blocks insertions. Reference: https://imgur.com/a/2YA6rBf [20:34:32] mingle: Not explicit config, but you can write a user script (or default-on gadget / Common.js hack) that fiddles with the toolbar precedence. [20:35:47] ive run a new mediawiki install and it works as expected [20:35:59] having a new install with a new db it doesnt work at all [20:36:03] damn shorturls [20:36:35] James_F: okay cool, I'll look into those! Thank you [20:36:37] mingle: You want to add the name of the item to the Insert menu's `promote` array. [20:37:13] mingle: https://gerrit.wikimedia.org/r/plugins/gitiles/VisualEditor/VisualEditor/+/master/src/init/ve.init.Target.js [20:38:12] mingle: There's a hideous hack in the Citoid extension that find the Cite extension's tools, demotes them, and replaces them with its own: https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/Citoid/+/master/modules/ve.ui.Citoid.init.js [20:42:46] Checking a message? Wonder if I could ever get away with something like that… o_O [20:44:33] James_F: I'm messing around with tools appended to the edit form for Lua-modules. I've wondering if the appended tools should use an OOUI Stack instead. [20:45:11] All kinds of additional tools adding stuff without any structure seems bad… [20:45:45] jeblad: Everything about the Citoid integration is hideous, and mostly my fault. [20:46:17] Yes, agree, everything is your fault! =) [20:46:45] jeblad: Which editor? If you mean the 2010 wikitext editor, migrating that code over to a proper OOUI toolbar would break every gadget that interacts with it, so we've decided that we're not doing that. :-) Instead we built the 2017 wikitext editor. [20:47:45] No, this is tools like the debug console for lua modules. I'll make a link… [20:48:25] Oh, the Scribunto editor thing? I've tried hard to pretend that doesn't exist. [20:48:33] https://en.wikipedia.org/w/index.php?title=Module:Asbox&action=edit [20:48:47] The grey debug console [20:49:17] That's just a text area, but adding a proper toolbar might be reasonably do-able? [20:49:31] I tried to clean up the code and make it pretend to use OOUI, but the code seems weird. [20:50:11] I have sort of made something that works, but it is a bit ugly. [20:50:23] Codewise ugly [20:50:43] :-( [20:53:02] I wonder if an OOUI Stack could be added to core, and then a reference to it added as a new argument to the hook [20:53:58] Instead of adding to the "editFormTextAfterContent", which is pretty ugly [20:54:45] We're trying to keep core stream-lined and agnostic about client-side editors. [20:56:34] It would not change anything when it comes to client-side editors, but it will add some structure to how tools are added to the form. [20:56:49] "to the edit form" [20:57:16] What can break when upgrading from 1.30 to 1.32 for example? [20:57:25] the shorturls could break? [20:59:23] * jeblad belives he would give himself a -2 on adding raw html like $editor->editFormTextAfterContent .= … [21:40:22] ** Warning: if there is any bot in #mediawiki which should be exempted from Sigyn, contact staffers before it gets caught ** [22:38:00] anyone here ever setup a wiki on a different folder than the document root?