[00:07:26] they're both also writable [00:38:37] should i try switching to a different folder? i really want to get this fixed [00:44:32] I have a couple of questions regarding namespace creation. First, what's the ID range allowed for custom namespaces? I'm guessing it's 0-255 minus whatever's automatically there? Main, main talk, special... idk what exactly we have, or where to look. Also, are there character restrictions on namespaces, like apostrophes? Or am I fine just escaping them in LocalSettings,php ? [00:46:03] FAQ says 'convention' is to go 100-199, is there a technical reason for this? [00:50:09] You can go upto 2147483647 in theory [00:50:41] ah okay [00:51:07] does ' break things, and if not, do I need to escape it somehow? [00:51:55] Depends [00:52:05] on? [00:52:06] If you use ' for the string, you will [00:52:10] If you use " you don't [00:52:30] will what? [00:52:36] Have to escape it [00:52:45] ah okay, got it [00:52:51] just \ to escape? or / ? [00:53:06] \ [00:53:23] It's easier to just use "" [00:57:10] it will depend on the kind of quotes he uses in the config file [00:57:34] if you use ' quotes, you can't include an embedded ' [00:57:42] but using " quotes, there's no need to [00:57:54] 'Can\'t' [00:58:39] that won't work [00:58:57] php > var_dump ('Can\'t'); [00:58:58] string(5) "Can't" [00:59:00] PHP disagrees [00:59:36] PHP wins, then [01:00:06] But yes, it's easier to just do "Can't" [01:08:15] bump [01:10:12] Okay, I'm using " " [01:10:22] thank you [01:22:05] switched to a different folder, still get the same error. [01:22:35] Exactly the same error? [01:24:53] you see i get the same error every time but it has different numbers at the end everytime i try to upload [01:24:55] let me get an example [01:25:59] Could not store upload in the stash (UploadStashFileException): "Could not create directory "mwstore://local-backend/local-temp/f/f3".". [01:26:01] Could not store upload in the stash (UploadStashFileException): "Could not create directory "mwstore://local-backend/local-temp/c/cc".". [01:26:10] is the folder writable? [01:26:12] everywhere i look on google i do not see anyone getting the "local-temp" part [01:26:13] yes [01:26:42] what are the folder permissions? [01:26:53] i have tried 775, 777, 755, i get the same error [01:27:13] on which folder? [01:27:18] images [01:28:06] hmm [01:28:17] I guess there's no selinux or apparmor involved [01:28:37] did you check if subfolders already exist there? [01:28:57] when i installed mediawiki there was not a temp folder already there [01:29:03] permissions on images itself would not help if those in the subfolder were wrong [01:29:15] unless there is a different images folder i need to look at [01:29:19] i am using the one in root [01:30:38] by default it would use the one at the mediawiki folder, yes [01:31:00] those mwstore:// paths make it harder to debug this kind of issues [01:31:11] are those hidden? [01:31:20] ? [01:31:26] the mwstore paths [01:31:38] are those actual folders or just apart of the error [01:31:43] they are anonymizing the real $wgUploadPath [01:32:21] well, $wgUploadDirectory [01:32:33] $wgUploadPath would be the one seen from the web [01:34:37] so even if the $wgUploadPath is directly set, its not actually setting it? [01:34:53] the important one for that error is $wgUploadDirectory [01:35:00] which is the filesystem folder [01:35:19] $wgUploadPath may be https://uploads.mywiki.org/foo [01:35:34] it's a relative url [01:36:09] i mean i am honestly confused on what to do because i almost just gave up and thought of just going with an image-less wiki but i soon bounced off that because it wouldn't look as nice [01:36:16] $wgUploadDirectory will be something like /media/storage/jojogger/wiki/images/ [01:36:40] is php in any kind of safe mode? [01:36:54] i don't think so, is there anyway good way to tell? [01:36:56] you can always start without images [01:37:02] then fix that later [01:37:07] have a look at the phpinfo [01:38:22] would i have to create a phpinfo file? [01:38:39] just create a .php file with content alright [01:41:51] i made it [01:41:58] its showing a list and my php version [01:42:00] what should i look for to tell? [01:42:06] look for safe [01:42:53] what php version are you using? [01:43:13] 7.1.33 [01:43:35] ok, so it could have that [01:43:39] er.. no [01:43:43] it was removed in 5.4 [01:44:00] i am also running mediawiki 1.31 if that counts also [01:45:18] uploads are tricky [01:45:27] because they interact much more than normal page editing [01:51:03] this code used to be more straightforward before adding the filebackends [01:51:32] I would probably start hacking around includes/libs/filebackend/FileBackend.php to figure out exactly where it is failing [01:55:14] what do you mean by "hacking" around, do you mean checking certain lines? [01:55:44] yes [02:03:37] does filebackend report logs or does it just have stuff related to uploading? [02:59:42] I think it has wfDebug calls, but probably not many [02:59:45] !debug jogjogger [02:59:45] For information on debugging (including viewing errors), see https://mediawiki.org/wiki/Manual:How_to_debug . A list of related configuration variables is at https://mediawiki.org/wiki/Manual:Configuration_settings#Debug.2Flogging Also see https://mediawiki.org/wiki/Manual:Errors_and_symptoms [13:44:27] hi does anyone here know how to setup wgTranslateTranslationServices with Translate? [13:56:05] Set them to a value, presumably [15:07:36] I followed the docs and it just seems to not do anything [15:07:51] I did [15:08:01] https://www.irccloud.com/pastebin/bnQAlILx/ [16:22:46] hello, i was looking on the Manual:$wgAllowExternalImages page, and it says i could use a table to make a caption with it, however it isn't working, was this removed or am i doing something wrong? [16:23:21] probably the latter, do you mind sharing the wiki markup you're trying? (put it in a pastebin if it's longer than a line or two) [16:27:18] markup? [16:27:25] on the page its just this [16:27:27] {| [16:27:39] (ofc i am putting the link to the image in it) [16:29:13] jogjogger: yes, what is the actual markup you're using. I know it still works so it's the "you're doing something wrong" case [16:29:23] in order to determine *what* you're doing wrong, I need to see what you're doing :) [16:31:00] (in general though it'd be better if you upload the image locally and embed it that way -- less chance for issues and you have more control over sizing etc.) [16:33:11] well i sorta can't upload images because of i got the most confusing error that is almost impossible to fix (trust me, i asked everywhere) [16:33:15] i am just pasting that [16:33:22] is there anything else i am supposed to do? [16:33:39] you didn't provide the full markup so I can't begin to know where that's going wrong [16:33:49] I can probably also help figure out your local upload issues if you want to try that tack instead [16:35:06] i still dont understand what you mean by "full markup", i am just pasting that onto my thing like this https://i.imgur.com/FhTwccb.png [16:35:47] that is what I meant [16:35:56] no <> [16:36:00] get rid of those [16:36:04] just put the bare url in [16:36:10] also, i tried getting help from 2+ people and they couldn't figure out the problem, every time i try to upload an image i get an mwstore://local-backend/local-temp/ error [16:36:41] the first thing that pops into my mind when I see that is that your tmp directory (as configured in PHP) is not writable by the webserver or is full [16:36:41] tried that, doesn't seem to work also. [16:36:51] it is, i have also tried 777. [16:37:16] what happens when you do that? does it link the image, does it not display the caption, ...? [16:37:46] well i have seen mediawikis captions before so i am confused whether its supposed to look like that or just an image with text [16:38:22] as you specified that markup, it'd just be an image with some bare text underneath it [16:38:36] since the table has no styling applied to it [16:39:23] i am trying to make best with external images the best i can, considering i am probably not going to fix the upload error anytime soon (tried setting it to a different temp directory, changed permissions, nothing.) [16:39:33] is there anything i can do to have that style or no? [16:39:37] the captions you're used to seeing are done via local uploaded images, and there's no direct way to do that with an external image [16:39:41] oh [16:40:05] the table thing is a workaround, but you can apply a class to the table and add css rules to that class to mimic the appearance of the built-in captions [16:41:07] i know nothing about css, so i guess can rule that out. i can't upload anything to my wiki because i get that error, but i can upload images anywhere i want via ftp, so is it possible to link images from that or no? [16:42:06] it'd still be an "external image" [16:42:39] jogjogger: would you be ok with me peeking at your server to see if I can figure out the upload thing? I'm kinda curious [16:43:01] i mean, that would be great, but can i trust you? [16:43:46] that's up to you I suppose. My mediawiki.org userpage is https://www.mediawiki.org/wiki/User:Skizzerz and I'm trusted as a bureaucrat on that wiki and a chanop here [16:43:53] (in case you need proof) [16:44:07] thats good, so would i have to just dm you the info so you can log on? [16:44:11] I also do paid mediawiki consulting work for various clients [16:45:04] jogjogger: I'd prefer if you set up an SSH key for me so that you don't need to share passwords, but if you want I could do that instead (I'd just suggest changing the password after I'm done) [16:45:32] i will just change the password afterwards, gimme a moment [16:45:41] I don't plan on doing anything with it, but as a sysadmin you should always take appropriate precautions :) [16:47:19] okay, sending info now [16:48:23] apparently i gotta register to send a message, so give me a sec [16:48:26] oops [16:48:30] I can disable that real quick [16:49:00] jogjogger: try again, I just disabled that [16:49:35] (I normally block private messages from unregistered users because freenode tends to get hit by spambots every so often) [17:07:30] In a personal wiki where the elements and properties are in the 860 and 862 name spaces respectively. By importing Wikipedia modules that make calls to Wikidata that is under the main namespace. How do I fix it to call the corresponding namespace in my wiki? It seems not to detect the existence of the item as it is in another namespace [17:08:28] Presumably unless you tell it about those namespaces, it won't know [17:09:07] For example es.wikipedia.org/wiki/Módulo:Ficha_de_persona [17:09:37] hum, I don't know about modules, wouldn't you know about some example? [17:28:12] add es.wikipedia.org/wiki/Módulo:Wikibase [18:25:52] quick question i forgot to add, how do i turn off images from wikimedia commons showing up? [18:26:01] must've enabled it from install by accident [18:35:21] jogjogger: set $wgUseInstantCommons to false in LocalSettings if I remember correctly [18:35:57] thank you [18:55:02] I've been having trouble trying to get the area and population density boxes working on a wiki. Does anyone know how to do that? [22:01:48] bpirkle: I was not asking for review in https://phabricator.wikimedia.org/T193565 - this is an issue I'd like CPT to help resolve in rdbms itself. Aaron could consult if needed. [23:38:40] !log tools.indic-wsstats Migrate indic-wsstats to new toolforge URL (T253170) [23:38:40] Wrong channel, try again. [23:38:40] Jayprakash12345: Not expecting to hear !log here [23:38:40] T253170: Migrate indic-wsstats to new toolforge URL - https://phabricator.wikimedia.org/T253170