[02:56:00] Is there a page/wiki I can test `mw.config.exists( 'wgUserVariant' );`? No matter what wiki I try it returns false. Maybe I'm misunderstanding what it does? [03:03:02] are you sure that actually EVER exists? It's not referenced in the douentation [03:03:17] documentation * [03:04:36] I'm not sure it ever exists and the fact it doesn't work on Wikipedia which I'm *pretty* sure has language variants suggests it might not. I just saw it mentioned here https://www.mediawiki.org/wiki/Manual:Interface/JavaScript#Page_specific_(Wikibase_extension) and was curious about it [03:41:39] wychmire: grepping the code base, it looks like it is only set if `$wgContLang->hasVariants()` is true. So it is dependent on the content language of the page. That should make it true on zhwiki article pages I think. [03:42:54] srwiki too, probably a few more [17:29:48] Can someone explain this situation in the logs at #cvn-mediawiki? Why are my edits being flagged as greylist now instead of just as User ? [17:30:54] Probably best asking at #countervandalism [17:53:05] cant figure out why i cant access media wiki config page :\ [17:53:51] http://172.16.1.14:8080/mw-config/index.php 404 file or directory not found [17:54:51] Probably need to check your webserver logs [17:56:38] 2020-03-08 17:52:28 172.16.1.14 GET /mw-config/ - 8080 - 10.10.10.50 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/80.0.3987.122+Safari/537.36 http://172.16.1.14:8080/ 200 0 0 187 [17:56:38] 2020-03-08 17:53:28 172.16.1.14 GET /mw-config/index.php - 8080 - 10.10.10.50 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/80.0.3987.122+Safari/537.36 http://172.16.1.14:8080/mw-config/ 404 3 50 46 [17:56:53] i get a dir listing with /mw-config/ [17:56:57] but when i click on index.php i get 404 [17:59:56] ah i get a dif error locally [18:00:05] You may have a custom rule somewhere that sends a 404 response on any *.php script under /mw-config/ [18:00:16] page cannot be served because of extension configuration [18:00:48] https://usercontent.irccloud-cdn.com/file/k6W8t6IE/image.png [18:02:23] this means your IIS is not aware of PHP, maybe it's not installed? [18:02:45] i extracted it to c:\php [18:02:50] how do you 'install' it? [18:03:01] sorry i know jack shit about IIS/php et [18:03:02] c [18:06:22] there we go! [18:06:25] thanks Vulpix [18:06:31] you should look at manuals about this using your favorite search engine. For example https://www.meersworld.net/2019/02/how-to-install-php-on-iis-in-windows-10.html [18:06:36] had to add *.php with php-cgi.exe to IIS Handler Mappings [18:07:06] apologies, i was following https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki_on_Windows_Server_2016#MySQL [18:07:19] theres no mention of configuring handlers when installing php [18:11:29] There's a "Adding PHP as FastCGI application (after installing PHP)" section on that page... incidentally it's before the PHP section and not after it [18:12:05] you're entirely correct [18:12:13] 0\~. [18:12:14] i think i skipped the section cause i didnt know what fastcgi was [18:12:14] heh [18:12:19] sorry :( [18:12:31] and yeah "after installing php" messed me up too [18:12:50] why would it be listed like that? :\ [18:15:05] IDK, I've reordered that section because it didn't make any sense [18:15:12] appreciate it [18:17:47] tryin to upgrade/move an old media wiki internal site that is on a win 2003 server to a dif box :) [18:41:33] Hey, I was looking at the Arrays extension. Others on the team are concerned to bring it in because it's listed as an unmaintained extension. I disagree with this, because there recent commits, etc, but regardless, Arrays is listed as stable. Is there an alternative to Arrays that I should evaluate for use? Loops doesn't seem to take care of everything I'm looking for, specifically passing a [18:41:39] delineated list of values. I feel as though Arrays is stable and safe to use, but before I make that argument I wanted to make sure there wasn't something I was missing, or some details someone might be able to provide. [18:44:56] !e Arrays [18:44:56] https://www.mediawiki.org/wiki/Extension:Arrays [18:47:45] Scribunto will give you more tools for dealing with arrays and similar [18:47:49] !e Scribunto [18:47:49] https://www.mediawiki.org/wiki/Extension:Scribunto [18:51:51] Thanks so much for taking a look. I'm going to keep reading, but I'm worried about the fact that Scribunto only supports Lua ... or ... instead of being able to use it to create a Template, I'll have to create an Extension/Module using this, if I understand correctly. [18:52:11] should mention too, that Arrays is pretty much unmaintained [18:53:50] it had an update to fix a breaking change recently, but the people that pushed the fix aren't taking over development for it [18:54:05] meLon: Scribunto is your best bet. there are a *lot* of advantages for moving complex logic into lua [18:54:19] it's waaaay more performant than whatever wikitext extensions you'd use instead [18:54:45] and you can always create a template that calls the module [18:55:58] Scribunto also can interface with other extensions that provide extension tags and parser functions [18:57:28] Thanks for those details. We will have to re-think permissions, etc, as Templates can be created by almost anybody and Extensions/Modules are more protected. Not a huge problem, just mentioning. [18:57:56] I'll look into Scribunto and how we can use it to create Modules to serve this purpose. It's not immediately clear, but let me do my research :D [18:58:11] it's perfectly safe to let whomever has the ability to create templates to create lua modules as well [18:58:28] it's all sandboxed and the lua can't do anything bad [19:00:52] if you need a point to convince your team of that, consider that Scribunto is enabled in Wikipedia and anyone that can edit (aka everyone) can create lua modules there [20:10:28] stupid question.. where do you find what version of mediawiki is running? [20:10:49] Special:Version is usually the easiest way [20:11:15] is that a page? [20:12:27] yes [20:12:34] https://en.wikipedia.org/wiki/Special:Version [20:14:54] geez, thats entirely Greek to me ;) [20:15:37] tried http://127.0.0.1:8080/Special:Version no dice [20:15:50] Depending on your short url... [20:16:00] http://127.0.0.1:8080/index.php?title=Special:Version [20:16:03] http://127.0.0.1:8080/w/index.php?title=Special:Version [20:16:05] a potentially dangerous Request.Path value was detected [20:16:28] that worked! [20:16:30] Thanks Reedy [20:17:10] 1.15.1 [20:17:31] wonder if it makes sense to upgrade that (if its even possible on win2003) and THEN migrate it [20:18:05] php 5.28 and mysql 5.1.32 are old too [20:18:44] I generally wouldn't suggest doing all in one go [20:19:43] well, i know latest media wiki doesnt support that old php [20:19:46] so that wouldnt work eh [20:19:46] heh [20:21:03] You can go to probably ~1.19 [20:22:10] pretty straightforward right? extract the tar to the sites folder and overwrite files? then mw-config and "upgrade" ? [20:25:17] Using maintenance/update.php is probably better than the web installer