[02:32:35] hello, somebody who could help me setting up pywikibot? [03:46:24] Hi baruna, did you still need help with pywikibot? [03:52:56] Hazard-SJ: yes. do you know how to make user-config.py for own mediawiki? [03:59:09] baruna: Have you looked at https://www.mediawiki.org/wiki/Manual:Pywikibot/Use_on_third-party_wikis ? It's not something that I've done in the past few years, so I can't say off the top of my head what on that page is outdated. [04:02:10] Hazard-SJ: well yes I found it. First of all I have no pwb.py file in my pywikibot folder... and when I tried running python3 bot.py it didn't even start, I got many errors [04:03:54] https://termbin.com/3i4h [04:05:31] baruna: Judging from the that output, I'm guessing you installed pywikibot using pip? [04:05:41] Hazard-SJ: yes [04:15:16] baruna: In that case, I don't think you'll have pwb.py. It is a wrapper script intended for use in a so-called "directory" mode (i.e. if you cloned/downloaded the PWB source code you'd have gotten it, but when you install via pip you're using it as a normal Python package). [04:19:01] Hazard-SJ: well I don't really intend to run a bo.t I'd like to access mediawiki using a django app so using it as a package is what I have in my mind. I'm just trying to figure out how to be able to use it [04:46:26] baruna: Makes sense. Something like this should be able to get you started: https://pastebin.com/M2nd4ycv [04:49:08] So that would allow you to do things without a user-config.py (you'll need to set the environment variable PYWIKIBOT_NO_USER_CONFIG=1). Otherwise, you could set up a user-config.py file and have things imported from there. [04:52:56] In order to create a pywikibot.Site, you'll need a family (instance of pywikibot.family.Family), so you can basically create a class that describes your wiki(s), including the domain, protocol, language codes, or whatever you need. The example I provided above assumes a single site without wikis in separate languages. Once you have that, you can call pywikibot.Site, log in programatically, [04:52:58] access pages, etc. [04:56:06] Hazard-SJ: thank you! [04:56:20] Hazard-SJ: PYWIKIBOT_NO_USER_CONFIG=1 is to be set inside the python script? [04:56:45] cause when I just insert the line into the script it still want the user-config.py file [04:58:20] ah enviromental variable, but it doesn't work either [05:01:36] ah I'm sorry, it works [05:20:53] Good to hear :) [05:24:05] Hazard-SJ: at least I got to the point that the script tried to make a connection :D just need to figure out how to add user+pass to it [13:52:21] Greetings, I’ve installed mediawiki here and mobile version is not displaying on my phone. The host, Siteground.com, just installed an SSL cert which they said would solve the problem but it hasn’t [13:52:42] pfs-pssd-research.org [13:53:33] I'm not sure how/why an SSL cert would help [13:53:46] I think the bigger problem is you haven't got the MobileFrontend extension installed [13:53:48] !e MobileFrontend [13:53:48] https://www.mediawiki.org/wiki/Extension:MobileFrontend [13:54:31] Thanks! I did look in docs but didn’t come across this [14:55:17] Hello everyone! Quick question: I have a MediaWiki installation with pages named 2019 convention, 2020 yearly meeting, etc. When I put them in a category it gets sorted with "2" because 2019 and 2020 begin with 2. Is there a better way to sort this so I have have it show in the category as 2019 and 2020 subheadings? [17:14:31] Hello [17:15:18] Is it possible to to change the icons to font/unicode characters instead of images? [17:15:47] https://paste.tnonline.net/files/qWqG35DzosWD_Screenshot_20200813-191328_Opera.jpg [17:16:22] In night mode on the phone, they are barely visible. Had they been text they would have been inverted [17:28:04] Of nm it is a bug on my theme [17:30:26] It's a problem in the Timeless theme. Where can I file a bug/enhancement request for the Timeless theme? [17:32:59] https://m.mediawiki.org/wiki/Skin:Timeless found a link there [17:33:42] * skin, not theme ;) different concepts (see https://www.mediawiki.org/wiki/Extension:Theme); you can file bugs on Phabricator, https://phabricator.wikimedia.org ; remember to add the Timeless tag to reports [17:33:52] Isarra: ^^ [17:39:02] Thanks [17:39:11] Yes I meant skin [17:39:23] But I can't login to phabricator [17:40:11] It tries to send a confirmation email to the wrong email address. I'm using oath with mediawiki and the email there is correct [17:40:21] .help [17:40:25] :) [17:43:38] !help? [17:44:22] Hm not sure what to do. I revoked phabricator access and tried again but it still sees the old email [17:45:07] Reedy: sorry to bother you. Can you help out point me on the right direction? Thank you. [17:45:08] You might need a Phabricator admin to delete your account there [17:45:26] Majavah: yeah probably [17:45:27] Forza: what exactly are you seeing as the error? [17:45:32] https://www.mediawiki.org/wiki/Talk:Phabricator/Help would be the best place to ask for that if no phab admins are around [17:45:56] The error is that fabricator uses the wrong email address [17:46:38] Forza: that's the diagnosis :) What is actually happening when you click the "Log In or Register" button? [17:46:49] I. E it says "You must verify your email address to log in. You should have a new email message from Phabricator with verification instructions in your inbox (wrong@email)" [17:47:30] It does not display the same email as I have on Mediawiki.org [17:47:45] So I don't get a email in my inbox [17:48:05] Because its sending the email to other email address [17:48:15] Is it an email that you once had setup for your wiki account? Or a completely random email? [17:48:37] * bd808 needs to peek at the code but may have an idea of what is going on [17:48:46] bd808: phab can't sync emails from mediawiki.org, it handles these completely separate [17:49:18] It is my previous email [17:51:06] But phab was never able to send an email to that email address, even though MW could. This was a few weeks ago. So I decided to change the email I have registered at MW and try to sign up again. But phab has kept my old email even though I have never been able to login [17:53:24] Seems I need to get someone to delete the account and try again. [17:53:49] Forza: what is the phabricator account name that is failing? I can write up a phabricator task about this problem and get it in front of someone who might be able to clean it up [17:54:05] Forza1000 [17:54:34] Do you need the old email address too? [17:54:47] let me see if I can do anything with my phab admin rights first, but I think this probably needs lower level access [17:56:14] There is a delete user on the profile... I dunno how well it works [17:56:22] confirmed that I can not change an account's settings via the web ui [17:56:45] Reedy: it just gives you the cli command to use :) [17:56:52] Found someone else with a similar problem https://paste.tnonline.net/files/8D4dXsVpdnwd_Screenshot_20200813-195534_Opera.jpg [17:56:55] So not very well then :P [17:57:43] Forza: yeah, I think that's the fix we are going to need. I'll make a task and track down someone who can doo the needful [17:58:11] Thank you! [17:59:32] Still can't understand why the emails don't get through to the old address though. Perhaps some strict DKIM or something? [18:02:00] T260380 [18:02:01] T260380: Delete Phabricator account Forza1000. Email address unconfirmable - https://phabricator.wikimedia.org/T260380 [18:09:50] Forza: greg-g did the needful. Try to sign up for a new Phabricator account! [18:11:35] bd808: look at that. Thank you so much. Now it worked with the new email address [18:11:47] excellent! [18:13:31] :) [18:31:55] I did my best. Hope its OK? https://phabricator.wikimedia.org/T260383 [19:29:53] Forza: looks fine; you might want to make the summary more specific, for instance if it's just about icons the task summary could say so [19:31:42] Yes, as far as I can tell there is only a problem with the icons. Not sure how to word it better though. Any tips? [19:33:10] "Better dark mode support for action icons"? [19:33:53] Forza: maybe look at how other themes do it? [19:34:01] or are you just reporting the bug, not fixing yourself? [19:34:28] oh I see, it's Opera that does night mode [19:34:30] I'm just reporting. Don't know how to fix it, unfortunately [19:34:44] in that case someone needs to investigate how night mode works in Opera [19:35:03] maybe you need to follow certain practices in the css or whatever [19:35:09] Yea, that's the problem. Could be an issue in either side [19:35:34] are the icons svg or what? [19:35:48] Weird is that two of the icons at the top work fine [19:36:07] Forza: yes but that's actually good cause someone can check right within timeless, see what's different about them :) [19:36:25] I don't know. Svg or font I think. Zooming in gives high res shapes [19:36:56] ningu: good point [19:37:14] instead of comparing to vector or minerva or whatever [19:37:59] I'll add a comment about that. What about the title/subject. How to make it better? [19:38:35] should probably mention Timeless in the title (in addition to the tag) [19:39:15] "Better dark mode support for action icons in Timeless skin"? [19:40:17] sure [19:44:18] Thanks I have updated it now https://phabricator.wikimedia.org/T260383 [21:47:03] I'm working on ProofreadPage and there's a method which returns the output of a page using the proofread-page content model. in getParserOutput() it creates a WikitextContent object and calls getParserOutput on it [21:47:40] I'm wondering if there's a way for me to use strip markers in the WikitextContent::getParserOutput processing [21:47:50] based on an idea here yesterday [21:49:17] but it seems like WikitextContent just calls getParser()->parse() and I'm not sure how to hook into that [21:49:58] I guess there's onParserBeforeStrip but using a hook would be really ugly for this [22:37:53] hi [22:38:55] I came online here about a week ago asking about email extensions, someone recommended me one that would have supposedly fixed a problem I was having but I wasn't able to download it until today and I have since forgotten what it was [22:39:57] I have a mediawiki hosted on a server I have and when i configured it, I selected the option for authorised accounts or edits, I'm not sure which, whichever one was an option by default, I remember one of them isn't included by default [22:40:19] but at the moment, there is no "register account" option on my wiki [22:42:04] I'd like to make it so users can register an account and it then emails me, the sysadmin/root user/owner of the wiki whenever they attempt to register an account so I or any users I decide to promote to mods can vet them and let them register [22:43:11] would installing the right extension simply be enough to achieve this? if so, or even if not, any idea which extension is the one I'd need? [22:58:42] you probably want the ConfirmAccount extension [22:59:03] and it should be quite straightforward [23:00:46] thanks :) [23:00:52] sorry for the spam [23:01:38] uh? [23:01:45] no spam, don't worry [23:57:54] Hi all. I'm trying to get my head around the configuration system for mediawiki. When is a new change to localsettings applied? Do I have to restart apache? Is the settings file refferenced for every page load? I didn't find an answer in the FAQ, so any links to documentation would be welcome as well. [23:58:18] No you shouldn't have to restart apache [23:59:06] It's referenced for every page load that isn't just served from a web cache [23:59:31] And the web cache can be either server or client based?