[14:24:39] Hello is it possible to make some pages that are made in MediaWiki only visible for selected logged in users of the wiki? And how? [15:01:23] kh0ver: Unless the entire wiki is made private, no, this is not possible [15:01:42] !cms [15:01:43] Wikis are designed for openness, to be readable and editable by all. If you want a forum, a blog, a web authoring toolkit or corporate content management system, perhaps don't use wiki software. There is a nice overview of free tools available at including the possibility to try each system. For ways to restrict access in MediaWiki, see !access. [15:03:21] !access [15:03:22] For information on customizing user access, see . For common examples of restricting access using both rights and extensions, see . [15:10:10] ok thank you [15:43:53] Hi. Am having an odd problem: seeing different page content depending on whether I'm logged in or not. The wiki is updated nightly via a script which select only the latest revisions (to keep transfer size down). Am thinking there's an issue w/my sql. Would appreciate an sql whiz eyeballing my queries. [15:57:50] grayanone: That sounds more like caching... [16:06:57] Reedy: I've emptied cookies, cache, etc etc etc. Same result. [16:07:08] Just got my bro in Prague to double-check; same result [16:07:44] I don't see how it could be SQL unless you were putting some variance in for users [16:17:11] not afaik. [16:26:13] Reedy: I commented out the foll. in localsettings.php and it now shows the same contents irrespective of being logged in or not. $wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['*']['createaccount'] = false; [16:26:54] plus also function NoLoginLinkOnMainPage( &$personal_urls ) { ...} [16:30:39] the foll? [16:34:50] Reedy: foll = following [16:37:59] grayanone: do you have "file cache" enabled on the wiki? [16:43:10] Vulpix: yes. I have: $wgUseFileCache = true; $wgCacheDirectory = "$IP/cache"; $wgShowIPinHeader = false; $wgEnableSidebarCache = true; [16:43:47] The file cache is for anons only. Depending on how do you make those edits, the file cache may not be purged [16:44:19] Editing LocalSettings.php, depending on your settings, causes CacheEpoch to be bumped [16:47:02] [16:57:35] grayanone: That sounds more like caching... [16:47:03] ;P [16:48:25] Vulpix: (feeling stupid) where is the cache stashed? can't seem to find it [16:49:00] Reedy: assumed you meant browser cache. apologies. [16:49:09] !wg CacheEpoch [16:49:09] https://www.mediawiki.org/wiki/Manual:%24wgCacheEpoch [16:49:47] Wulpix: yes just read that page after you posted. but doesnt tell me where it lives. [16:50:24] the cache of the pages? on $wgCacheDirectory [16:50:47] Vulpix: urrr... I give up. Tell me the answer in words of < 1 syllable [16:51:41] Vulpix: no such dir as $IP/cache that i can find [16:52:09] $IP means the directory where MediaWiki resides [16:53:08] Vulpix: ok got it. now am feeling even stupider. thanks [16:53:39] np [16:58:25] Vulpix: would "touch -m LocalSettings.php" on a db update suffice to force a cache update? [16:58:45] Vulpix: sorry, "on" should read "after" [17:05:32] yes [17:07:22] great. thank you very much indeed. although I still can't figure out why different content should be served if logged-in -vs- logged-out [17:08:15] logged in users can customise stuff, logged out users can't [17:09:09] yes... but serving diff content?? I don't understand that [17:09:46] After logging in, I could see the db update version. Logged out, I could only see the pre-db update version [17:11:24] which implies there are diff caches for diff user groups [17:50:44] Does anyone know why InterWiki links sometimes add additional underscore to the end of the link. For example i have an entry for freebsd man pages with prefix "man" and url https://www.freebsd.org/cgi/man.cgi?query=$1 when linked from wiki page [[man:man]] the generated link is https://www.freebsd.org/cgi/man.cgi?query=man_ [17:52:48] i noticed that the problem occurs with every iw_url with a dot in the url (excluding dots in the domain). There is 3 entries in my interwiki table with that kind of url: man.cgi, wiki.pl and intex.php. all of them works incorrectly and all other interwiki links works as should. [18:01:55] grayanone: actually, logged-in users aren't served cached content, or at least not from the same layer. There's also the parser cache, but that one is generally purged correctly with edits while the file cache (which is only for anons) is not [18:19:34] never mind. there was trailing whitespaces in the url. [18:57:42] Vulpix: is there some way to force the caches to flush and update the db b4 dumping? that might solve the problem. [19:17:56] apa: well moreover this channel is about mediawiki and the freebsd folks do not use mediawiki... at least not the links you have provided [20:12:41] I feel this bug needs escalation: https://phabricator.wikimedia.org/T220923 [20:16:47] jorm: does it really work like that, can you log an user out with a get request? [20:16:57] yes. [20:17:04] i'm opening a DIFFERENT bug for that. [20:17:20] :P [20:18:47] https://phabricator.wikimedia.org/T220924 [20:19:32] good catch [20:21:22] I though this was already a well known popular prank [20:23:50] it just got closed as a dupe so i guess so [20:28:45] URL Shortener could make it more viable for those of us that look at the URL before clicking it :P [20:42:07] hello [20:47:51] URL shorteners suck [20:48:22] jorm: thanks for reporting/testing stuff [22:50:16] Hello! I installed the mailgun extension for mediawiki, and confirmed it is present in Special:Version, but when I try to use it, I get an error Class 'Http\Adapter\Guzzle6\Client' not found [22:50:47] !composer [22:50:47] Composer is a dependency manager for PHP. MediaWiki uses it to include certain external libraries. See https://www.mediawiki.org/wiki/Composer for more details. For information on how to install MediaWiki dependencies with composer see https://www.mediawiki.org/wiki/Download_from_Git#Fetch_external_libraries [22:50:54] sorry, hit enter too early. It looks like I need to add something to autoload.php, but I'm not sure what (haven't used php in a long time) [22:50:57] Oh, thank you [22:51:15] Third party libraries are mostly brought in via composer [22:51:46] makes sense, thanks