[00:00:52] Unrelated question: how on earth is mediawiki using the pygments library, when that was developed for python? [00:02:43] Core apparently isn't...where did you see that darkdreamingdan? [00:03:36] https://www.mediawiki.org/wiki/Extension:SyntaxHighlight [00:04:05] darkdreamingdan: Ah, that's an extension...SyntaxHighlight must call out to pygments through the console or something [00:05:01] ah, sorry i confused the first statement [00:05:09] This extension is bundled with MediaWiki 1.21 and above. [00:05:15] i wrongly thought that it was part of core [00:12:51] I'm basically investigating upgrading our ancient wiki [00:13:05] we have a very strange syntax for code, i have no idea if that's default functionality [00:13:17] https://wiki.multitheftauto.com/wiki/GetCameraTarget [00:13:38] [lua,N]element getCameraTarget () [00:14:56] 1.22, so not *too* ancient. That's post-2012 IIRC. [00:15:57] Looks like the skin is based on monobook, though. So that's a little old. [00:17:17] by default functionality, i mean it uses SyntaxHighlight_Geshi [00:17:22] back when it was actually geshi [03:46:41] for the life of me i cant seem to get this installing [03:46:57] Could not find a suitable database driver! php5-mysql [03:47:42] ritztech: what is your $wgDBtype set to? [03:48:03] mariadb [03:48:15] Er, try 'mysql' [03:48:21] 5.5.50 [03:48:46] No I mean try $wgDBtype = 'mysql' [03:48:47] i did a yum install on this php56-php-mysqlnd. [03:51:10] $wgDBtype = 'mysql'; [03:51:32] this is in includes/DefaultSettings.php [03:51:39] i havent even gone though the web install yet [03:52:10] ok [03:52:15] can you pastebin the output of php -i ? [03:52:58] wait, if you haven't gone through the web installer, where are you seeing that error message? [03:53:48] http://pastebin.com/XWAfR2Xm [03:54:04] hen you also need to install, for example, the php5-mysql package. [03:54:08] well i tried to [03:54:11] PHP 5.6.26 is installed. [03:54:28] you need to re start your webserver to pick up the newly installed package probably [03:55:00] i tried a boot [03:55:11] and i installed it [03:55:13] i thought [03:55:48] sorry, I have to go for dinner now. maybe someone else in here can help [03:55:50] php56-php-mysqlnd.x86_64 5.6.26-1.el7.remi @remi-safe [03:56:01] kk [03:56:04] thx [04:05:48] Package php56-php-mysqlnd-5.6.26-1.el7.remi.x86_64 already installed and latest version [04:29:26] ritztech: what's the output of ls /etc/php.d/ ? [12:27:14] andre_: thanks for discussion yesterday .... I've looked aroun an found 2 hook invocations in Linker::link(..) I've created a hook for LinkEnd where I've replaced the content of the associated array for href ... thats working fine for one language. and that's so far OK for me ... [13:41:49] ugh [13:41:55] if someone tries to print our phone list from wiki [13:42:09] it is 10 pages and awkward becuase it won't split up tables [13:44:35] is there a way to force tables to print split? [13:46:15] maybe there's a better way to list the phone numbers [13:54:21] I have a lua table looks like this: ["001"] = {["名字"]={"長門", "ながと", "长门"},} [13:54:31] is it possible to invoke like this? {{#invoke:modulename|funcname|001|名字[1]}} [14:01:21] KyoriAsh: I don't think [1] does anything in Wikitext :) [14:01:46] well that is used to call LUA table value [14:01:54] and I'm thinking of Array style [14:01:56] In Lua, sure [14:02:17] KyoriAsh: Where is the table defined/stored? In Module:modulename ? [14:02:27] Module:舰娘数据 [14:02:39] http://zh.kancollewiki.net/wiki/%E6%A8%A1%E5%9D%97:%E8%88%B0%E5%A8%98%E6%95%B0%E6%8D%AE [14:02:40] KyoriAsh: And is that what you're trying to call with #invoke? [14:03:34] calling using a function [14:04:00] OK, I see now [14:04:33] KyoriAsh: What you should be doing is adding a third, optional parameter to getData that, if the returned value from the table is another table, will get a particular value for you. [14:04:52] Luckily I think this is only a three-dimensional table, so that should be the end of your work :) [14:05:47] basically that means ["001"] = {["Name"] = {"["JaName"] = "長門", and so on} is it? [14:07:10] KyoriAsh: So you'd do {{#invoke:舰娘数据|getData|001|名字|1}} and get 長門 [14:07:33] ah, args[3] [14:07:40] KyoriAsh: Exactly. [14:08:23] had to add one more args[3] in the function... *dang* [14:09:21] KyoriAsh: In other news you have reminded me how much I failed to achieve any literacy in Mandarin while in school, so thanks :P [14:09:47] lol [14:10:04] meanwhile, I have a sample LUA code look like this: local row1 = '' .. CardImg .. CardDmgImg .. '' [14:10:33] but Scribunto seems unable to translate it to extension, just print out plain text look like the above line [14:11:06] KyoriAsh: Where is that code? [14:11:31] http://en.kancollewiki.net/index.php?title=Module:ShipData&oldid=308067 [14:11:48] quite a large chunk of coding, Ctrl + F will be better [14:12:31] KyoriAsh: Is there an example invocation on your wiki somewhere? [14:12:44] Oh, wait. [14:12:53] No, I need an example [14:13:00] http://en.kancollewiki.net/wiki/Sandbox [14:13:11] similar to this, just different outcomm [14:13:15] *outcome [14:14:08] Does anyone know an extension providing the growth in number of articles over time so that I can create a graph? I searched but could not find anything resembling that functionality. Thanks. [14:14:10] http://en.kancollewiki.net/index.php?title=User:IbarakiIbuki&oldid=307764 <- Infobox comparison title there [14:15:13] if i'm listing a lot of phone numbers [14:15:17] it should be in a table right [14:15:23] KyoriAsh: I see you're using expandTemplate, there's also an extensionTag function...see https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#frame:extensionTag [14:15:56] guest__: You could accomplish that with normal SQL queries, probably. Each article's creation date is in the database :) [14:16:35] Nightcinder: Maybe. Maybe the phone numbers should be in a definition list. It depends on what other data you have, and how you want it displayed. [14:18:07] it's a phone directory [14:18:15] so name + extension + dept + possible fax/cell [14:18:42] Nightcinder: That sounds like a table, then, yes. [14:18:52] frame:expandTemplate{ title = 'template', args = { 'arg1', 'arg2', name = 'arg3' } } [14:18:53] <- uhuh? but LUA can't directly use Extension:Slideshow syntax?, oh wait, is it frame:ExtensionTag ? [14:19:05] marktraceur: the problem comes when i try to print.. [14:19:06] KyoriAsh: Yup. [14:19:21] ok I give it a try [14:19:29] KyoriAsh: I forgot that Lua is meant to be outputting HTML and not Wikitext :) [14:19:45] marktraceur: the wiki refuses to break tables up between pages [14:19:49] so i get tons of white space [14:19:59] not sure how to fix this [14:21:02] Nightcinder: Well, for that purpose, definition lists might be the answer. [14:21:16] But I'm not 100% certain [14:21:58] there has to be a way to force tables to break [14:22:51] i just don't know what to edit [14:22:58] hmm.. not quite understand by using ExtensionTag with this: https://www.mediawiki.org/wiki/Extension:JavascriptSlideshow [14:23:10] Nightcinder: https://www.mediawiki.org/wiki/User:MarkTraceur/sandbox e.g. for DLs [14:23:25] lol [14:23:28] nope [14:23:30] nopenopenope [14:23:31] Mmmkay. [14:23:40] i have 300 people [14:23:48] that would be absurd [14:25:24] KyoriAsh: frame:extensionTag( name='slideshow', content='
[[Image:whatever.jpg]]
', args={ sequence='random' } ) [14:25:31] marktraceur__ thx. Any pointer to which table I should look into - archive? [14:25:38] guest__: Probably revisions. [14:25:39] arh thnkx [14:26:17] KyoriAsh: Lucky for you, calling an extension tag like slideshow will also parse whatever's inside, so the image will get changed into a file transclusion. [14:27:35] now a weird thing [14:28:06] {{border-radius|xpx ypx zpx}} seems passed without any problem [14:28:10] in lua [14:28:32] That is a little weird, maybe [14:28:53] KyoriAsh: It's possible that expandTemplate is meant to be used for expanding the template so you can mess with it in the module. [14:29:33] local statLabel = '' <- original coding [14:29:39] not using expandTemplate [14:32:14] okay another question [14:32:23] wiki is currently editable by anyone/anyone can 'register' [14:32:27] how do i shut that off [14:32:38] please be a quick and easy command [14:33:12] i only want a select group of people (pulled from AD) to be able to edit [14:35:58] Nightcinder: https://www.mediawiki.org/wiki/Manual:User_rights [14:36:55] IS WORKING! IS WORKING!!! Kisses marktraceur [14:37:05] Heh, cheers KyoriAsh [14:37:49] well [14:37:55] i got the editing working [14:37:57] now how to turn off create user [14:38:16] Nightcinder: I think that right is "register" or "createaccount" but I'm not sure [14:38:34] Nightcinder: Yeah, createaccount [14:38:36] it's createaccount [14:39:08] trying to figure out how to turn it off tho [14:39:12] If you have it set so only registered users can edit and create accounts, that's probably sufficient [14:39:25] i want 0 created accounts [14:39:27] i'm using LDAP [14:39:32] That way, any registered user can edit, but only people invited by an existing user can...oh, god [14:39:32] they don't need to create an account [14:39:34] Not LDAP [14:39:42] it's working [14:39:44] for now [14:39:44] lol [14:39:52] Nightcinder: https://www.mediawiki.org/wiki/Extension:LDAP_Authentication you're on your own buddy [14:40:00] it's already working tho [14:40:05] Oh, good. [14:40:17] i just want to turn off the create account button [14:40:33] Well, then, $wgGroupPermissions['*']['createaccount'] = false; [14:40:39] $wgGroupPermissions['*']['createaccount'] = false; [14:40:41] ya i found it [14:40:52] I dunno if that will hide the create account thing but it'll make people not able to get it working [14:41:04] it did [14:41:09] * marktraceur could have verbed nouns a little more in that sentence [14:41:16] noun some verbs bruh [14:41:25] okay now to create the wiki editors group.. [14:41:29] OK I'm gonna run, glad things seem to be working [14:41:29] here comes the fun part [14:42:07] $wgGroupPermissions['*']['createaccount'] = false; <- ? [14:42:21] LocalSettings.php -> add $wgGroupPermissions['*']['createaccount'] = false; ? [14:42:37] yeah that would disable creation of accounts [14:42:42] by anyone but a sysop [14:43:06] http://en.kancollewiki.net/wiki/Special:CreateAccount at least this option limited to SysOp [15:15:22] i noticed in /etc/php.d mysql doesnt seem to be in there [15:21:30] ritztech: are you trying to setup mediawiki? [15:21:38] ya [15:21:51] and it says something like "no suitable database drivers found"? [15:21:59] (or doesn't list MySQL as an option?) [15:22:01] getting this [15:22:02] Could not find a suitable database driver [15:22:03] lol [15:22:24] ok [15:22:28] php56-php-mysqlnd.x86_64 5.6.26-1.el7.remi @remi-safe [15:22:29] shows installed [15:22:50] ok, one sec [15:24:06] Krenair: I was waiting for him to say something, but sure :P [15:24:37] he'll just evade that [15:24:40] oh, remi [15:24:43] so heads up [15:24:49] I don't have that repo set up on my centos box [15:25:50] im doing MediaWiki 1.27.0 with PHP 5.6.26 on centos [15:25:57] not sure if maybe theres a version mismatch [15:26:13] ritztech: it looks like PHP might be installed into /opt/remi/php56 and not /etc/php, is that correct? [15:26:52] i do see an active directery in /opt/remi/php56 [15:26:54] yeah [15:27:03] I'll keep an eye on it for a while [15:27:48] ok, so did you configure apache (or whatever webserver you are using) to use the PHP located there? [15:28:02] I'm thinking that may be the holdup [15:28:09] in that it's looking at the wrong PHP installation [15:28:44] /etc/php.d [15:29:01] in the mediawiki installer, what PHP version is it reporting? [15:29:11] i think i just did a php56 cause mediawiki 1.27.0 said it requred later then 5.4 [15:29:18] PHP 5.6.26 is installed [15:31:33] hmm [15:31:56] ritztech: can you create a file phpinfo.php in the same directory as mediawiki with the following contents: and then go to it? [15:32:05] haha doing just that lol [15:32:21] (if your website is publicly accessible, do you mind providing a link to it as well either here or in PM?) [15:33:03] it shows PHP Version 5.6.26 [15:33:06] kk leeme see [15:35:34] https://jsfiddle.net/nepmt0sz/ [15:37:50] ok [15:38:16] okay so i don't suppose there's a good way to restrict viewing of certain pages based on group, right? [15:38:32] ritztech: do you see a file /usr/lib64/php/modules/mysqli.so [15:38:43] Nightcinder: Extension:Lockdown lets you do it per-namespace [15:38:55] !lockdown [15:38:55] Lockdown is an extension for preventing read or write access by namespace and limiting access to special pages, see < http://mediawiki.org/wiki/Extension:Lockdown >. For per-page access protection, see !ppp. For general information on preventing access to your wiki, see !access. [15:39:08] !ppp [15:39:08] The PrivatePageProtection extension allows access to individual pages to be restricted to specific user groups, see < http://www.mediawiki.org/wiki/Extension:PrivatePageProtection >. For restricting access to entire name spaces, special pages and actions, see !lockdown. For general information on preventing access to your wiki, see !access. [15:39:14] oh, also that [15:39:18] nope [15:39:18] Nightcinder: ^ [15:39:19] lol [15:39:24] hm [15:39:36] i dont see it in lib64/php/modules/mysqli.so [15:40:00] ritztech: is there a package php56-php-mysqli? [15:40:05] (if yes, install it) [15:40:14] i guess we want to keep certain pages not viewable outside of departments [15:40:21] i.e. finance pages not viewable outside of finance/sysops [15:40:33] see the two extensions linked to see if either are suitable for you [15:40:44] php56-php-mysqlnd.x86_64 5.6.26-1.el7.remi @remi-safe [15:40:45] i don't quite understand namespaces [15:40:54] is what i have maybe i gotta search it [15:41:27] i guess i could create custom namespaces [15:41:34] IT/Finance/Accounting/whatever [15:41:41] note that mediawiki in general is a terrible choice for a heavily restricted CMS, as it was designed to be as open as possible, so there are numerous issues that may occur when you try to cordon off sections of it to only certain groups. There should be a link on each of those extensions with more information (something like "Security issues with authorization extensions") [15:42:35] ya well i wasn't intending it to be heavily restricted [15:42:35] lol [15:42:45] i was overruled, after i already created it [15:42:58] o [15:43:02] i cant seem to find the package ----php56-php-mysqli---- [15:44:06] hmm [15:44:31] Nightcinder: custom namespaces are your best bet then in conjunction with Lockdown, it seems that the other extension is unmaintained and may not work on recent mediawiki [15:44:44] it's annoying to set up at first, but after setup it's easy enough to use [15:44:49] a namespace is just a prefix before a page name [15:45:06] so IT:Pagename would be a page in the IT namespace, whereas Finance:Pagename is a page in the Finance namespace [15:45:55] i still don't have short url's working [15:45:55] lol [15:46:25] ritztech: I have no idea then :( [15:46:34] maybe try reinstalling php56-php-mysqlnd [15:46:48] or see if php56-php-mysql (no "i" is a thing) [15:47:03] sorry I can't be of more help, but I'm unfamiliar with the repo you're using [15:47:07] php56-php-mysqlnd.x86_64 [15:47:17] ohhhh cool no prob ya googling it now thx for helps :) [15:48:36] lockdown's installed [15:48:40] time for the fun [15:53:19] o [15:53:25] i defined extra namespaces and killed the website [15:53:27] LOL [15:53:30] whooooops [15:59:17] sooo do i need to load module in httpd.conf [15:59:18] LoadModule php_mysqli /opt/remi/php56/root/usr/lib64/php/modules/mysqli.so [15:59:23] trying to find the name [16:03:28] ritztech: no, you need to load it in your PHP config, not your apache config [16:03:37] kk [16:09:47] php config showed MySQLi i thought [16:09:57] as a module [16:10:59] there is no mysql installed in your phpinfo() output you linked [16:11:08] i or otherwise [16:16:49] ohhh if its under Module (or should it be somwhere else) [16:17:27] or in Additional .ini files parsed [16:18:15] darn thing i probally follwed an installer on the web with cent0s 7 and it installed php5.4 defautl and i had to uninstall it and install php56 so i wonder if its caused issues [16:18:16] lol [16:24:51] how uh... [16:24:52] Skizzerz: [16:24:56] how do i move a page [16:25:00] into the new namespace [16:25:24] .. [16:25:25] nvm [16:25:45] Move tab [16:26:00] i have to do each page individually huh [16:26:42] sadly, yes [16:26:58] I'm unaware of a mass-move extension, although one might exist [16:27:05] could also sic a bot/script on it [16:27:09] (using the API) [16:28:27] moveBatch maintenance script [16:29:06] well, i got lockdown working [16:29:12] wonder if i can lockdown the entire category [16:29:20] guessing not [16:29:27] people will be able to see the page name [16:29:29] but not access it [16:39:48] wew it's working [16:43:31] how do i define multiple custom namespaces? [16:43:46] Same way as you defined the first [16:43:56] copy, paste, amend [16:45:19] i did that [16:45:23] and i'm getting a 500 error.. [16:45:53] as soon as i comment them out it's good [16:47:36] https://www.irccloud.com/pastebin/TsmMxFNg/ [16:47:44] when i add the HR ones it dies [16:47:53] when i remove them it works [16:47:55] line 4 is missing a comma [16:47:57] ... [16:47:59] faskjfaskdj;f [16:48:10] SIGH [16:48:11] thank you [16:48:17] sublime pls notify me more [16:52:48] hi guys. I'm running mediawiki on 1.25 on ubuntu 14.04 with nginx and php-fpm. When I save a site, I randomly get a timeout (sometimes it works, sometimes it doesnt). I dont see any errors in nginx log besides php-fpm timing out the request. On strace on the php-fpm process, I see that it tries to contact 54.75.253.147 on 443. They seem to have some kind of conversation (not that good in strace) and then it all ends with poll([{fd=7, events= [16:52:48] POLLIN|POLLPRI|POLLRDNORM|POLLRDBAND}], 1, 0) = 0 (Timeout). [16:56:49] this happens only when I try to save something (and then not always). however when it happens it keeps happening until I restart php-fpm [17:07:38] bluenemo: Is your wiki hosted on AWS by any chance? [17:07:46] marktraceur, on profitbricks [17:07:59] the IP is what its trying to contact, not sure what it wants from it [17:08:08] there is sth running too.. [17:08:38] bluenemo: Does profitbricks use a remote DB server, maybe? [17:09:12] marktraceur, i've got a postgresql9.4 server running on that machine [17:09:18] Huh. [17:09:26] its also not the firewall, can reproduce that behaviour with it turned off [17:10:03] Some part of me wants to run away from an nginx/pgsql setup screaming, but I'll try to stick it out [17:11:05] bluenemo: You said the request to 54.75.253.147 times out? [17:13:04] idk I just see that IP in strace.. I'm not that good with it. Here is the output of strace -p $php-fpm-pid: http://paste.debian.net/hidden/e4dcaea4/ [17:13:42] (the relevant part of what comes when the timeout accurs upon saving an article currently open for editing) [17:16:26] I wish I were better at reading strace :) [17:16:53] bluenemo: Is your wiki accessible by anyone? Can I have the address? [17:17:52] marktraceur, I'm afraid not, sorry :( [17:18:19] think that doesnt help you much :/ [17:19:03] bluenemo: I'll take whatever info you can give me :) [17:19:32] hi all. I have the mysql db for my wiki but no live install any more. I'm trying to find the page contents. which table should I look at? [17:19:41] i'll dig a bit deeper, give me a sec pls [17:20:07] page_props? [17:21:48] hm. enabled all the debug options in localsettings.php, but its no use as it timeouts :/ [17:22:59] strange. pretty much no idea :( [17:24:55] i-make-robots: That would be the 'text' table [17:34:30] The action you have requested is limited to users in one of the groups: Human Resources, Administrators. [17:34:31] :D [17:34:53] now if only i could fix short urls [17:36:19] OK bluenemo, I don't know what's going on, I'm sorry :( [17:36:27] tried to follow the manual and it no worky [17:36:49] probably because i'm using IIS :# [17:36:50] :D [17:38:05] Yeah, you know what they say, look for the Microsoft product in your architecture and that's probably where the issue is [17:38:09] oh [17:38:19] I think mediawiki unconditionally disables short urls on IIS [17:38:38] (hang on, checking) [17:38:55] marktraceur: everything in my architecture is microsoft [17:39:05] even the database? [17:39:25] bluenemo: I don't know what's happening, so I moved out of PM. [17:39:38] sadly not :P [17:39:39] MSSQL ugh [17:39:44] though i could've used mssql [17:39:46] "sadly" [17:39:47] we have an mssql database [17:39:53] I know MediaWiki isn't an MS product, so... [17:39:55] ah ok. thx anyway marktraceur [17:40:11] marktraceur: yet. [17:40:27] mssql support on mediawiki is... well let's just say not great. It works for 95%+ of built-in stuff, but a lot of popular extensions don't have any support for it [17:40:34] anyway! [17:40:39] i want to use short url's on iis [17:40:44] and schema updates are a pain, something I'm hoping to fix soonish [17:40:55] Warning: This Short URL page contains bad advice on how to configure your server that could lead to some pages on your wiki not working and/or may cause you issues while upgrading. [17:40:56] good stuff [17:40:58] (I'm the maintainer for the mssql db layer, although I'm super lazy) [17:41:11] This guide remains simply because an official guide on how to configure short URLs on this wiki has not been created yet. [17:41:13] lol.. [17:42:32] ok, what version of IIS do you have? [17:43:39] it looks like the thing I'm thinking of is unrelated to short urls [17:43:51] (although it will affect how "pretty" your page urls are if you use namespaces) [17:44:10] looks like 8 [17:44:36] marktraceur - would I mage the page:page_id to text:old_id ? [17:45:03] ok, then that won't be an issue [17:45:11] give me 2 mins and I'll give a sample web.config that should work [17:45:19] o ok [17:45:19] ty [17:45:23] i will brb anyway [17:45:32] some things I need to know first though [17:45:38] 1) what do your wiki URLs currently look like [17:45:43] 2) what do you want them to look like? [17:45:57] example: 1) /w/index.php?title=Pagename 2) /wiki/Pagename [17:46:35] http://infinity5.local.domain.com/index.php?title=Phone_Directory [17:46:58] 2 would ideally be as small as possible, either /w or nothing at all, even though i know everyone hates that [17:47:10] i want to make it as easy as possible for our users [17:47:40] it's problematic for a few reasons, but we can always make a rule that maps / to the wiki (so you don't have any issues just going to the domain, then once there you can just follow links) [17:47:45] Are you selling a new bt infinity package? [17:47:50] i'd be ideal if i could remove .local but yeaaaah [17:47:55] i'm not in charge of that [17:48:16] theres infinity 1, 2, 3 and 4 [17:48:22] is there going to be a 5? [18:03:59] Skizzerz: it doesn't have to be / [18:04:24] http://dpaste.com/0W64FNM [18:06:01] Nightcinder: see above link [18:17:14] hi [18:17:18] sorry was talking to my boss [18:18:06] so i just copy one of those, name it web.config? [18:18:35] add it to an existing web.config file; if you create a new one then you'll need to include the boilerplate that goes around that section [18:19:09] the web.config should be in the same folder as your index.php [18:19:29] i don't have a web.config [18:19:32] also I'm 95% certain that your wiki folder needs to be set up as a web application rather than a regular folder (if it isn't already) [18:19:42] (or web site if it's top-level, that works too) [18:19:44] it is not [18:20:45] https://usercontent.irccloud-cdn.com/file/KSlpDNuE/ [18:20:47] dis how it's set up [18:21:04] that's a web site, so that's fine [18:21:39] anyway, just include the boilerplate around the config section I pasted [18:22:04] the first line needs to be the xml declaration [18:22:16] then you copy paste one of the things I pasted inside of a block [18:22:52] you can also use the IIS Manager GUI to do it too instead of manually editing the file by going to the URL Rewrite section [18:23:19] nothing happened [18:23:20] lol [18:23:43] you need to make the modifications to LocalSettings.php as well [18:23:47] as directed by the paste [18:23:50] i did [18:24:01] and you need to install the URL Rewrite for IIS, as directed by the paste [18:24:04] it is not installed by default [18:24:13] i did [18:24:21] then it should work just fine [18:25:23] ..is it backwards? [18:25:28] ? [18:25:39] pls hold [18:26:18] 500 error [18:26:18] neat [18:26:46] check your error log [18:27:43] i don't see an error [18:28:00] your PHP error log* [18:29:00] if you have the PHP addon for IIS, there's a link to it in the PHP Configuration screen [18:29:11] this also doesn't work [18:29:14] https://usercontent.irccloud-cdn.com/file/Ao3Knzpr/ [18:29:29] you have it backwards [18:29:45] i copied [18:29:46] and pasted [18:29:48] you visit wiki/Foo and IIS turns it into index.php?title=Foo (in the background) [18:30:08] so yes, of course going to index.php directly isn't going to match it [18:30:16] what [18:31:01] that's not what i wanted lol [18:31:04] yes it is [18:31:17] note "in the background" -- that rewrite is not visible to the end user [18:31:31] but you need to visit the pretty version in your browser [18:31:56] if your LocalSettings.php configuration is correct, MediaWiki should redirect you to the pretty version if you visit the ugly one automatically [18:32:06] but visiting index.php directly is not going to make use of the rewrite [18:33:22] if you're getting a 500, that indicates you messed up the configuration [18:33:37] or something else is going on [18:33:55] (or I messed up the configuration, I didn't exactly test it with mediawiki, but I did test it with a simple script) [18:34:04] the PHP error log will tell you more [18:35:49] i have no errors in the php error log ._. [18:36:14] check event viewer then, could be an issue with the web.config [18:36:27] (would be the application log) [18:37:04] yeah there's nothin gin there iethe r;x [18:37:10] holy keyboard [18:39:01] ok, give the full contents of your web.config file and the full contents of your LocalSettings.php (remove any and all passwords and secret keys first) [18:39:35] hello. I have sql query getting me the required results from mw tables, I want to embed the results in the wiki page, is api the way to do it or is there any other uncomplicated way? [18:42:40] guest__: what, exactly, are you trying to accomplish? [18:45:02] I wanted to create a graph on wiki growth; I got the data now from revision table (sql query from mariadb on the server); now I am pondering how to get the data to the wiki page (execute the query and get the results to wiki page). [18:47:49] guest__: doing it dynamically/automatically will likely require writing a custom extension. Otherwise, you can look into either graphing it elsewhere and uploading/embedding an image of the graph, or using one of the graphing extensions already out there and transforming the data into the format it expects (and manually updating the data occasionally) [18:48:30] wtf is going on now [18:48:36] now it's trying to redirect to /wiki/index.php [18:49:34] I removed everything I added [18:49:35] Nightcinder: can you get those 2 files I requested (stripping out passwords/secret keys/other private data first)? [18:50:27] put everything back into place first, the way it was after you made the changes [18:50:38] thx. writing custom extension is above my abilities at the moment but the other way looks feasible. [18:50:48] pls hold [18:50:52] i'm trying ot make it work again [18:51:39] broken is fine, as long as you know how it's broken [18:51:52] i don't [18:51:58] there's no rewrite rule anymore [18:52:00] and it's still rewriting [18:52:01] but 'how' I mean 'what it's doing' [18:52:24] yes, put the rewrite back, then send the two files, I can help you sort this out [18:52:31] but having things in place makes it easier [18:57:50] the installation docs say that maintenance/install.php can be run from a web browser, but I get a message saying it must be run from the command line. I'm missing something aren't I? [18:59:03] AwoL: web install is at /mw-config [18:59:06] not /maintenance [18:59:49] Skizzerz: ah, thanks...I didn't catch that. [19:32:22] Is there any file in the maintenance directory that will run action=purge on any cached pages? [19:32:42] purgeList? [19:33:11] is that going to annihilate my database? I only have to do it locally on one server >> [19:33:21] by annihilate I mean do a bunch of stuff [19:34:01] with --purge it updates page_touched, it doesn't reparse the page, but next page view should reparse the page [19:35:14] Ulfr: There's a config setting you can set [19:35:26] so basically, it makes the parser cache of that page as "dirty", and the next person or bot viewing would reparse it, effectively reloading templates, redlinks, etc [19:35:53] Ulfr: If you set $wgCacheEpoch to todays date, its equivalent to purging all pages [19:36:25] if you have $wgInvalidateCacheOnLocalSettingsChange on (which is default), then any edit to LocalSettings.php will purge all pages [19:36:58] ah, yes, that would be more efficient [19:38:30] blech. nothing doing. It's annoying, when I launch the sucker all the pages simply won't load but will if I run action=purge. I just don't want to nuke my cache during peak hours. [19:39:43] I guess it'd be better to resolve it tonight. By the bye, can anyone shed some light on what haproxy uses under load in terms of more memory or processor? I'd assume it's processor [19:39:50] * Ulfr is switching to a new server architecture [19:43:00] Guess I'll figure that out tonight as well, given the crickets. Thank you for the suggestions anyways! [20:14:14] kaldari: btw, if you're planning to do collation changes on any other large wikis, I had an idea about how to make it less disruptive [20:14:58] kaldari: The script goes in order, so in theory we could make MW check if the current category is "done" yet, and dynamically switch which collation new members get, based on if its done or not [20:19:04] Let's say I wanted to create a [[Template:Raw URL]] and wanted to have it display a URL without an auto-link https://www.mediawiki.org/wiki/Help:Links#How_to_avoid_auto-links -- How would I do that from a template? [20:19:38] Is there a class (similar to plainlinks) that I can use to disable auto-linking? [20:20:05] ShoeMaker: should do it. [20:20:46] {{{1|https://www.mediawiki.org}}} does not work. [20:21:22] ShoeMaker: try {{#tag:nowiki|{{{1|https://www.mediawiki.org}}}}} [20:21:32] https://meta.wikimedia.org definitely works. [20:21:41] What bawolff said. [20:21:56] Sorry, I missed the first part about doing it in a template. [20:22:25] Perfect. Thanks bawolff [20:45:36] hi everyone. could someone point me to documentation on how to create a custom infobox template? [21:07:18] my webadmin upgraded php to 5.5.38 a couple days ago and when he restarted apache today, this started happening: [21:07:26] http://doomwiki.org/wiki/Entryway [21:08:36] QuasAtWork: Either your webadmin needs to install the uapc php extension [21:08:50] QuasAtWork: well you may want to install APC, like the error message says :P [21:08:53] or change $wgMainCacheType to CACHE_NONE in LocalSettings.php [21:09:18] I think he was under the impression it was already installed [21:09:29] No, it was split off in newer versions [21:09:30] MediaWiki doesn't think so [21:09:37] Ofc, we don't support apcu properly anyway [21:09:52] I thought we did for php < 7 [21:09:59] we don't support it properly on php7 [21:10:48] I can't remember [21:10:53] It's a while since I poked at it [21:10:56] IIRC he previously *had* to change it to CACHE_ACCEL to make MobileFrontend work. [21:11:38] Then mf is being broken :S [21:11:50] But, if MF is insisting, you can change to CACHE_DB instead [21:11:58] but... that will probably slow your wiki down [21:12:36] as often the overhead of db access is worse then just generating stuff from scratch for main cache (or so I'm told, I;ve never measured) [21:13:04] memcached on localhost should be pretty fast [21:13:15] However, For parser cache, CACHE_DB is faster than CACHE_NONE by quite a bit, so $wgParserCacheType should be CACHE_DB if CACHE_ACCEL is unavailable [21:13:18] can it be made to use a unix sockt btw? that should cut tcp overhead to zero [21:14:23] seems to be possible, but a bit tricky https://kx.cloudingenium.com/linux/ubuntu/configure-memcache-use-unix-socket/ [21:14:53] I'm assuming QuasAtWork does not have memcached installed [21:15:28] but that's easy to do [21:15:54] as easy as intalling apcu, maybe eaybe easier [21:16:13] Reedy: in what way is apcu support incomplete? i'm using it on a wiki i recently set up. [21:16:19] would be good to know if i need to change it :;) [21:16:39] hello, after update to master version, I got this error PHP Fatal error: Call to a member function getCanonicalServer() on a non-object in ../extensions/CentralAuth/includes/CentralAuthHooks.php on line 1044 [21:16:46] DanielK_WMDE: https://phabricator.wikimedia.org/T140587 and https://gerrit.wikimedia.org/r/#/c/299498/ [21:17:32] DanielK_WMDE: See specifically PleaseStand comment on the gerrit [21:18:11] apcu-bc seems to fix some problems [21:18:15] DanielK_WMDE: I had considered doing it time ago [21:18:34] but there's an explode(":", $wgCacheType) in mediawiki [21:18:55] which breaks what would otherwise have allowed inputting a direct socket:// url [21:19:15] vander: Make sure your version of CentralAuth corresponds to your version of MediaWiki [21:19:36] vander: Also seriously consider if you really need CentralAuth. Shared user tables is much easier to setup/maintain [21:20:53] bawolff, the update has been done on both, core and extensions [21:21:17] thanks, situation averted [21:21:24] for now anyway :) [21:21:37] Reedy: ah, doesn't work with hhvm. ok [21:21:41] i'm fine then :P [21:21:45] Platonides: it could be done like $wgDBserver: localhost:/var/run/mysql/mysql.sock [21:21:54] Platonides: that sounds like it should be fixable... why does it explode anyway? [21:22:02] DanielK_WMDE: some php 7 issues though too [21:22:58] DanielK_WMDE: ip:port [21:23:05] sure it is fixable [21:23:18] grep doesn't find it [21:23:21] but at that time I didn't find an elegant way to do it [21:23:30] vander: Probably means something's messed up with your $wgConf settings [21:23:31] maybe it changed now [21:23:34] Platonides: yea, use a regex that is more restrictive. /:\d+/ [21:24:27] yea, aaron worked a lot on the caching stuff over the last year [21:25:45] I made the change so $wgDBserver supports socket ^^ [21:26:21] Doesn't setting it to be localhost make it use a socket by magic? [21:26:46] something about the mysql driver magically rewrites localhost to actually be a socket or something [21:27:07] Vulpix: :) [21:27:09] yes, but sometimes socket was not on a standard location, so there was no way to specify the location [21:27:19] it was T67998 [21:27:19] T67998: mysqli: No way to specify the socket location - https://phabricator.wikimedia.org/T67998 [21:27:23] ah [21:28:00] bawolff, https://dpaste.de/mtHC [21:28:12] that's just for mysqli Vulpix [21:28:24] we were talking about memcached [21:28:41] yes, I just mentioned it as an example of what could be done so it's supported for memcached [21:29:46] although it may not use the same notation, since in mysqli the port/socket part is optional, maybe in memcached it's not [21:30:38] vander: I don't know, but I'm guessing you're missing $wgServer, $wgArticlePath, and $wgScriptPath [21:32:54] they are in initialisesettings.php [22:04:07] yiiiikes still stuck [22:04:23] not sure why its soo hard today lol usually i figure install an image and goo lol [22:05:33] but i used a 2015 guide and it instaleld php 5.4 but then i had installed mediawiki 1.27.0 and it said it required php 5.6 and i think with the uninstall and re-install of php56 i think its what caused issues but not sure how to rectify it [22:06:16] ritztech: what's your OS? [22:06:40] centos7 [22:07:09] haha sooo PHP 5.6.26 is installed and with mediawiki its failing saying Could not find a suitable database driver that i need to install php5-mysql [22:08:01] php56-php-mysqlnd.x86_64 [22:08:04] is what i have [22:09:35] php -m not showing it though [22:15:17] this message quirk is drivin' me nuts... [22:16:51] for messages we haven't customized this particular code on my skin behaves as expected and responds to the protocol (http or https) properly; but for the one we have customized (MediaWiki:Helppage) it continues to get an expansion with http: regardless if language is en [22:17:02] and just to infuriate me if I change language to qqx it changes to https. [22:17:38] and the content of the message is {{fullurl:Help:Contents}} [23:32:20] is there any way to edit the Protect options so "Allow only autoconfirmed users", etc. can be changed to say something else? [23:32:30] also is there a way to define custom protection levels [23:33:56] You can edit messages to change the first one [23:34:06] And yes, you can do custom protection levels [23:34:18] https://www.mediawiki.org/wiki/Manual:$wgRestrictionLevels [23:34:57] "protect-fallback": "Allow only users with \"$1\" permission", [23:34:57] "protect-level-autoconfirmed": "Allow only autoconfirmed users", [23:34:57] "protect-level-sysop": "Allow only administrators", [23:35:24] where're the strings defined, or do I have to add this as a custom set of config options to override existing? [23:36:26] The strings are localisation messages. They're stored in json files [23:36:38] But you can override them onwiki by editing MediaWiki:message-name-here [23:37:03] ahhh, I should read more. Thanks, Reedy [23:58:31] there's no way to do an internal link to a special page while providing additional parameters that would be URL-level parameters is there? [23:58:36] not without doing an external link to an internal page