[05:54:20] Hi, a copyrighted photo is illegally being used of me at the address below. When I go into their help section I am redirected to Media Wiki. Please get back to me as soon as possible about removing this page and picture. My email address is samantha@samanthafrost.com Here is the page and image - http://hf.titansable.com/index.php?title=File:Samantha_Frost.jpg [05:56:30] Samantha_: You need to contact that wiki about it, we can't do anything [05:59:47] You might want to contact them about using your help page on their website. There is no wiki page. [06:01:42] I cannot find any way to contact them. If you find a way can you please let me know. Thanks [06:05:48] Samantha_: you can try admin@titansable.com or something [13:15:55] Using CSSJanus on a very long CSS (>300kB) I run into a PREG_JIT_STACKLIMIT_ERROR under PHP7. Anybody else having that problem? Any ideas? [13:17:06] Nothing obviously in gerrit [13:17:40] Probably worth filing a task at https://github.com/cssjanus/cssjanus/issues [13:23:04] Ok, will do. [13:23:07] Thx [13:29:15] There's probably a pcre config variable you can change in php.ini [13:30:23] bawolff: I could turn the JIT off, but I think I'd have to do that globally. [13:30:43] I was thinking, there might be one controlling stack size or something [13:36:41] As far as I can tell there is only JIT on or off. [13:49:46] Ham, it is actually a known issue (https://github.com/cssjanus/php-cssjanus/issues/14), I just looked in the wrong repo [13:50:22] *Ha* [17:10:04] huh, the Jump to links are showing up on my testwiki... [17:18:46] The answer to that is no I believe [18:03:48] Hi [18:05:26] Got a technical question and need some help. I'm trying to write a PHP script that, among other things, tries to determine whether a certain page is a redirect but I'm not sure what the most efficient way to do it is. [18:06:14] Tried a SQL query (https://quarry.wmflabs.org/query/27537) but it gave me more results than I thought it should. [18:06:48] SoWhy, sec [18:07:14] When I tried the API (https://en.wikipedia.org/w/api.php?action=query&titles=Main%20page&prop=info&format=json), the "redirect" value is empty (it shows as "true" with https://en.wikipedia.org/w/api.php?action=query&titles=Main%20page&prop=info&formatversion=2 though oO) [18:07:34] SoWhy: Is this a mediawiki extension, or an independent php script? [18:07:48] independent. [18:08:20] Yes, in version 1 of the api, some values are specified just by the presence with an empty value (originally the API was XML based and used an automatic conversion scheme to json) [18:08:27] SoWhy, https://www.mediawiki.org/wiki/Manual:Page_table -> page_is_redirect will == 1 if it's a redirect. E.g. 'Select page_is_redirect from page where page_title = "SQL" and page_namespace = 2;' [18:09:42] SoWhy: With the sql query, you forgot to specify page_namespace [18:09:58] SQL: Yeah, I figured as much but I need the target as well which is stored in the redirect table. But when I tried (see above) it gave me more than one result [18:10:03] So you're going to get Main_Page and talk:Main_Page and Wikipedia:Main_Page, etc [18:10:21] ^^^^ what bawolff said [18:10:34] *doh* [18:10:46] https://quarry.wmflabs.org/query/27550 <--- updated query [18:11:23] I'll just hang my head in shame then xD [18:11:38] thanks guys! [18:12:02] SoWhy: Don't worry, its a common mistake [18:12:31] General good rule though is to always specify namespace in sql query, as in addition to this sort of issue, not specifying the namespace can make the query very slow [18:17:47] it's a good idea to check what indexes are on the tables [20:20:18] I'm using https://meta.wikimedia.org/wiki/User:Oblivious/SubnetCalc (updated to php7) to show a subnet on my wiki. But because I'm trying to use the 192.168.1.0/24 inside a template, the php code sees the 192.168.1.0/24 as the unexpanded parameter {{{subnet}}} [20:20:50] I don't know enough of mediawiki to takle this. How can I make this work with transclusion please? [20:22:15] (I did something like <subnet>{{{subnet}}}</subnet> inside my template. But that just makes the tag not process at all. [20:33:58] finalbeta: you can use {{#tag:subnet|{{{subnet}}}}}. generally, {{#tag:foo|a|b=c}} is equivalent to a, but it lets you use templates and template parameters, while XML-style tags often don't [20:42:37] MatmaRex, thank you, I had found nothing like that on my search, it works great (while i do need to do some research to work out how/why). [20:43:19] finalbeta: it is mentioned at https://www.mediawiki.org/wiki/Help:Magic_words#Miscellaneous [22:48:00] does https://github.com/memcached/memcached/commit/dbb7a8af90054bf4ef51f5814ef7ceb17d83d974 "disable UDP port by default" affect MediaWiki? are we using UDP to talk to memcached? [22:53:38] hi, im looking at stringsfunctions extensions and i see that manyof its features combined to parserfunctions (as the notes there said, at version 1.2.0) but i cant find any documentation about that in parserFunctions help page, what have i missed? [23:01:13] niso: all of the string functions were merged into parser functions [23:01:39] install E:ParserFunctions and then add $wgPFEnableStringFunctions = true; to your localsettings [23:02:47] yea, just asked about the doc