[10:28:10] i am using latest mediawiki 1.29.2 [10:28:29] trying to integrate google auth plugin [18:42:04] 15:31:00 RoanKattouw: hey, regarding https://gerrit.wikimedia.org/r/#/c/390224, is there any plans to get the change_tags table cleaned up? [18:42:16] Yes, there's an old patch by Cenarium that I'm going to rebase today [18:42:45] Thanks for reminding me [19:45:48] If I want to include all of the rights given to user group A as part of the rights granted to user group B, is there a shortcut way to do that in the LocalSettings.php? So I don't have to copy and paste all of them rights, basically. [19:50:00] $wgGrantPermissions['target'] = $wgGrantPermissions['source']; [19:50:49] So something like this: $wgGrantPermissions['usergroupB'] = $wgGrantPermissions['usergroupA']; [19:51:41] Yup [19:52:32] And additional unique rights can still be granted to B, in addition to those granted by that statement? [19:54:00] yeah [19:54:23] Cool. Thanks for the help. I'm slowly learning all this little things. :) [19:54:31] *these [20:02:47] Does mediawiki support the * right as being "all rights"? [20:04:45] no [20:05:48] Is there a way to grant all rights simply, or do they have to be specifically enumerated? [20:08:31] You could probably use a hook... [20:10:24] $wgHooks['UserGetRights'] = function( $user, &$rights ) { $rights = User::getAllRights(); }; [20:10:27] maybe that'll work? [20:10:50] (you want to limit who you give all rights to by checking the $user object of course) [20:11:19] Yes, it would be only to those in a specific usergroup [20:13:44] $wgHooks['UserGetRights'] = function( $user, &$rights ) { if ( array_search( 'targetgroup', $user->getGroups() ) ) { $rights = User::getAllRights(); } }; [20:19:48] Awesome. Thanks for the help. [21:37:53] HI [21:38:02] I have a problem with DeleteBatch extension [21:38:19] When I upload a .txt file with list of pages with extension have to delete [21:38:22] I got error: [21:38:29] Fatal error: Call to undefined function mime_content_type() in /home/vezba/public_html/wiki/extensions/DeleteBatch/DeleteBatch.body.php on line 232 [21:38:46] It happen on my private wiki vezba.in.rs [21:39:34] We recently migrated that to extension registration, and IIRC mainframe said the extension had a bug on it unrelated to my conversion [21:39:46] maybe you could try with a non-master release? [21:39:55] Where to download it? [21:40:07] and maybe report the error in Phabricator for investigation [21:40:38] Give me link or if I have to download from gerrit command [21:40:52] that I'm not sure [21:40:55] to I can download and try with "non-master release" [21:42:28] https://www.mediawiki.org/wiki/Special:ExtensionDistributor [21:42:52] https://www.mediawiki.org/wiki/Download_from_Git [21:42:57] Zoranzoki21, I think https://www.mediawiki.org/wiki/Special:ExtensionDistributor/DeleteBatch [21:43:05] try 1.27 ? [21:43:37] or 1.29 [21:43:40] tabbycat: It will not work. I have 1.29 [21:43:49] I can not to download 1.27 [21:43:52] hmm [21:43:54] because will not work with 1.29 [21:44:20] 1.30 not feasible either? [21:44:39] I must admit I'm not sure how to install things, I don't own any wiki [21:46:15] tabbycat: I downloaded master version from extensiondistributor [21:46:21] I will try with it [21:47:02] ok [21:47:15] if the error persists, please open a Phabricator task [21:47:25] we shall look into that error [21:49:55] tabbycat: No work [21:50:09] :( [21:50:19] tabbycat: I uploaded file as delete.txt [21:50:41] Too I worked: Uploaded files should contain page name and optional reason, separated by a "|" character in each line. [21:51:23] tabbycat: File is here https://dpaste.de/Sy8x [21:51:34] if ( "text/plain" != mime_content_type( $filename ) ) { [21:51:35] $this->showForm( 'deletebatch-file-bad-format' ); [21:51:35] return; [21:51:35] } [21:52:02] Yes I watching code now. Extension of uploaded file is .txt [21:52:20] Content of file is on dpaste as https://dpaste.de/Sy8x [21:52:34] maybe the cyrilic chars? I dunno [21:53:12] I tryed with deleting with pywikibot [21:53:19] And it no work [21:54:59] My only involvement in that extension has been adding some translations in the .alias file [21:55:36] if the mime_content_type() function doesn't exist, it means you somehow disabled/didn't install the fileinfo extension [21:56:41] also, which name the .txt has to have in order for DeleteBatch to recognize it? [21:57:18] Name of file is delete [21:57:23] cause Special:DeleteBatch does allow the same input, right? [21:58:03] tabbycat: I renamed file on lol and it no work too [21:58:25] Zoranzoki21, have you seen legoktm's comment? [21:58:38] missing the fileinfo extension? [21:58:50] tabbycat: Wait what? [21:59:06] tabbycat: Extension.. Hmm.. For mediawiki or? [22:01:34] I uploaded four files. Then I tried to upload new versions, but OldFile4 was the same as NewFile3. I uploaded, but nothing seemed to change. I deleted the four files, then uploaded the files again (it warned me that I was uploading a file the same as a deleted file). Now when I view the fresh new files I see the old files but with no version history. I've tried purging the cache. How do I get the new files in? [22:01:51] Zoranzoki21, ask legoktm please; I don't have much experience in that area, sorry :( [22:02:06] PHP extension [22:02:56] tabbycat: Thank you [22:03:02] legoktm: Wait to see [22:03:12] Zoranzoki21, no problem, and sorry for not being of much help [22:03:23] tabbycat: No problem [22:04:07] legoktm: I no see in list [22:04:17] legoktm: in cpanel [22:07:02] well then the function should exist [22:09:22] legoktm: No [22:09:26] legoktm: I have not [22:09:34] legoktm: And I can not to find how to install it [22:11:19] legoktm: Oh, omg.. I have it. I found [22:18:51] OK. I resolved with one thing [22:19:06] I copy all pages from file in text box which start.. for example with A [22:19:20] And when extension delete I do it too with other letters [22:24:51] Thank you for help [22:25:36] Anyone familiar with previous file versions being shown? [22:28:31] on-wiki? That's the default [22:28:44] er [22:28:59] 1) on an image/file page, it will show all versions of that file [22:29:17] 2) on an actual page where the file is used, if it's the old version, you probably have a cache somewhere that hasn't updated [22:34:21] On a mediawiki installation, latest version [22:34:29] I uploaded four files. Then I tried to upload new versions, but OldFile4 was the same as NewFile3. I uploaded, but nothing seemed to change. I deleted the four files, then uploaded the files again (it warned me that I was uploading a file the same as a deleted file). Now when I view the fresh new files I see the old files but with no version history. I've tried purging the cache. How do I get the new files in? [22:36:07] is your wiki public? If so, can you link to examples? [22:39:11] It's not public, sorry. [22:51:10] heh, deletebatch indeed has a patch for review to migrate to extreg https://gerrit.wikimedia.org/r/#/c/392081/ [22:51:30] but it's not merged yet so it's not my fault that extension didn't worked legoktm :)