[08:42:05] * RhinosF1 does not get GUP [08:42:21] 7000 jobs spawned for 1 edit on an account attached to 6 wikis [08:44:47] it goes to every wiki [08:44:53] but we don't have 7000 wikis [09:42:01] Need more help with phone calls and phone number language barrier code newbie [10:42:32] RhinosF1: GlobalUserPage? that's...uh...fascinating, to say the least [10:42:54] ashley: yep [10:43:47] looks like an upgrade broke my wiki, looks like pages with '|' got lost [10:45:03] tuxick: what does got lost mean [10:45:07] if this is 'normal' i could probably fix it by throwing backup dump through a filter [10:45:20] RhinosF1: as in pages disappeared [10:45:36] tuxick: from the wiki or db? [10:45:52] pages with '|' where? That's not a supported character on page titles [10:45:53] both, assuming i'm to look in page.page_title [10:46:02] man, I've not touched that codebase in ages though I wrote the initial version (based on a different ext.) :) the hook handlers which invoke a CacheInvalidator look suspicious, though -- also, do you have something that hooks to the 'GlobalUserPageWikis' hook? 'cause if not, that falls back to $wgLocalDatabases [10:46:13] tuxick: what version from and too? [10:46:24] ashley: no we don't [10:47:44] that hook doesn't let you control it per-user, so it'd still run on all public wikis you have [10:48:16] it's an old wiki i inherited, there's links in it like "[[Clients/Chandler|Chandler]]" [10:48:25] and those pages seem to be gone [10:48:34] tuxick: they aren't pages with a | in [10:48:51] that's a link to Clients/Chandler that just shows up as Chandler [10:49:32] but i don't seem to find correct title in page.page_title either [10:49:34] taavi: it's still spawning 1000 more jobs than we have wikis [10:49:43] tuxick: does Clients/Chandler exist [10:49:47] right now it'd be nice to only run jobs where the CA user is attached, although if T162648 ever gets implemented that'd have to be changed [10:49:48] T162648: Links to user pages render as "User account "Xyz" is not registered." for accounts that exist globally but without a local account - https://phabricator.wikimedia.org/T162648 [10:50:15] true [10:51:02] RhinosF1: ooh good one, doesn't seem so [10:52:18] oh lemmer double check [10:52:25] tuxick: is it supposed too? [10:52:52] well yes those links are ancient [10:53:19] i'm right in assuming page.page_title is the table to check, right? [10:57:02] tuxick: yes. Note that page_title will use underscores instead of spaces [10:57:10] yes [10:57:58] i'm gonna have to check the upgrade history, but could this have been caused by the '/' then? [10:58:21] problem is i only just noticed, been a while :) [10:59:00] i definitely have backups though [10:59:13] Did the page really existed in the past? Maybe it was deleted on purpose, or it's a red link to a page that never existed before [10:59:30] then it should show in history, no? [11:00:00] If it was deleted, that will appear only in the logs. [[Special:Log/delete]] [11:00:06] right, checked there [11:00:21] and i'm quite sure this wasn't intended [11:01:01] dunno db structure, could i safely insert page entry from backup? [11:01:06] just to see? [11:01:34] No, there are a lot of tables involved for a page [11:01:45] right, thought so [11:02:16] ok, i'm going to create a copy and import backup db to see what happens [11:02:19] Was the page actually deleted? [11:02:24] no, just gone [11:02:55] You can look for a page by its page_id, if you know what's the page id from the backup [11:03:30] i strongly suspect the '/' [11:03:54] yeah, i'm going to fetch a backup to check that [11:04:04] just checking what to look for [11:04:45] That's not a weird character for a page title. I don't think it would vanish because of that [11:05:13] maybe useful info: when following link i get just < Clients" and then message there's no text in page [11:06:17] That's expected if your wiki is configured to allow subpages in the main namespace [11:06:34] sounds reasonable [11:07:17] pages don't just "disappear" like that (well, except when they sorta...do) [11:07:35] did you remember to re-run maintenance/update.php after upgrading MediaWiki to correctly apply all the necessary DB schema changes etc.? [11:08:22] too long ago, i'm now going to fetch old db backup to rule some stuff out [11:10:15] the MCR stuff under certain configurations can cause seemingly "empty" pages to appear though the tabs etc. will still show up as blue as if the page would still be there (because it essentially *is*); but if you're seeing the "There is no such page..." text ([[MediaWiki:Noarticletext]]), then your problem is probably something entirely different [11:11:41] yes, not unlikely [11:14:19] first going to check old db [11:22:05] haha these backups 'only' go back to 202109 and they were missing there as well [11:22:29] gonna take time to dig up older ones, thanks so far! [11:26:15] at least i'm now sure what table to look at :) [11:49:27] maybe someone did send me on a wild goose chase [12:27:20] hi [12:33:32] hi [13:43:58] hi [13:45:08] * Reedy squints [14:51:45] hi [15:26:14] Hello there, can someone please tell me if it's possible to host the main page at exmple.com just like wikipedia.org without /wiki/$1 [15:26:33] Yes [15:27:01] Thanks for replying Reedy, can you please point me to the correct page for instructions? [15:27:13] I dunno if there's necessarily going to be an instructions [15:27:16] !shorturl [15:27:16] 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 [15:27:19] That will have some of it [15:27:36] You probably just want a rewrite rule for it [15:28:14] Ok so what rule do I have to provide? [15:29:02] I don't want to host the main page at /wiki/$1 so if there is something I need to change in .htacess that would be great [15:29:20] Well, the main page will always be there [15:29:25] You can just make it appear at different urls [15:29:49] Yes that's right and that's is what I exactly want to do. [15:29:59] that is* [15:50:39] Can someone please help me understand how I can make the main page appear at example.com instead of example.com/wiki/$1 just like wikipedia.org ? please 😌 [15:51:38] $wgMainPageIsDomainRoot = true; [15:54:49] Thanks taavi. Let me try. [15:55:35] Great!!! thank you a lot, my friend. Bless ya. [16:54:06] Guest84: fix your connection [16:54:13] what [16:54:42] you've joined/quit a good seven times in the past several minutes [16:54:57] i was seeing diffrent channels [16:55:04] on another tab [16:55:58] hello [16:56:26] I must admit I don't know what that means, but whatever you've been doing creates a lot of join/quit messages [16:56:35] sorry m8 [16:56:40] all good [16:56:49] how make wiki [16:57:37] how [16:58:25] oi [16:59:33] have a purpose for the wiki and then find some people to help [16:59:50] like what [17:00:06] "birds" [17:01:04] so how do i make a wiki can i have an example [17:01:20] that's like saying how do I make a website [17:01:34] idk [17:01:49] its hard [17:02:00] what is your purpose for wanting one? [17:02:11] ...........https://community.fandom.com/wiki/Special:CreateNewWiki [17:02:15] building a community? learning? [17:02:21] 2 one [17:02:38] wait hold on thats fandom [17:03:30] hello? [17:03:40] good afternoon [17:03:44] ok so learning, and what is it you want to learn about? Backend stuff, including how to set up and maintain things like web servers, databases, etc., or just knowing more about the wiki interface and things you can do there (blocking, deletion, etc.) [17:04:17] well heres another idea [17:04:31] thats better [17:04:35] (these are *very* different skillsets, hence why I'm asking, because the answer will let us know how to lead you to what you want) [17:04:51] a wiki for a project [17:04:53] that's a fine line of questioning [17:05:03] which project [17:05:19] one about [17:05:25] moths [17:05:48] it sounds to me like you're probably better off creating a wiki in a farm like fandom, miraheze, etc. [17:06:00] let them deal with the technical side so you can just focus on content [17:06:06] k [17:06:17] so how make media wiki wiki [17:06:25] is what i wanna know [17:06:33] find one of those sites, go through the wiki creation process they offer [17:06:40] one was linked above [17:06:42] but what is the scope for media wiki [17:07:35] a wiki is just a website that makes it easy for multiple people to edit the content [17:07:47] what is the scope for media wiki [17:07:49] oh my [17:07:51] so, it serves the purpose of any other website [17:08:01] what [17:08:04] Guest84: do you define the word "wiki" as a Wikipedia page like https://en.wikipedia.org/wiki/BlueSci [17:08:04] meaning that your question is nonsensical [17:08:24] can i just have some steps [17:08:39] what do you mean when you say "wiki" [17:08:42] step 1: understand what you're actually talking about [17:08:56] do you mean the thing like a website, or the thing like a particular page on a website [17:08:57] this will involve doing research and also thinking about what your needs and desires are [17:09:22] k [17:11:03] how do i make a wiki i just wanna know that [17:11:08] what's a wiki [17:11:32] a site where ppl do stuff [17:12:05] like wikipedia for example [17:12:30] https://community.fandom.com/wiki/Special:CreateNewWiki [17:12:33] fill out the form, get a wiki [17:12:37] then what [17:12:42] you made a wiki [17:13:34] well how to move a wiki [17:13:55] go ask https://community.fandom.com/wiki/Discord [17:14:51] i ment manual:moving a wiki [17:15:08] that's impossible [17:15:26] ...i.e. that's impossible to answer in the general case [17:15:33] the page on media wiki [17:15:47] https://www.mediawiki.org/wiki/Special:MyLanguage/API:Move [17:15:49] oh nice [17:18:20] https://www.mediawiki.org/wiki/Manual:Moving_a_wiki is more relevant here [20:14:20] hello [21:27:43] I'm having a few issues adding another wiki to my wiki farm using install.php and was wondering if anyone can help. I'm using the Giant Switch Statement from this page (https://www.mediawiki.org/w/index.php?title=Manual:Wiki_family&oldid=5047328#Giant_switch_statement) and I'm trying to run the install.php to generate another localsettings file and [21:27:43] create the database tables, but it keeps giving me an error when I run. I presume this is because I already have a LocalSettings.php file — but obviously I don't want to rename this as it will take my wikis offline albeit only temporarily its still something I want to avoid. [21:27:44] Does anyone know how I can get around this? I've listed the command I'm using here and the error I'm getting: https://dpaste.org/GCOjD#L1,2,4,5 [21:27:44] For context, my mediawiki install is at /var/www/html/mediawiki and the LocalSettings.php that links to all my wiki localsettings.php files is in that directory (hence why I've tried to have this LocalSettings.php file install in the /Settings/ directory and then I can rename it and move it. [21:36:08] Guest48: the "Undefined index: SERVER_NAME" notice is from the giant switch statement code `$_SERVER['SERVER_NAME']`. The php-cli will not be setting that envvar. [21:36:55] bd808 — is there a way I can solve this? [21:36:56] I don't have an answer for how anyone is supposed to add a new wiki when using a giant switch statement though [21:37:02] ohhh [21:37:14] you can make the warnign go away with https://www.mediawiki.org/w/index.php?title=Manual:Wiki_family&oldid=5047328#Updating_wikifarm_from_the_commandline [21:38:49] maybe one of the answers on https://stackoverflow.com/questions/626416/php-server-name-from-command-line ? [21:38:52] Yeah, I still get the "cannot modify header information" bit which is what seems to be stopping it. [21:39:31] Guest48: what is at line 175 (if that's still the error location) in your /var/www/html/mediawiki/LocalSettings.php? [21:41:15] bd808: the error message/end of the switch statement: [21:41:15]  174               default: [21:41:16]  175                      header( 'HTTP/1.1 404 Not Found' ); [21:41:16]                         require_once 'ErrorWikiNotFound.php'; [21:41:17]                         // echo 'This wiki is not available. Check configuration.'; [21:41:17]                         exit( 0 ); [21:42:03] *nod* that makes sense. It hits the error case of the GSS and tries to send a 404 response assuming that it's in a web context [21:43:28] I really don't know how you can avoid moving your current LocalSettings.php out of the way while you run the installer to make a new wiki in your db... this is one of the problems with the switch statement wikifarm approach. [21:44:13] Yeah, I removed the default and then ran it again and I'm getting the error that it already detected a LocalSettings file. [21:49:56] Guest48: you could try setting a MW_CONFIG_FILE envvar to point to a different location -- https://github.com/wikimedia/mediawiki/blob/fb1d1cec6f26a7c7455c0466efda28a21f72d0b8/includes/BootstrapHelperFunctions.php#L33-L38 [21:51:41] Would it be easier to swap from a giant switch statement? [21:52:22] Like this (which is another example given on that page): https://dpaste.org/Jx5ew [21:53:12] that's really the same thing as the GSS. It looks a bit different, but works basically the same way. [21:53:37] So this would be the easiest? https://www.mediawiki.org/wiki/Manual:Wiki_family#Wiki_farm [21:53:46] Guest48: define the MW_CONFIG_FILE environment variable to point to some non-existent file when running install.php [21:53:53] The problem you are hitting is how to add to an existing farm. and that's a dark art in general [21:54:29] moonmoon: which file do I add that configuration in? [21:54:35] you don't [21:54:38] it's an environment variable [21:55:11] either define it in your script beforehand or as part of php execution [21:55:51] something like `MW_CONFIG_FILE=/tmp/new_wiki.php php maintainance/install.php ...` [21:57:28] yep [21:58:25] as far as I know the wiki won't ever write to that file, it's just used to bypass the "does LocalSettings.php already exist?" check. You'll also want to specify --confpath or whatever it's called to somewhere for the actual written settings file [21:58:33] so it doesn't smash your existing one [22:00:26] I tried: https://dpaste.org/PK4wV and it gives the same result [22:01:48] oh [22:01:52] that's a 1.38 feature apparently [22:02:01] *cries* [22:04:59] This method would work if I switched from the giant switch statement, right? https://www.mediawiki.org/wiki/Manual:Wiki_family#Wiki_farm [22:06:38] that has nothing to do with your (in)ability to run install.php [22:06:47] it simply checks "does LocalSettings.php exist or not exist" [22:06:51] the contents are irrelevant [22:07:36] Yeah, but it seems the GSS is causing issues that I can't get around [22:07:53] so plan b: create a separate copy of your mediawiki dir to run the installer from [22:08:04] then add the relevant bits to your main one's LocalSettings.php [22:08:27] (the second copy doesn't need to be web-accessible) [22:08:36] Ah that's a good idea. [22:24:25] moonmoon: thank you! saved my life. With 1.38, I assume it will be easier given the introduction of MW_CONFIG_FILE? [22:25:17] yeah you should be able to do the command you put in the pastebin and it should just work without needing a 2nd set of files [22:26:55] Hi, When using Special:UsersList I can't see the 'autoconfirmed' permission, there's a way to see that? [22:27:23] I can see only: bot, sysop and bureaucrat [22:27:46] Guest85: there is "Confirmed users" in the dropdown. Not specific enough? [22:28:07] I don't have it :( [22:29:09] hmm.. I see it on both en.wikipedia.org and some random wiki hosted on miraheze [22:30:22] does autoconfirmed exist on your wiki? [22:30:28] maybe your wiki doesn't have any confirmed users yet [22:30:29] check Special:ListGroupRights [22:30:35] you would need https://www.mediawiki.org/wiki/Manual:Autoconfirmed_users [22:30:50] $wgAutoConfirmAge and $wgAutoConfirmCount set somewhere [22:31:27] I have the confirmed users on Special:ListGroupRights, and when i check some random user permissio nI can see it's part of this group [22:32:05] As I understood, when not setting AutoConfirmAge and Count every user will be auto promoted to this group (this is what happen on my wiki) [22:32:32] What the name of the group shouold be? I'll try to change the get param value [22:32:59] group=confirmed [22:33:01] https://en.wikipedia.org/wiki/Special:ListUsers?username=&group=confirmed&wpsubmit=&wpFormIdentifier=mw-listusers-form&limit=50 [22:34:09] Can't find any user on this group :S any other idea maybe? [22:34:55] when you say on a random user you see they are part of this group.. does it really say group name "confirmed" there? [22:35:12] mutante: that isn't autoconfirmed [22:35:20] neither is the link above [22:35:32] that was my point, there is "Confirmed" in the drop down [22:35:39] there isn't "Autoconfirmed" above "Autopatrolled" [22:35:44] that's a manual group, has nothing to do with autoconfirmed [22:35:55] Special:ListUsers doesn't list implicit groups, so autoconfirmed won't show [22:36:02] there you go then, ignore everything I said, en.wikipedia doesn't have it either [22:36:09] I have non-english wiki, so I see another name of group there [22:36:37] Got you, so there is not way to see the list of users which are part of autoconfirmed group? [22:37:04] moonmoon: so the question is then still where they can see members of implicit groups [22:37:08] you can't [22:37:14] Guest85: ^ :p [22:37:32] should be possible on mysql level I suppose [22:37:43] the reason they're implicit is because membership is tested at runtime based on whether or not they meet the group's criteria [22:37:46] there is no stored list of them [22:37:58] aha, thanks [22:38:09] So if I change the criteria some of them will be removed out of the group? [22:38:13] yes [22:38:14] Guest85: guess all you can do is imitate the runtime test for each user [22:38:45] Got you, it would be nice anyway to see these users if possible in the future, but thanks anyway! [22:51:06] anyone willing to help me figure out why i can't log in as my mediawiki bot? i created the bot password and i'm logging in with the username@bot_username scheme and i have checked that i copied the password correctly, but i keep on getting the wrongpass error. any suggestions? [22:51:33] Can't login where/how? [22:52:43] where: my miraheze wiki . how: i send the requests but the server says i submitted the wrong username or password [22:53:01] Using what? [22:53:28] it's the basic login example script in python [22:53:38] Link? :) [22:53:55] https://www.mediawiki.org/wiki/API:Login#Python [22:54:32] you know what, nevermind [22:54:39] i just realized i didn't change the url [22:54:45] :D [22:55:01] of course the authentication wouldn't work if i'm not sending to the right wiki [22:55:12] If it did, that'd be a different bug... [22:57:22] yeah, that sure did fix it [22:57:28] i feel really smart now