[01:45:08] * Cameron11598 hmmm [01:55:01] Hi, we're a bit confused, we were setting up an extra wiki and noticed that there was a conflict about /tmp/l10n_cache-en.cdb, both wikis run as different users and can therefore not share the file, so when one of them has created it, the other wiki throws an exception. Is this intended behaviour? Cause that's rather annoying for shared hosting with PHP running as the respective user for each account. An [01:55:07] d what's the best solution for this? Disabling ... [01:55:10] ... l10n? Is there something that can be configured? This also seems a weird default, is it perhaps a bit of a bug? [02:07:38] Make it not use the tmp dir? ;) [02:07:53] $wgLocalisationCacheConf['storeDirectory'] = "$IP/cache/l10n"; [02:08:00] maybe with some variance for teh wiki [02:08:06] $wgLocalisationCacheConf['storeDirectory'] = "$IP/cache/l10n-$wgSitename"; [02:46:10] Reedy: well, we can do that [02:46:28] but we're a student organisation that supplies hosting to nearly 100 student organisations [02:46:44] We can hardly change it for them (as that would be intruding) [02:46:58] so it's bound to go wrong if someone doesn't read our notes [02:47:28] I can hardly believe this hasn't caused serious issues on other shared hosting provider's infrastructure [02:50:13] It hasn't [02:50:21] Because you just make it not use the tmp dir [02:50:28] easily fixed [02:50:49] If people don't follow the instructions, that's hardly their fault [02:50:54] Reedy: you assume that the student organisations we host actually understand what they're doing, they don't :P [02:51:06] The other option, is fixing your php config to use some sort of specific dir per user [02:51:16] Ah, that's more like it [02:51:39] So you mean that mediawiki doesn't default to /tmp but to some PHP global setting? [02:52:20] $cacheDir = $wgCacheDirectory ?: wfTempDir() [02:52:48] if ( $wgTmpDirectory !== false ) { [02:52:49] return $wgTmpDirectory; [02:52:49] } [02:52:50] return TempFSFile::getUsableTempDirectory(); [02:52:55] $tmpDir = array_map( 'getenv', [ 'TMPDIR', 'TMP', 'TEMP' ] ); [02:52:55] $tmpDir[] = sys_get_temp_dir(); [02:52:55] $tmpDir[] = ini_get( 'upload_tmp_dir' ); [02:53:01] all of the tmp dirs [02:56:54] Reedy: so it prefers those env variables (in that order), otherwise the sys_get_temp_dir (which creates a temp folder on the fly, I think) and otherwise the upload_tmp_dir which is a global php.ini setting, or am I getting something wrong? [02:57:13] foreach ( $tmpDir as $tmp ) { [02:57:13] if ( $tmp != '' && is_dir( $tmp ) && is_writable( $tmp ) ) { [02:57:13] return $tmp; [02:57:14] } [02:57:14] } [02:57:14] Cause that sounds quite fixable, just want to make sure I start going at the right thing :P [02:57:32] Yeah, I presumed that [02:57:43] good, probably gets /tmp from the env then [02:57:51] That'd seem likely [02:58:15] Do you happen to know why exactly env is prefered over sys_get_temp_dir? [02:58:34] it seems an odd choice to me, but maybe I'm missing something [02:59:21] Not really [02:59:21] https://github.com/wikimedia/mediawiki/blame/master/includes/libs/filebackend/fsfile/TempFSFile.php [02:59:27] https://github.com/wikimedia/mediawiki/commit/f7e3ac3f95ce2b5a9f73326e854d1c301b513078 [02:59:36] Start going down the rabbit hole to find out when the code was actually added [03:04:50] Reedy: trying to find out who added it to GlobalFunctions, that commit is just a move, it'll indeed be quite the rabbit hole [03:05:06] but do you agree that the choice to prefer env over sys_get_temp_dir is a bit odd? [03:07:28] Reedy: got it, https://github.com/wikimedia/mediawiki/commit/b7e65e555adc2b77dad55eb2b28338bf2e7619e1 [03:07:55] Originally only the env was checked, not the PHP functions [03:08:14] I sorta think those should be switched around and sys_get_temp_dir should go first [03:08:27] not that that'll fix our issue, we'll just set env temps (or unset them) [03:08:52] but in the name of good code etc. [03:11:47] The getenv line dates back from before may 2012 (when it was partially rewritten) [03:19:19] plot thickens, for some absurd reason, sys_get_temp_dir is the one returning /tmp [03:19:29] clearly there's something wrong here :S [03:21:46] Reedy: looks like indeed we are misconfigured somehow, it's extra weird cause on my personal server with all defaults it's fine [03:22:00] I'll go dive some more, thank you very much for the well-needed direction :) [07:59:58] JOIN [11:54:20] hey, how to raise the amount of edits necessary to hide users? [11:54:26] i'm getting an error Unable to suppress this account; it has more than 1,000 edits. [11:54:40] can i raise it to 10000 or more? [11:57:41] anyone even there [11:58:34] Yes, but you should wait. There is 320 nicks, but it can take time to get an answer [12:01:31] oh, so i'm not the only one speaking right now [12:01:49] or typing rather [12:16:50] Reedy: could you help me with something? A task related to logging issues with an extension [12:22:00] guest22: on a wikimedia wiki? or on your own? [12:22:10] my own [12:22:44] there's probably a configuration setting for it. let me find it [12:23:11] all right, i'd appreciate it [12:23:17] i was unable to find it myself [12:23:26] there's very little info on hiding users [12:23:40] just the fact that the permission exist and that's about it [12:25:00] !wg HideUserContribLimit | guest22 [12:25:00] guest22: https://www.mediawiki.org/wiki/Manual:%24wgHideUserContribLimit [12:25:28] oh, much appreciated [12:25:33] i suppose it's poorly linked? [12:25:59] probably. i looked at the source code near where that error message in generated to find it :) [12:37:14] Is it difficult to become a translation administrator on mediawiki wiki? [12:37:36] why would you want to become a translation admin on mediawiki.org ? [12:37:43] and what does "translation admin" mean? [12:37:57] wait, are you talking about mediawiki.org actually? [12:38:07] or just some MediaWiki installation you're running yourself? [12:38:10] yeah [12:38:19] the one who marks translations basically [12:38:26] Maybe explain which provlem you want to solve... :) [12:38:43] what does "mark translations" mean? [12:38:53] and maybe #mediawiki-i18n is a better place [12:39:00] MatmaRex: I updated the user rights manual to reflect the setting [12:39:25] because I seriously could not find it before and thanks for the tip on checking source [12:39:57] thanks! [12:48:53] I get this error while trying to do a search (via Cirrus): Status::getMessage called for a good result, this is incorrect.. whats wrong? [12:54:19] is userjs enabled on mediawiki.org? [12:57:37] yes [12:58:06] guest22: ah. sorry.. IDK [12:59:08] yes [15:42:29] I recently upgraded a 1.26.4 MW install to 1.28.0, but it's not automatically updating Recent Changes. If I run rebuildrecentchanges.php, the recent changes update. If I edit a page, the edit is recorded in its history. I'm only experiencing this on one of four upgraded wikis on this particular server. Any idea where the issue may be? [15:49:09] Additionally (and not sure if it's related) but when I run back jobs I do get a good deal of "Syntax Warning: Failed to get object num from hint tables for page [x] [15:51:41] hint tables? [15:51:53] is that from an extension? [15:54:08] I'm guessing so (educated guess is it's PdfHandler, only thing that would make sense) [16:03:44] ScarredSun: PdfHandler doesn't have extra tables :/ [16:19:27] Platonides: In fairness, I had been using the forked http://wiki.4intra.net/PdfHandler for a while before migrating back to the original PdfHandler [16:20:22] (Sidebar I really need to finish a fork of PdfHandler that uses mudraw instead of gs) [16:23:16] why forking it? [16:24:07] modifying the original one to support another rastering engine would be preferable [16:24:19] Because I saw there were notes on porting the extension from ghostscript to mupdf and then it just died a couple years back [16:24:25] Though yeah I could always just add another [16:30:53] hi, anyone knowledgeable about Cirrus/Elastica here? [16:31:56] Anyone know how you can resolve [16:31:56] There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Go back to the previous page, reload that page and then try again. [16:31:57] ? [16:32:45] Cirrus/Elastica: whenever I run any search, I always get this error: An error has occurred while searching: Internal error: Status::getMessage called for a good result, this is incorrect [17:28:33] legoktm: ping? [17:55:47] Hi! I'm seeing a weird issue in my instance. There's an image file that has a new version, but that new version doesn't appear unless you're logged in. I've purged and everything, but the new version doesn't show up unless you're logged in. Any ideas? [17:56:26] ravioli: Are you using any sort of caching outside Mediawiki? [17:56:52] Alternately: delete the cache subfolder in your images folder [17:57:57] Unfortunately, I don't have any sort of backend access beyond the administrator user. [17:58:13] It doesn't appear to be a cached image thing, though. The actual revision doesn't appear anywhere unless you're logged in. [17:58:54] As in, the "file history" only shows one version (the old one) if you're not logged in. If you /are/ logged in, it shows two versions (the old and the new) [18:10:21] auvajs: hi, I'm not really on IRC this week, you should probably email or use my talk page if you need something [18:11:09] ScarredSun: is it okay if I send you a link to what I'm talking about? [18:22:41] Alternatively, is there another place I can go to for help? [21:39:43] bg [21:39:59] Sorry, bad place :D [21:54:54] Hello, I'm looking for help, sorry for the long incoming post : [21:55:35] I'm trying to install mediawiki on a server, but the page doesn't load once i click on "continue" on the first page of the gui installer (language selection) [21:56:06] The error logs tell me that it's trying to access /bin/bash, but I don't have a root access, or even a ssh access to the server, any advice ? [21:56:11] (Thank you :) ) [22:11:03] Hi, I'm looking for information about when and why /skins/common was removed. I've been searching mw.org and can see references to it being removed, but nothing in the 1.25 release notes or documentation as to why, or what should replace it [22:18:16] Giltho: I don't know exactly what's trying to run MediaWiki on the installer with /bin/bash, but it doesn't need root access nor SSH (although ssh might be useful for you to run maintenance scripts) [22:19:17] Answered my own question, in the 1.24 notes: https://www.mediawiki.org/wiki/MediaWiki_1.24#Directory_changes and https://phabricator.wikimedia.org/diffusion/MW/browse/REL1_24/RELEASE-NOTES-1.24 [22:19:21] access to the shell may be necessary if you want to upload files, use scribunto or similar [22:20:43] Vulpix: Here is the exact error, maybe I misinterpreted it : PHP Warning: is_executable(): open_basedir restriction in effect. File(/bin/bash) is not within the allowed path(s): (/var/www/[...]) in /[...]/public_html/includes/GlobalFunctions.php on line 2352, referer: [...]/mw-config/index.php [22:21:54] it's probably testing something... [22:22:10] yes, the exact line of GlobalFunctions.php is : [22:22:55] GlobalFunctions will be simply holding the wfShell function being used... [22:23:28] if ( is_executable('/bin/bash') ) { [22:25:11] well, that path won't be entered due to the basedir restriction [22:26:00] > includes/installer/Installer.php:943: $lines = wfShellExec( '/usr/bin/locale -a', $ret ); [22:27:44] So concretly, what should I do ? [22:30:52] change the open_basedir restriction to allow /bin/bash (I don't know if allowing the file directly will work, or if it's actually useful, otherwise the entire /bin), at least during install [22:32:26] I don't have the access to do this unfortunatly, I think I'll just ask for a full VM and configure it by myself thank you :) [22:33:41] yeah, some cheap hosts full of restrictions may give you lots of headaches [22:39:36] Thank you very much anyway ! [22:45:22] it should mostly work without shell access :P [22:47:12] installer should be more resilient, then, it's using wfShellExec just to set $wgShellLocale >_< [22:47:27] why can't it just pull environment [22:47:51] he was being shown a warning [22:47:58] that shouldn't stop it from working [22:48:18] ah, true