[02:59:34] I would like my site when I type wiki.example.com to redirect to wiki.example.com/Main_Page instead of wiki.example.com/Wiki/Main_Page. Where can I find this setting? [03:00:29] I have my server set up. the main page is wiki.example.com/Main_Page ... wiki.example.com/Wiki/Main_Page does not exist [03:00:57] ie when I type wiki.example.com/Main_Page I get to the correct site [03:05:56] Guest68995: what is your `$wgArticlePath` variable set to? [03:06:18] https://www.mediawiki.org/wiki/Manual:$wgArticlePath [03:06:36] $wgArticlePath = "/$1"; [03:06:45] set in LocalSettings.php [03:09:15] the graphic icon and the main Page link in the side bar take me to the correct wiki.example.com/Main_Page [03:09:45] Could it be that the redirection has been cached by your browser? [03:10:13] hm I will look into how to clear that... 1 second [03:12:34] samwilson <-- SMART [03:12:43] that was the ticket [03:13:05] oh good! hehe I dunno about smart, just hit similar things before :) [06:51:48] Hi there, I want to create wiki page for my company but I was blocked many times after create account and upload content. What can I do in such case? [07:21:05] how good is mediawiki for hosting documentation ? user and dev documentation ? [07:21:57] dev docs should be private, visible only to staff any recommended way of doing that in mediawiki ? [08:11:01] HI, There is anyway to get auto complete for arguments values while writing wikicode? like: {{template|a= Value1}}. For Value1 - I have predefined (cargo table) list of values that i want the users to choose from [11:19:43] Hi and thanks for the awesome free software. I've been upgrading one MediaWiki since March 2003, when it was called Phase III, as Homie Magnus Manske had just rewritten the whole thing in php [11:21:15] I have a really minor issue. For a few wikis the favicon.ico shows maybe like 5% of the time and 95% its place in the browser tab is filled with the firefox default graphic for sites that do not have a favicon.ico [11:25:18] MediaWiki puts this in the HTML: "", yet most of the time no favicon.ico for me. It is infact found at document root of the site [11:26:46] that URL is relative, which is problematic. if your page is in example.com/Page, browser will try to find favicon at example.com/favicon.ico, but if you're in example.com/wiki/Page, browser will try to find it on example.com/wiki/favicon.ico [11:27:42] Try to set it as $wgFavicon = '/favicon.ico'; that way it will always use a relative path from the root [11:29:04] That's the default value btw, so you can remove this setting completely https://www.mediawiki.org/wiki/Manual:$wgFavicon [11:40:00] Vulpix: Thanks, sounds like you single-handedly provided the explanation and the solution. Lemme see what I have in LocalSettings.php [11:40:37] Yeah, my bad [11:40:39] $wgFavicon = "favicon.ico"; [11:40:50] I change to $wgFavicon = "/favicon.ico"; [11:45:13] Merci beaucoup Vulpix! How could I have been so blind to that without the leading slash it, it will be relative to /wiki/ not relative to / when the browser interprets it [11:46:45] yw :) [15:19:36] Hello. I wanted to fetch all rights available on my mediawiki instance. To do so, I looped through the $wgGroupPermissions. But this only gave me the rights of the default user groups. I want to fetch all rights, of both the default user groups and the user groups defined by extensions, e.g. the (editwidgets) right of the Widget-Editor user group. [15:19:36] How do I accomplish this? Which variable holds all user group permissions? [15:21:23] User::getAllRights() ? [15:21:38] Though, that is deprecated, so says to use [15:21:39] MediaWikiServices::getInstance()->getPermissionManager()->getAllPermissions() [15:22:10] Will I be able to run this in LocalSettings.php? [15:22:59] Not sure offhand [15:23:28] There is also $wgAvailableRights.... But depending on when you access it, extension entries won't necessarily be populated [15:27:09] What I am trying to do is to create a custom super user group, and give it the rights of all available user groups. [15:28:02] $all_group_permissions = [];foreach ($wgGroupPermissions as $group => $permissions) { $all_group_permissions = array_merge($permissions, $all_group_permissions);}$wgGroupPermissions['my_custom_user_group'] = $all_group_permissions; [15:28:57] My idea was the above. But, like I said, only the rights of the default user groups are assigned to 'my_custom_user_group'. [15:29:27] And I can't see to find the rest... [15:29:55] Does thing approach look sound, in general, or would you recommend some simpler solution for my problem? [15:32:20] $wgGroupPermissions is only ever going to give you the rights that are already being set to groups [15:32:28] $wgAvailableRights probably makes more sense [15:33:35] I check out $wgAvailableRights but it does not include rights set by extensions [15:33:40] checked* [15:34:06] Indeed [15:34:11] Well, it will [15:34:18] But not if just run inline in LocalSettings [15:34:39] If you do it in an extensionfunctions callback or similar, it should [15:34:49] Though, I'd probably still use the PermissionManager call [15:56:07] Anybody online that can help me troubleshoot a GeoJSON file? [16:02:37] https://en.wikipedia.org/wiki/Wikipedia:Map_data/Wikipedia_KML/Uinta_Basin_Rail [16:04:09] When I invoke this file using the template maplink I get a syntax error. But I’m pulling my hair out to find it. I’ve done line by line comparisons with known working GeoJSON files and can’t find it. [16:04:42] [-110.725412385, 39.798128544000072, 0], [16:04:42] [-110.726215944, 39.798242547000029], 0 [16:04:43] ], [16:04:50] That 0 should presumably be inside the ] [16:05:18] * Reedy fixes [16:05:46] Actually, there seems to be various issues [16:05:53] oh your kidding. That easy? [16:06:23] Well I did various search and replaces in a desperate attempt to make it match a known working file I was using as a template. So I may have made things worse. [16:09:29] give me a min :) [16:10:03] No problem. I’m grateful for the help. I’ve been trying by myself for days, Finally decided to beg for a 2nd set of eyes. So I appriciate it. [16:11:41] FYI, if it matters the raw data came from the Surface Transportation Board’s website, in KMZ format. So it should be in public domain. I used Google Earth to convert it to KML, that part is working and then some online tool to convert to GeoJSON. [16:13:20] Do you mind if I make it nicely formatted too before saving? [16:13:54] Sure. That’s great. [16:14:08] This is my first attempt to work with KML files, so I’m just learning. [16:14:35] For future reference, tools like https://jsonlint.com/ are very useful [16:14:42] paste the json, it'll format it, and help you point where the errors are [16:15:05] And if you couldn’t have guessed, the eventual page to use the map is https://en.wikipedia.org/wiki/Uinta_Basin_Rail [16:15:20] page is valid json now (dunno if it's necessarily valid GeoJSON, but should be closer) [16:16:25] You might need to revert that "pretty printing" to reduce the size... [16:19:29] Something is different. It’s taking forever to generate a preview, normally I get an error message almost immediatly. So fingers crossed.... [16:26:52] Well now I’m getting an error message at the Wikimedia server level. “Our servers are currently under maintenance or experiencing a technical problem. Please try again in a few minutes.” [16:27:00] So I guess I wait and try this later. [16:27:25] Thanks so much for your help though. I have bookmarked that syntax checker and surely that will come in handy. [16:31:01] let me try the minimised version [16:31:02] might help [16:39:00] Still get a syntax error. [16:39:48] must'ved killed a comma [16:40:20] There seems to be duplicate coordinate entries in there btw [16:40:22] [-110.729175139999896, 39.810637488000047, 0] is there three times [16:41:09] missing comma fixed [16:42:09] Let me go back to the KML, and see if that coordinate is there 3 times… [16:46:31] That’s wierd. In the KML file, taken from the same raw data, and is already working on said wikipedia article, those co-ordinates do not appear. [16:46:48] In fact the KML file has less digits of precision, like they’ve been rounded. [16:47:03] Does GeoJSON have a limit on digits of precision? [16:48:24] Let me try truncating the coordinates to match the KML version. [18:23:28] Reedy: THANK YOU [18:23:42] https://en.wikipedia.org/wiki/Uinta_Basin_Rail [18:23:48] Isn’t it pretty? ;)