[08:16:29] i want to create a wikipedia article with of references [08:16:41] is this possible ? [15:03:29] How can I add ldap php 7 support to the mediawiki container? [15:11:24] Hi!. What's the easiest way to fool arround with mediawiki to evaluate if it is indeed what I need? [15:11:42] (I'm on windows sadly) [15:12:40] anotheryou: Visit Wikipedia? [15:13:02] ah oh. wikipedia is mediawiki based? alright :) [15:13:17] and if I wanted to test plugins to? what is easiest to spin a mediawiki up? [15:13:34] Yeah, all the sites listed here are running MediaWiki: https://en.wikipedia.org/wiki/Special:SiteMatrix [15:13:41] Maybe Vagrant? [15:13:42] !vagrant [15:13:42] https://www.mediawiki.org/wiki/MediaWiki-Vagrant [15:14:04] Or if you have a Linux Web server, it's usually not too much trouble to install MediaWiki. [15:14:04] sounds good. thank you Esther [15:21:13] urbanendeavour: mw container? [15:33:21] yes [15:33:46] It appears to use PHP7 and there is not a stable php7 ldap library [15:40:46] urbanendeavour: what OS are you using? [15:40:51] (inside of the container) [15:41:10] its the official mediawiki container [15:41:13] Jesse [15:41:47] you should be able to install the php7.0-ldap package from apt [15:42:34] (might need to enable backports first) [15:43:38] otherwise you can download, compile, and install the ldap extension for PHP manually [19:01:59] Hey guys, I was wondering if anyone found a solution to visualeditor and subpages. [19:02:08] I want to use subpages because it's easy to navigate [19:02:18] But visualeditor returns a 404 when trying to edit.. [19:04:21] Does it makes sense not to use sub pages at all? [19:04:48] Sounds like bad config [19:05:00] really? its working for you? Reedy [19:05:20] I can't imagine it just doesn't work on Wikipedia et al [19:06:32] I'm reading stuff from 2 years ago these was a problem then.. not sure if someone came up with a fix, cant find it [19:10:52] " [19:11:04] The default configuration for MediaWiki's main content namespace is to be flat (no subpages), because it's how Wikipedia works" [19:11:36] Maybe I should move away from subpages and use flat? I'm using it for documentation (not sure if it makes sense) [19:15:21] Dukem: Maybe you should just test it. I think its very unlikely that visual editor does not work with subpages [19:15:25] There is convencience with subpages, easier to navigate, better structure [19:15:49] bawolff: i am testing it. i get 404 for subpages. normal namespace works fine [19:16:10] Hi! I have on my private wiki extension UniversalLanguageSelector. How to change to by default language be српски / srpski [19:16:12] no English [19:16:53] Dukem: Oh ok. Most likely something wrong with rewrite rules or your wiki config [19:17:02] bawolff: does it work for you? [19:18:50] Try to create a subpage under Main_Page [19:18:53] * [[Main_Page/Network.IITS|Network.IITS]] – parent page TEST [19:19:50] Dukem: I just tested on https://en.wikipedia.org/wiki/User:Bawolff/test . it works [19:20:07] with visualeditor? [19:20:14] yeah [19:20:23] hmm interesting [19:20:25] Have you enabled subpages? [19:20:27] feel free to edit that page on wikipedia with visual editor [19:21:03] Reedy: i did [19:21:18] i dont see visualeditor bawolff i see regular editor on wikipedia [19:21:47] Sorry for spam, but I have to ask again, because is small urgent.. I have on my private wiki extension UniversalLanguageSelector. How to change to by default language be serbian with Cyrillic and latin [19:22:15] Dukem: maybe you need to be logged in to get it or enable in preferences [19:22:33] There's a little pencil icon on the right top corner of the wikitext editor to switch to visual edit [19:22:48] Zoranzoki21: So that's the default variant [19:23:08] Dukem: Note how my last edit is tagged visual editor at https://en.wikipedia.org/w/index.php?title=User:Bawolff/test&action=history [19:23:09] How to change to default variant be serbian with cyrilic and latin variant [19:23:33] Zoranzoki21: $wgDefaultLanguageVariant [19:23:56] e.g. $wgDefaultLanguageVariant = 'sr-el'; for latin [19:24:06] for latin and cyrilic [19:24:16] српски / srpski [19:24:31] yeah it is working. bawolff [19:24:35] Oh, that's the non-variant specific one [19:24:52] Zoranzoki21: that's called just plain 'sr'; [19:25:05] ok [19:25:06] However, it should already be the default if $wgLanguageCode = 'sr'; [19:25:29] unless ULS interferes somehow [19:28:12] bawolff: No work [19:28:27] bawolff: Cache is not problem because I going with incogto mode [19:29:27] bawolff: Can you please advise where should I look for the error? [19:29:28] bawolff: And I now cleaned cache of mediawiki and now too no work to default language be serbian [19:33:12] * bawolff doesn't know [19:38:06] can we see localsetting.php from wikipedia? lol.. but really [19:38:39] Yes [19:38:45] https://noc.wikimedia.org/conf/highlight.php?file=InitialiseSettings.php [19:38:53] https://noc.wikimedia.org/conf/highlight.php?file=CommonSettings.php [19:42:18] Dukem: Its not if you "can", its if you "want to" [19:42:37] The answer is almost always, no you don't want to read that never ending config file ;) [19:43:35] But all of wikimedia's config is basically public (except passwords). There's a git repo of it called operations/mediawiki-config.git . There is also a repo operations/puppet.git that has all the non-mediawiki server config in it [20:41:01] bawolff: aah im running private wiki maybe thats why [20:41:23] That doesn't really make sense [20:41:37] private wiki has nothing to do with subpages [20:48:28] it also a bit different. InitialiseSettings.php vs LocalSetting.pho and wmg vs $wg [20:49:16] Dukem: All the $wmg variables get changed into $wg variables in CommonSettings.php [20:49:46] wmg is (generally) used for config variables that aren't mediawiki config, but adjust setting other config variables [21:30:49] how do i find the name of the namespace of the subpage? [21:32:29] Where from? [21:32:41] so i have Main_Page and that's NS_MAIN right? [21:33:01] i have a child under Main_Page called Network.IITS (subpage) [21:33:22] I want to enable wgVisualEditorAvailableNamespaces array to allow child namespace to be edited [21:35:35] Dukem: there are no child namespaces. A subpage is on the same namespace as its parent page [21:35:44] ah i was suspecting that [21:36:37] so this should allow editing of subpages right? $wgNamespacesWithSubpages[NS_MAIN] = true; [21:37:11] !wg NamespacesWithSubpages [21:37:11] https://www.mediawiki.org/wiki/Manual:%24wgNamespacesWithSubpages [21:37:37] yep so that should work [21:51:59] netsplit? [21:55:00] Ok, so... I've added the content to the wiki, but it looks like it was put at the top of the tree (default, but not desired, based on our intended use of the wiki). Ideally, a page called "Preface" for example, would live under OpsGuide/Preface, not /Preface. How do we create that virtual tree structure? [22:04:23] Setuid: you create a page names OpsGuide/Preface ? [22:04:41] im not sure i understand the question correctly [22:04:50] or you use categories [22:04:55] !categories [22:04:55] http://www.mediawiki.org/wiki/Help:Categories [22:05:00] !subpages [22:05:00] By default some namespaces have subpages enabled and others don't. You can enable or disable them using $wgNamespacesWithSubpages in LocalSettings.php. http://www.mediawiki.org/wiki/Manual:$wgNamespacesWithSubpages [22:20:35] i think i spotted the problem [22:20:42] 127.0.0.1 - - [13/Nov/2017:16:58:25 -0500] "GET /wiki.iits.company/v3/page/html/Main_Page%2FNetwork.IITS/362?redirect=false HTTP/1.1" 404 2472 "-" "VisualEditor-MediaWiki/1.29.1" [22:20:57] instead of forward slash "/" it uses %2F [22:21:42] uses url encoded value instead of actual "/" [22:27:07] cscott: Heads up, I'm planning to do the langconverter change now [22:39:33] yeah curl confirms this i am getting 404 with %2f [22:41:17] %2F should be correct for the parsoid/rest api [22:41:28] Dukem: what's with the /362 in the path, though? [22:42:08] not sure, but the non subpage uses /361? [22:42:26] bawolff: ok [22:42:37] Dukem: oh, revision ID maybe? [22:43:25] yep your right revid [22:44:39] ah found what is missing.. It does not do "127.0.0.1 - - [13/Nov/2017:16:57:56 -0500] "GET /api.php?format=json&action=query&prop=info%7Crevisions&rawcontinue=1&rvprop=content%7Cids%7Ctimestamp%7Csize%7Csha1%7Ccontentmodel&revids=361 HTTP/1.1" 200 1149 "-" "Parsoid/0.7.1" [22:45:00] This is missing from the query each time i try to edit subpage [23:16:27] SO it looks like a parsoid issue rather then visualeditor [23:16:38] parsoid does not trigger this first call [23:16:41] for subpages