[06:18:29] What are all the different transformations I can do with the transform() method of the File class? [06:18:42] the documentation just refers to a generic "params" array without saying what those params can be [06:20:12] harej: the exact parameters depend on the file type, and on its handler. this is basically the same thing as in the [[File:foo|params|Description.]] syntax in wikitext, but i'm not sure what the format is to be honest :/ [06:20:56] so if I wanted to link to a different page it would be 'link' => 'Internal page title' ? [06:22:02] i'd guess that should be handled somewhere earlier than transform()… that one just returns the transformed file [06:30:18] so I read the documentations for File, MediaHandler, and ImageHandler, and don't see anything specifically about manipulating the link. transform implies that it can do it, but I don't know what the syntax would be [06:45:56] It's "custom-title-link", apparently. [06:48:44] https://doc.wikimedia.org/mediawiki-core/master/php/classThumbnailImage.html#details << this looks kinda broken :/ [16:33:58] hi -- i'm running mediawiki 1.28.0, and "bunzip2 -c ~/Downloads/enwiki-20170120-pages-articles-multistream.xml.bz2 | perl mwimport | mysql -f -u wikimirror -p wikimirror". [16:34:12] getting "ERROR 1054 (42S22) at line 192208: Unknown column 'page_counter' in 'field list' [16:35:09] otherwise the mwimport proceeds, filling wikimirror.text[] with binary blobs. nothing comes up at pages[] (there's just the Main Page row).̣ Random Page keeps displaying just the Main Page. [16:35:48] haven't run update.php yet, if that's the fix ... or should I just get v 1.29.x going, cause that's what the dump seems to have been made with. [16:35:51] ? [16:45:18] ketarax: the page_counter field is no longer present on current versions of MediaWiki [16:45:34] ketarax: Yes, try running update.php. You also might need some extensions that Wikipedia has. [16:46:00] ok, thanks [16:46:08] if you want to avoid the error, you'll have to create that field manually on your database, or fix the script that creates the SQL statements expecting it [16:46:14] !db page [16:46:14] See http://www.mediawiki.org/wiki/Manual:page_table [16:46:49] thank you! [17:17:46] I'm working on upgrading form 1.27.0 to 1.28.0 What PHP version do I need ? [17:29:52] Mlpearc: PHP 5.5.0 or later or some recent version of HHVM. [17:30:26] ![[Manual:Installation requirements]] [17:30:46] MTres19: Thank you, I have 5.6.29 (cgi-fcgi) [17:31:14] Mlpearc: Actually 5.5.9; mistyped. [17:31:19] but I'm getting a php error via PuTTY [17:31:47] Could you paste the error? [17:31:59] Error: You might be using on older PHP version. [17:32:00] MediaWiki 1.27 needs PHP 5.5.9 or higher. [17:32:02] Check if you have a newer php executable with a different name, such as php5. [17:33:39] Try running php -v [17:33:59] This project has been idle for some time so I'm sure bugs have moved in :P [17:34:35] Mlpearc: What's the output of php -v [17:34:45] MTres19: I've never ran that, what's the command ? [17:34:58] It gives the PHP version. [17:35:20] just type php -v ? [17:35:23] On the terminal. [17:35:25] Yes. [17:35:29] kk [17:36:03] 5.4.45 [17:36:21] the culprit [17:36:35] now how do I change that ? [17:38:03] Is this on the host side or my project [17:38:23] must be host side [17:38:37] afk for a sec [17:41:07] Mlpearc: If it's a VPS, you may need to run an update with a package manager; if it's a shared host you may need to contact your hosting provider. [17:42:55] cool thanx, I'm off to provider chat, oh joy :) [17:43:02] MTres19: ^ [18:23:38] Hi, can anybody explain me https://cs.wikipedia.org/w/index.php?title=Speci%C3%A1ln%C3%AD:Protokolovac%C3%AD_z%C3%A1znamy/block&page=Wikipedista%3AVicvance1&uselang=en ? [18:24:25] I mean the length of the long blocks and why even there is no unblock entry they aren't in effect now, see https://cs.wikipedia.org/wiki/Speci%C3%A1ln%C3%AD:P%C5%99%C3%ADsp%C4%9Bvky/Vicvance1?uselang=en [20:21:36] Evening all. My Bureaucrats seem to be able to add themselves to the administrators group. Can anyone tell me how i can prevent this? [20:26:02] hi. is it technically possible to have view and write protection per page in mediawiki? [20:26:23] eg having a private and a public part of the wiki [20:32:08] Anyone know how I can prevent Bureaucrats from adding others and themselves to the admin or bot groups? [20:38:41] ford_p, I believe you need to create different groups and use namespaces. [20:39:01] ford_p, All pages within a certain namespace can have different permissions I believe [20:39:03] Thorax: so, in principle this is possible? [20:39:13] https://www.mediawiki.org/wiki/Manual:Preventing_access [20:39:19] As far as I know yes [20:40:40] i know you can restrict a lot, but i was not aware that you can mix it over the wiki (in namespaces) [20:40:49] thank you, very helpful [20:42:48] ford_p, I dont suppose you know how to stop Bureaucrats from adding others and themselves to the admin group? [20:44:09] Thorax: nope, very sorry. i set up a mediawiki once, but know it mostly from user side [20:44:19] fair enough [20:48:27] Thorax: See mediawiki.org/wiki/Manual:User_rights [20:48:44] MTres19, Ive read that. It doesnt explain about it [20:52:10] Thorax: $wgGroupPermissions['bureacrats']['userrights'] = false; [20:52:33] In LocalSettings.php. [20:53:09] But then they cant add anyone to any group [20:53:23] I just want to prevent them from adding people to the admin group [20:54:10] Thorax: Sorry, can't help you there. If you can't trust your bureaucrats that may be the problem. [20:55:05] Seems like a pretty standard thing to have. Admins and Moderators.... Moderators shouldnt be able to make themselves admins in any situation. Else whats the point in having admins anyway? [21:42:55] Im looking at setting up short urls. My wiki is on a subdomain however, so I installed it to the root of that subdomain. Its at wiki.website.com [22:12:59] I have trouble uploading MediaWiki from 1.26.4 to 1.27. I had before 1.26.2 which I manually incremental upgrade to 1.26.4. but I cannot upgrade to 1.27. If I copy include, languages folders and autoload.php file, I cannot load my wiki. [22:13:06] Any help please [22:18:10] blueHawk: I recommend you follow one of the supported upgrade methods documented in mediawiki.org [22:25:29] I did that but it is not working [22:26:27] and I am on a shared server [22:43:33] Have I done any mistake in before upgrades? [22:43:48] Is there anyway to find they problem?