[03:38:42] is there a way to hide new changes to a page/new page until someone(like sysop) approves them? [03:39:30] slushpuppy: There's FlaggedRevs. [03:39:35] !e FlaggedRevs [03:39:35] https://www.mediawiki.org/wiki/Extension:FlaggedRevs [03:39:43] But in general, MediaWiki is all or none access model. [03:40:00] So either everyone gets to see stuff or only people with logins. [03:40:16] Trying to restrict particular pages or particular namespaces is tricky and not really supported still. [03:41:34] what about pending changes protection? [03:41:41] Thanks Debra! [03:41:57] ksft: "Pending changes" is probably the English Wikipedia name for FlaggedRevs. [03:42:18] oh [07:01:33] Is it possible to remove the circled header thing? http://imgur.com/HL2kOiF [07:29:20] slushpuppy: people often do that with css in Mediawiki:common.css [07:32:05] Thanks Nikerabbit [07:34:44] something like .page-Main_Page .firstheading { display:none; } [07:34:55] double check the class names [07:54:52] hey, i have a short question, hope it's ok to ask... we are setting up a wiki and trying to understand how to make the interwiki links more user-friendly, like on wikipedia where you can click 'add language' instead of having to add it in the source [07:54:59] is this included in the interlanguage extension? [08:07:59] where exactly do you see an "add language" link? [08:08:51] rather, 'edit links' ... but never mind, i think i got on the right track. looks like it is done through wikidata, so hopefully I can figure it out from here [13:44:55] I am trying to create a sub category inside a category page, putting the "[[Category:Category name]]" simply adds the subcategory into the bottom. How do it make it appear inside the content [13:47:07] put [[Category:Category name]] into the subcategory page? [13:52:51] auvajs_, it just appears that this http://imgur.com/6OtGhkC [13:53:22] I want it to show the Subcategories heading at the top [13:57:37] I'm not sure but I guess you need CategoryTree extension for that [14:00:38] https://meta.wikimedia.org/wiki/Category:Africa <-- basically i want that "This category has the following 34 subcategories, out of 34 total. " [14:05:55] o nvm i think i got it [16:17:19] Any idea why I am getting http://pastebin.com/QQmcqh94 when trying to use a password reset on my wiki? [16:21:08] Betacommand, appears to be a syntax error inside [16:21:19] #0 /var/www/html/pathfinder/includes/mail/UserMailer.php(368): Mail::factory(string, array) [16:21:51] also does anyone know of a working extension similar to this, but for 1.27? https://www.mediawiki.org/wiki/Extension:PluggableAuth [16:22:08] Betacommand: something to do with the pear/mail you have [16:22:15] check for pear updates? [16:23:18] or maybe I could patch it to 1.27 myself, any quick cheats mirgration guide for authplugin->authmanager? [16:24:15] https://www.mediawiki.org/wiki/Manual:SessionManager_and_AuthManager [16:24:24] https://www.mediawiki.org/wiki/Manual:SessionManager_and_AuthManager/Updating_tips [16:25:06] slushpuppy: I think Cindy is working on updating that plugin for AuthManager. Let me see if there is a ticket open [16:25:09] slowly building a competent websitee! [16:25:14] fuck this kb [16:25:22] thanks bd808! [16:25:37] i must admit [16:25:55] mediawiki is easily the most detail OSS php SASS i used in a while [16:26:07] need to figure out how to do LDAP ACL's now D: [16:26:25] slushpuppy: T110464 [16:26:25] T110464: Update PluggableAuth to use AuthManager - https://phabricator.wikimedia.org/T110464 [16:26:26] Reedy: thanks, did a forced update and that fixed it [16:26:28] bd808, teach me how to find tickets as well! [16:26:36] Open phab [16:26:38] type words [16:26:40] search [16:26:41] profit [16:26:43] whats this phab thing vs github [16:27:06] Phabricator is our bug tracker [16:27:16] it's like github's issues only much fancier [16:27:19] and FLOSS [16:27:46] The tracking ticket for all things AuthManager is T89459 [16:27:47] T89459: Modernize MediaWiki authentication system (AuthManager) - https://phabricator.wikimedia.org/T89459 [16:28:38] ic [16:28:46] https://gerrit.wikimedia.org/r/#/c/299107/ [16:28:51] i guess this is what i am looking for [16:29:16] is the ldap extension deprecated now? [16:29:26] i've heard it has issues with 1.27's auth [16:29:44] No [16:29:49] It's just not really maintained [16:29:57] I thought it recieved some updates [16:30:15] i can't get ssl to work, but that might be an internal thing, having my netadmin try to figure it out at some point [16:30:39] Nightcinder, get ur own dedicated server! [16:30:47] ? [16:30:55] slushpuppy: ssl LDAP authentication [16:31:04] i can't get ssl to work, [16:31:10] yeah, LDAP [16:31:16] it breaks when talking to the AD server [16:31:25] but not to other tls sites? [16:31:33] i wouldn't know, this is internal only [16:31:45] hence why get your own dedicated server :p [16:31:54] ..i mean it's hosted internally.. [16:31:59] i don't quite get your point [16:32:08] more control [16:32:13] fix things on the spot [16:32:16] save time [16:32:17] etc. [16:32:20] ??? [16:32:29] i'm hosting it in a vm? [16:32:34] i don't..what? [16:32:56] well i am just as confused as you are [16:33:03] o well moving on [16:33:06] my *internal* wiki is not talking to my *internal* AD over SSL [16:33:09] only cleartext [16:33:19] my netadmin is my coworker [16:33:59] right [16:35:10] ugh and i wasted my time downgrading to 1.26 [16:35:27] anyway [16:35:37] i need to figure out how to implement some sort of ACL's with LDAP [16:35:50] so IT can only view IT, etc [16:37:31] u can build an ldap base off that pluggableauth thing [16:39:33] $wgGroupPermissions['Domain Admins'] = $wgGroupPermissions['sysop']; [16:39:36] apparently this doesn't work [16:44:36] hmm [16:44:42] it's not pulling me into a sysop group [16:48:27] i need to figure out how to implement some sort of ACL's with LDAP so IT can only view IT, etc -- mediawiki may not be the right fit for you then, see https://www.mediawiki.org/wiki/Security_issues_with_authorization_extensions [16:49:00] the AD we use needs to totally be redone too [16:49:18] anyway, as for the permissions thing, $wgGroupPermissions['Domain Admins'] = $wgGroupPermissions['sysop']; won't add you to the sysop group, it'll just give you equivalent permissions as them [16:49:22] (which is probably fine) [16:49:35] but it's not adding me to the domain admins group [16:49:42] if you're not seeing those permissions, it seems likely that your LDAP extension isn't adding the correct group [16:49:44] which is the bigger issue [16:50:01] what LDAP extension are you using? [16:50:45] ldap authentication [16:50:56] I assume latest version? [16:50:57] the one by ryan lane [16:50:59] yeah [16:51:19] https://usercontent.irccloud-cdn.com/file/8i0yNJ9t/ [16:51:26] i don't seem to have an OU for it to pull from [16:51:29] that might be an issue [16:52:40] did you see https://www.mediawiki.org/wiki/Extension:LDAP_Authentication/Examples#Configuration_for_AD_domains ? [16:53:05] as well as the bits above? [16:53:21] lack of OU shouldn't matter as long as your base query isn't including one [16:54:05] perhaps copy/paste your LDAP configuration (from LocalSettings.php), minus any sensitive info like server address and passwords [16:54:05] ya i saw it [16:54:13] into a pastebin service of some sort [16:55:09] should be able to see what tweaks are needed to the config to make things work [16:56:18] https://www.irccloud.com/pastebin/Ea5uzB4g/ [16:57:53] the array keys may be case-sensitive [16:58:00] e.g. PRESRITE is different from Presrite [16:58:43] (in PHP, array keys are case-sensitive by default and it takes extra code to make them case-insensitive) [16:59:05] so try changing all of your config keys to have the same casing [16:59:47] you'll probably need to log out and log back in to test if that did the trick or not [17:01:12] pls hold [17:02:15] trying to do 5 things at once [17:06:48] Member of groups: Autoconfirmed users, Users [17:14:18] does it need something in order to give me those permissions [17:14:21] like an account with sysop [17:15:56] it's not pulling real name either [17:28:01] hello, i just installed a dedicated server with mediawiki framework, in installation proccess i put and save my frontend user, but login page return me this message: "There seems to be a problem with your login session;..." [17:28:40] anyone know what i should do ? i have access to phpmyadmin and all server files. thanks [17:31:13] alex1a, enable $wgDebugLogFile [17:31:30] inside LocalSettings.php [17:31:41] i suspect issues with php sessions [17:32:49] i can't see any wgDebugLogFile option inside my LocalSettings.php, slushpuppy [17:32:58] maybe i should add a new line ? [17:33:33] yes do that [17:33:38] and what value wgDebugLogFile receive ? a bool ? [17:33:51] $wgDebugLogFile = 'path/to/logfile.log'; [17:34:09] replace path with a webserver writeable file [17:34:12] shameonme, thanks [17:36:32] alex1a, when done, try to login again, it should dump some logs [17:39:53] i add this line "$wgDebugLogFile = "/var/log/mediawiki/debug-mediawikidbtest.log";" restart apache, try to login and mediawiki folder do not exist, neither the log file [17:44:01] slushpuppy, i think my permissions was wrong. "find path/to/mediawiki -type d -exec chmod 770 {} +" and "find path/to/mediawiki -type f -exec chmod 660 {} +" [17:44:59] alex1a, it doesn't automatically create the file i think [17:45:06] or the directory [17:45:24] just mkdir /var/log/mediawiki/ && touch /var/log/mediawiki/debug-mediawikidbtest.log [17:45:33] hmm, should i create the log file manually ? [17:45:36] hmm thanks [17:46:22] slushpuppy: it doesn't create the dir but it creates the file [17:46:34] at least it did for me today [17:47:06] Nightcinder: sorry, I got distracted, are you still around? [17:48:13] slushpuppy, i need to sudo to create the folder and the log file, try again and file was empty. should i give special permissions to folder/file ? [17:48:51] auvajs_, i will try to remove log file and let mediawiki create one [17:52:05] nop, mediawiki do not create log file if i remove it. i think this is a permission/ownership problem, i will search about. thanks anyway [17:55:21] should i give special permissions to folder/file ? [17:55:25] yes you have to alex1a [17:55:34] make sure your webserver can read it [17:55:47] infact, it is probably easier to let it write within the MW directory [18:15:51] hi all, can does any one know why I all of a sudden would get this on my wiki: Warning: assert() has been disabled for security reasons in /var/www/x/includes/Revision.php on line 1087 [18:16:18] i tried googling the issue but i'm unable to find what the issue might be [18:17:36] it was still working fine a couple of hours ago and all of a sudden started displaying a blank page [18:18:26] i then checked the apache error logs and also enabled the debugging in LocalSettings.php [18:18:49] which gave me that warning [18:19:14] any help would be greatly appreciated [18:27:10] jjordaan: someone added assert to your disable_functions in php.ini [18:27:11] go remove it [18:29:54] Skizzerz: got busy with another project [18:32:50] terrible timing, I'm about to head off to lunch [18:32:59] Nightcinder: did you fix all the array keys to be all-uppercase? [18:33:13] and then log out and log back in? [18:33:24] if yes and still doesn't work, then will need to look into it further [18:33:28] when I get back [18:35:57] thanks Skizzerz i'll check it out quick :D [18:38:23] Skizzerz: still didn't work [18:38:32] but like i said, i'm busy with another project [18:39:34] So I'm setting up a wiki and adding a custom image to the Special:UserLogin page by editing Mediawiki:Loginprompt. I want the image to resize down automatically when the window is reduced (or on mobile devices), is there a parameter to use with [[File:Imagefile.ext]] embedding that does this? [18:48:50] slushpuppy, mediawiki already create the log file, it's possible to see why i can't login ? this is a fresh install btw [19:21:54] alex1a: what is in your debug log? [19:21:57] !debug | alex1a [19:21:58] alex1a: For information on debugging (including viewing errors), see http://www.mediawiki.org/wiki/Manual:How_to_debug . A list of related configuration variables is at https://www.mediawiki.org/wiki/Manual:Configuration_settings#Debug.2Flogging [19:22:38] alex1a: how is your PHP session module configured ? (check with a phpinfo) [19:22:51] !phpinfo | alex1a [19:22:51] alex1a: create a file called info.php in your wiki's installation directory. It should have the following content: ; Visit it with your browser to see information about your php installation. If it doesn't work, check file permissions. Remove the file when done, it makes life easier for attackers. [19:22:54] i can't login with admin frontend credentials [19:23:24] what is "admin frontend"? during the installation you should have created the administrative user [19:25:24] saper, yeah but seems to be a php session problem. atm mediawiki already have permissions to write debug log file. [19:25:57] login in frontend with admin credentials give me this error "There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking" [19:26:54] looks like a session problem, yes [19:27:04] saper, one moment, i'm creating the info.php file [19:33:20] was created and seems to work fine. i'm trying understand this php session thing [19:46:19] alex1a: there is a 'session' module in the PHP output [19:46:38] it can be configured to used files and other things [19:46:49] normally it is configured to use files in some temporary directory [19:47:06] it may happen that your temp directory is not writable by the web server for example [19:48:53] my /tmp/ folder seems to be filled of some *.lesscache files [19:54:21] oh hey saper! long time no see! [20:07:11] Is it possible to disable minor edits in MW 1.27? [20:08:06] *minor and patrolled [20:08:34] RudyValencia: yes, see https://www.mediawiki.org/wiki/Manual:User_rights#List_of_permissions [20:09:11] there are minoredit, autopatrol and patrol rights you can revoke to all user groups [20:18:25] cool, and how do I turn off password reset since I'm using Active Directory to authenticate users? [21:03:34] I'm trying to setup mediawiki on CentOS 6.5 with nginx [21:03:51] I've got it to load the index php page but it fails to load 'load.php' and such [21:04:12] I ended up debugging the ExtensionRegistry.php file because that's where the php-fpm logs pointed to [21:04:59] it seems the data on extensions loading (if I understand correctly) is messed up somewhere, more specifically the keys in the array are "mangled" (maybe encoding screwup?) [21:05:09] compare these two links: http://wiki.particracy.net/index.php?title=Main_Page http://wiki.particracy.net/load.php [21:05:17] and look at the key entries in that print_r dump [21:06:26] there's some weird memory corruption going on there [21:07:30] I've tried to disable caching in LocalSettings.php with #$wgMainCacheType = CACHE_NONE; to no effect [21:08:30] I just want to get this wiki up and running for now, I don't care (yet) about more "advanced" features (extensions or skins or such) ... in case that might help solve it+? [21:08:38] or even short urls, for now [21:08:55] (I realize I'm just listing features that in all likeliness have nothing to do with the root cause) [21:09:40] this doesn't look like a MediaWiki problem, but a PHP problem. Do you have some php caching like xcache, APC or similar? [21:10:08] I yum installed apc but did not enable or configure it anywhere [21:10:15] but I disabled caching with $wgMainCacheType [21:10:46] xcache and apc are php extensions, they cache PHP code, without MediaWiki intervention [21:11:05] right I'm mixing up two levels of caching [21:11:20] you may see them enabled in phpinfo, usually enabled by a line in php.ini [21:11:57] they may cause some weird things, specially if you install/enable more than one, usually causing segfaults [21:13:15] apc is on, it seems in my phpinfo [21:13:48] now it's off, issue seems solved! [21:14:14] I'm not sure why load.php is particularly sensible to those bugs, always causing crashes like this. Some Gentoo versions cause load.php to simply segfault when using the default php package [21:14:39] yeah I found tons of references to load.php segfaulting but nothing for my actual issue [21:14:56] So for now it seems to work. This is a very low volume site, so I'm not going to work on re-enabling any caching until I really have to. [21:15:27] you can enable any other MediaWiki caching, just not apc ;) [21:15:34] yeah [21:15:39] I will try to fix those sweet short urls first though [21:22:22] wlievens: https://github.com/krakjoe/apcu/issues/38 maybe you can also try setting apc.serializer=php