[00:00:46] If $wgInvalidateCacheOnLocalSettingsChange is true (which is default true), changing it will invalidate the cache [00:03:55] Ah, excelent. Thank you. [00:17:22] Can you point me in the right direction? I'm setting up a database backup for my MW installation. I have $wgMainCacheType = CACHE_ACCEL; Is there some consideration I have to make regarding cache when setting the wiki to read-only mode to do the DB dump? [00:29:13] no [00:29:29] you can skip the cache tables if you want when making the backup [00:29:42] but I think those are only relevant with CACHE_DB, not with CACHE_ACCEL [01:03:23] Thanks. Is there a place in the manual where this is covered? Or would it be in the MySQL manual? [01:04:49] no [01:05:05] on mediawiki's [01:05:10] !wg MainCacheType [01:05:10] https://www.mediawiki.org/wiki/Manual:%24wgMainCacheType [02:27:00] hi, is there action=raw not anymore? [02:27:05] in api [02:35:40] baruna: that's for index.php [02:35:43] not api.php, afaik [02:55:48] Krinkle: hey, you around? wanted to ask about my pending patch in core for adding balinese language in balinese script [02:55:59] at https://gerrit.wikimedia.org/r/c/mediawiki/core/+/618617 [02:56:23] just wondering if it looks ok and if/when we can get it merged [03:57:17] or anyone else who is in a position to do it! [06:08:13] Hi ningu. [06:08:21] Sam Wilson or Sam Reed can do it. [10:05:04] OA [13:19:53] hi, I just downloaded the ConfirmAccount extension, I extracted it and placed the ConfirmAccount dir in my mediawiki/extensions dir and appended the relevant lines to my LocalSettings.php [13:20:58] but upon trying to run the update.php script from my /mediawiki/maintenance dir; it outputs: [13:21:06] PHP Warning: require_once(/var/lib/mediawiki/mediawiki-1.34.2/ex [13:21:06] /ConfirmAccount [13:21:06] /ConfirmAccount.php): failed to open stream: No such file or dire [13:21:06] lib/mediawiki/mediawiki-1.34.2/LocalSettings.php on line 149 [13:21:07] PHP Fatal error: require_once(): Failed opening required '/var/l [13:21:08] ediawiki-1.34.2/extnsions [13:21:11] /ConfirmAccount [13:21:13] /ConfirmAccount.php' (include_path='/var/lib/mediawiki/mediawiki- [13:21:16] pear/console_getopt:/var/lib/mediawiki/mediawiki-1.34.2/vendor/pe [13:21:18] ib/mediawiki/mediawiki-1.34.2/vendor/pear/mail_mime:/var/lib/medi [13:21:21] i-1.34.2/vendor/pear/net_smtp:/var/lib/mediawiki/mediawiki-1.34.2 [13:21:23] et_socket:/var/lib/mediawiki/mediawiki-1.34.2/vendor/pear/pear-co [13:21:26] :/var/lib/mediawiki/mediawiki-1.34.2/vendor/pear/pear_exception:. [13:21:41] p') in /var/lib/mediawiki/mediawiki-1.34.2/LocalSettings.php on l [13:21:56] burning: Are you on Microsoft Windows? [13:22:02] no, linux [13:22:10] Ah, because I was thinking of https://phabricator.wikimedia.org/T257102 [13:22:26] and apologies for the spam, in hindsight I probably didn't need to post all of it [13:27:38] burning: how are you loading the extension? are you using `require_once` or `wfLoadExtension()` [13:29:33] ah, sorry, I'm an idiot. When I typed in the parts to append to the LocalSettings.php, my web browser was taking up half the screen so the text wrapped and a one liner appeared to be broken up as 4 separate lines [13:29:57] fixing that, the update script works [13:30:15] I feel even worse for pasting in that code now, haha :P [13:57:10] in defining a path for the directory where captcha images will be stored for fancycaptcha, where would the directory usually go? [13:57:24] just in /mediawiki ? [13:57:35] or anywhere more specific? [14:30:19] So I'm trying to setup FancyCaptcha, and for it to work I need to install the python imaging library "pil" [14:30:33] I tried running pip install pil like the guide says [14:30:42] but it returns the error Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple [14:30:45] Collecting pil Could not find a version that satisfies the requirement pil (from versions: ) [14:30:48] No matching distribution found for pil [14:35:05] anyone else who gets the error is usually advised to install pillow which is a fork of pil but would any modifications need to be made in order for me to get mediawiki/FancyCaptcha to work with it instead? [14:37:01] I think it just works [14:37:06] based on what I've got installed on my dev wiki [14:37:53] ah, thanks, hopefully it'll work [14:47:12] Any idea where the path to captcha.py would be? [14:50:36] It's in the root of the ConfirmEdit folder [15:03:12] thanks [15:14:15] just tried running the command to generate the captcha images [15:14:33] says this script requires the python imaging library [15:14:45] then links to pil [15:15:12] @Reedy how'd you get it to work with pillow instead of pil? [15:15:31] I didn't change anything [15:15:37] I just installed it with the OS packaging [15:15:46] It's possible you installed it into the wrong version of python [15:19:54] hello [15:20:10] can anyone help me reset pass to my admin account? [15:21:16] anyone around? [15:22:21] beepbot: you can use a maintenance script, see https://www.mediawiki.org/wiki/Manual:Resetting_passwords#Use_the_changePassword.php_maintenance_script [15:22:22] I don't see the table text in the database [15:23:19] I meant the table named "text" in the database "aswiki_p". [15:23:35] Majavah i dont get the email to reset :/ [15:24:26] beepbot: is it on your own wiki or someone else's wiki? [15:24:43] nokib: text tables are not available on the wiki replicas, you need to use the api for that [15:25:15] is it for security reasons? [15:25:35] Majavah my wiki [15:25:45] Actually I don't see any deprecation warning [15:26:16] @Reedy I tried installing it with python 2 rather than 3 because from what I saw, it didn't look like pil had a version made for python 3 yet [15:26:24] nokib: not 100% sure, but #wikimedia-cloud is a better place for your question, maybe try asking there [15:26:35] @Reedy was yours for python 3? [15:27:00] Majavah thanks a lot [15:27:01] beepbot: if it's your own wiki you can use the changePassword.php maintenance script, see the full page I linked you [15:27:08] nokib: you're welcome [15:29:48] Majavah i dont understand it :( my wiki was installed using an installer and i dont have it locally [15:30:14] beepbot: do you have shell access to your wiki? [15:30:36] burning: ii python-pil:amd64 6.2.1-3 amd64 Python Imaging Library (Pillow fork) [15:34:50] Majavah i dont. [15:39:15] beepbot: that makes things more difficult, if you have access to the database you can try manual database fiddling if you're comfortable with that by following the instructions on that page [15:43:04] @Reedy I tried doing pip install pillow to get the python 3 version and tried creating the captchas again but it still tells me the script requires pil [15:43:20] surely it'd be pip3 install? [15:43:25] ah [15:43:32] well that might explain the problem [15:43:55] nope [15:43:59] guess it doesn't [15:44:15] pip3 isn't a recognized command [15:44:31] I'm running linux, so it should be pip iirc [15:44:52] Depends on the OS and their packaging stuff [15:44:57] python3-pip is the package on ubuntu [15:45:10] It's a raspberry pi [15:45:26] I'll see if I can install python3-pip [15:45:32] I'd try and just install python-pil [15:45:35] I would've assumed it was included in python 3 [15:45:47] ok then, I'll try that [15:47:08] Majavah i tried database way to update to new password but i couldn't [15:47:33] @Reedy thanks, that seemed to have got it working :) [15:47:35] even when i try to download the .bin file i get weird hash type which i can't resolve. [15:56:21] how to i resolve the bin file for password in database? [15:57:22] What bin file? the file mysql stores it on disk with? [15:59:31] Reedy password is saved in some .bin file for wiki's users.. [15:59:44] how can i get the pass from it? [15:59:54] I don't think it is [16:00:42] it has some sort of hash tho [16:00:49] in the bin file [16:05:36] anyway? [16:42:01] Made the FancyCaptcha images and loaded them into /mediawiki/FancyCaptchaimages [16:42:25] I edited the LocalSettings.php so it'd look for them in there when doing stuff with the ConfirmEdit extension [16:42:33] as according to the guide [16:42:55] but now that I try and load my mediawiki website, I just get a blank page [16:43:39] I'm just using /mediawiki which would normally default to the index.php which would take me to the main page iirc (I could be remembering that wrong) [16:44:00] I haven't actually been on the main page in like 2 weeks [16:44:07] so memory's a bit foggy [16:44:18] any idea what's going on? [16:49:11] anyone help with my password issue pls? [16:52:10] Reedy u around? [17:00:26] anyone? [17:00:43] what is the question? [17:01:33] i forgot my pass and i cant get it reset [17:01:46] my acc is the admin on wiki [17:03:48] andre__ [17:05:52] the pass is in bin file [17:06:09] and when i open it give me this [17:06:10] beepbot, how did you look at the database? [17:06:10] :pbkdf2:sha512:30000:64:NgRuXGIIILIh3bbm3Hxb1A==:51J2sy52YlCqw501WC/nHRu0cPYxC4NpkiuhZVyw4LxNhH94r01woqEO+Glht0GPEPTHG7c1fak+86H3J0A0Kw== [17:06:27] phpadmin [17:06:41] if you have tried most of the stuff on the page, try also the rest? :P [17:06:58] How did the changePassword.php script go, for example? [17:07:13] or direct database modification? [17:08:32] i cant do changepassword.php cause i dont have file locally :/ [17:08:43] i installed using a installer [17:08:50] can you ssh onto the instance? [17:08:58] cant [17:09:04] can you directly modify the database? [17:10:32] cant directly do it cause its saved in bin file [17:10:35] like the pass [17:11:30] I guess I have no idea what a "bin file" is. [17:11:42] https://prnt.sc/tzp8x7 [17:12:28] and when i open this bin file [17:12:32] i get this [17:12:33] :pbkdf2:sha512:30000:64:NgRuXGIIILIh3bbm3Hxb1A==:51J2sy52YlCqw501WC/nHRu0cPYxC4NpkiuhZVyw4LxNhH94r01woqEO+Glht0GPEPTHG7c1fak+86H3J0A0Kw== [17:14:08] I've never used phpmyadmin so I don't know what a bin file is or how not to get a binfile, sorry. [17:14:34] i cant do anything :( [17:15:13] is there phpmyadmin documentation would to do with that bin file thingy? [17:15:24] sounds like a question for a phpmyadmin forum to me. [17:17:12] idk tbh [17:22:06] beepbot: the password is hashed. It would be too complex to edit it manually [17:22:18] Vulpix exactly [17:22:27] but decoding it might help me [17:22:35] just to remember the pass [17:22:40] Can't you open a shell to the server? [17:22:51] im clueless on that [17:23:24] It can't be decoded. Passwords are encrypted and can't be decrypted. To check if the password is correct, when you enter it, it's encrypted, and compated with the one on the database [17:24:03] i wish i remembered the pass [17:24:09] but i dont :/ [17:24:25] you said some hours ago that you ran the update script [17:24:45] it didnt work tho [17:24:48] Ah, no, it wasn't you [17:25:03] i did run sql query [17:26:42] Well, you can create a new install and then copy & paste the password and hash of the newly created wiki into the old database [17:27:39] Rename LocalSettings.php, run the installer on a different database (or just set a different table prefix), set the admin password, and it will create all the tables again under a different prefix. Then copy the password and hash from the new wiki to the old [17:28:44] Then restore the LocalSettings.php and you're done [17:29:38] A simpler solution would be, if your host allows you to set a cron job, to run changePassword.php from a crontab [17:36:40] Vulpix but i can like write the new hashed pass it only takes bin files [17:37:09] You can. Just download the bin file from the new table and upload it to the old one [17:37:30] ill try this [17:37:35] ill host a new wiki [18:24:19] Hi. If I want to vote on https://www.mediawiki.org/wiki/Project:Proposal_for_changing_logo_of_MediaWiki,_2020 do I simply edit the section with the proposal and add a line with my support? {{{support}}} ? [18:28:47] Forza: almost. It's {{support}} (or {{oppose}}) instead of {{{support}}}. You also need to sign your comments there with ~~~~ at the end of the line [18:29:57] Forza: also, add new comments to bottom of the section, not to top of it [18:29:57] Majavah: Thanks. Got it. =) [18:30:11] you're welcome [18:40:05] Savannah: thanks (from earlier) [20:21:05] how i give users perms to add images? or overall some user complete all permissions? [20:25:40] BeepBot: https://www.mediawiki.org/wiki/Manual:Configuring_file_uploads [20:29:37] oh i gotta make groups first [20:30:03] not necessarily [20:30:07] you can enable for all users [20:30:33] but it says "Per default, all registered users can upload files" [20:30:42] but i actually wanna just allow one user to have all permissions [20:30:53] oh ok [20:30:58] nope in default they are not able to upload. [20:31:16] did you do: $wgEnableUploads = true; [20:49:56] is it possible to have templates that render differently depending on user preferences? how does that work in terms of the parser cache etc? [21:03:09] ok, https://www.mediawiki.org/wiki/Manual:Parser#ParserCache [21:03:16] "it is important to avoid caching data intended for one user that won't make sense for another user" [21:21:12] ningu: it is possible, but only for very limited cases. e.g. templates can be made to render in the user's interface language. the parser cache will be split accordingly. [21:22:01] duesen: yeah, so I'm trying to figure out how to do this [21:22:32] let me explain details a little more [21:22:58] I'm working on ProofreadPage currently, and pages in the Page: namespace will have the page's content language set to whatever the language of the page is in the source [21:23:20] so there will be pages in ban-bali, which is Balinese in Balinese script [21:24:02] but I *also* want to add a template for rendering the page content, and one thing that template will do is transliterate the Balinese script into Latin and display it below the original. so for example, ᬯᬬᬦ᭄ will become "wayan" [21:24:28] so far so good. this is just the page content language and doesn't depend on the user [21:24:50] but users will be able to select *which variant* of balinese they prefer, and there will be *more than one* balinese latin variant [21:24:58] this will *not* be the user's content language [21:25:10] user's interface language* sorry [21:25:23] specifically, it will be stored in the user option variant-ban [21:25:51] ugh, variants are yet another entirely different beast [21:26:17] yeah, so I'm thinking maybe ProofreadPage needs to somehow fragment the parser cache based on the variant of the page language? [21:26:25] thoguh i suspect that your variants are different again from display variants on serbian and chinese... [21:26:47] they are not too different in concept [21:27:02] but the main difference is, the page content will be ban-bali but there will be an added transliteration in ban-latn [21:27:10] yes, sounds like it. and i know this is possible, but i only half understood the mechanism when i klooked into it a couple of years ago [21:28:02] ningu: iirc, the key is the ParserOptionsRegister hook. but i don't remember the details. [21:28:08] yes [21:28:11] I'm going to give it a try :) [21:28:57] good luck :) [21:31:40] btw they totally redid hooks in 1.35 and it's annoying :P [21:36:31] no, it's great :) [21:36:41] anyway, time to log off for the day. [22:19:04] So, In trying to run the update.php script, it throws the following error saying there's something wrong with the variable I set for my password in my LocalSettings.php file: [22:19:07] PHP Parse error: syntax error, unexpected '$wgCaptchaSecret' (T_VARIABLE) in /var/lib/mediawiki/mediawiki-1.34.2/LocalSettings.php on line 167 [22:20:13] but the line itself is just: $wgCaptchaSecret = "mypassword" [22:20:29] I don't see what's wrong with it [22:26:56] You've probably missed a ; somewhere [22:33:02] thanks, that was it [22:54:01] Just clicke on the link at the bottom of my main page which said "about " and it says the page "MyWiki: About" doesn't exist yet, if I create this page, will all visitors see it as literally saying "MyWiki: about"? Or would it actually insert the name of the wiki? [22:56:44] Jaypraka_: You could be interested in SASL authentication instead of NickServ. Takes like 2 minutes to configure and no more joining channels before cloaking [23:03:49] It seems I have not configured properly the Extension:MobileFrontend ... I started to wonder why no-one coming from sem was clicking on the RecentChanges, till I recently noticed that there is not recent changes in default MobileFrontend and Skin:MinervaNeue. Right now it is late, but I'll try to get to it tomorrow. You can hit me up at twojukeboksi anytime, it's my irccloud account, if you have any help to offer. [23:13:02] On some wiki installations, I think I've seen discussion pages where users can discuss a specific page, is that included on mediawiki by default? Or is that an extension?