[03:11:48] i've set both wgSMTP, wgEnableEmail and wgEnableUserEmail, but MediaWiki is not sending emails, it is not even trying (no connection appears in my mailserver logs) [03:12:16] even the debuglog reveals no attempts to deliver email [06:25:20] Just got spammed to hell. Millions of users & articles about Poker. [06:25:37] Tried UserMerge but it's hopeless. [06:26:27] Tried cleanmediawiki.sh but it has a bug: "ERROR 1054 (42S22) at line 1: Unknown column 'ar_user' in 'field list'" [06:27:03] No, there is no ar_user table. [06:38:43] it's a column, as the error said [06:38:49] also, what is cleanmediawiki.sh? [06:39:48] https://github.com/edrabbit/cleanmediawiki/blob/master/cleanmediawiki.sh [06:39:57] I guess it hasn't been touched since 2013, so not really a surprise it's broken [07:41:52] I have a question about nginx rewrite rules. I have a rule like so: rewrite ^/wiki/([^?]*)(?:\?(.*))? /wiki/index.php?title=$1&$2 last; [07:42:23] It has worked well over the years. But recently I noticed that it breaks when the title has a question mark in it [07:43:55] e.g. /wiki/Who_is_your_daddy%3F_It_is_me instead of being rewritten as /index.php?title=Who_is_your_daddy%3F_It_is_me actually gets rewritten as /index.php?title=Who_is_your_daddy&_It_is_me [07:44:49] If Wikipedia uses nginx where can we see its config for pretty URLs? [07:55:12] We don't use nginx for that part of teh config [07:55:46] OK. Thanks Reedy [07:55:54] Though, that sounds a common issue [07:57:02] I can try on an Nginx forum. It's about how to code the correct rewrite directive. [10:28:09] hi [10:28:21] how do i delete a user who whats to delete his account? [10:29:44] If you have hideuser rights, when you indef block someone, there is an extra checkmark to remove the account [10:30:17] This doesn't actually remove all data though, its still viewable by people with suppression related rights [10:30:37] I think some people use the UserMerge extension to merge all deleted users into an "anonoymous" user [10:31:21] https://www.mediawiki.org/wiki/Manual:RevisionDelete [10:31:46] !e UserMerge [10:31:46] https://www.mediawiki.org/wiki/Extension:UserMerge [10:53:04] bawolff: thank you [10:53:17] np [13:10:06] Nikerabbit: Would welcome your feedback on this change https://gerrit.wikimedia.org/r/574448 [13:10:15] (looks like you created it originally) [13:11:20] I'd be happy to keep something around or invest in something similar elsewhere if you still use this regularly. [14:15:31] > Error from line 421 of /srv/mediawiki/php-1.35.0-wmf.20/extensions/Wikibase/data-access/src/SingleEntitySourceServices.php: Class 'Wikibase\Lib\StatsdMissRecordingSimpleCache' not found [14:15:37] > Error from line 424 of /srv/mediawiki/php-1.35.0-wmf.20/extensions/Wikibase/data-access/src/SingleEntitySourceServices.php: Class 'Wikibase\Lib\StatsdRecordingSimpleCache' not found [14:15:52] Amir1: it recovered since, but did you know about this from earlier today? [14:16:32] Krinkle: yeah this is due to files arriving at random order [14:16:46] during one scap, I don't know how to avoid it [14:17:09] breaking change can only roll out via the train. For anything else, each change must be compatible and synced one by one [14:17:17] file by file if needed [14:18:46] Krinkle: I replied in the patch [14:38:45] Nikerabbit: Thanks [14:41:54] Hi, I'm trying to do some stuff when someone clicked on the "save" button of an article. So I tried to use the "PageContentSaveComplete" hook. but it is not working. I also tried to use "PageContentInsertComplete" when you create a new article, also not working. The Only hook is working is "OutputPageBeforeHTML". [14:42:01] What am I doing wrong? [14:42:27] I added all 3 hooks the same way in the extension.json file [14:42:57] Am I using the wrong hooks for the job? [15:40:54] Just got spammed to hell. Millions of users & articles about Poker. Tried UserMerge but it's hopeless. Tried cleanmediawiki.sh but it has a bug: "ERROR 1054 (42S22) at line 1: Unknown column 'ar_user' in 'field list'" [15:42:43] I naively thought WM would --notify-- me of new registrants. [15:43:00] This is a severe shortcoming. [15:57:50] Looks like I should have started with, "Is anyone here?" [16:54:49] It is astounding that MW has absolutely no mechanism to notify or mitigate from the parvasive and pernicious spambots. [16:55:25] you have logs ... [16:55:44] Some of us are extreme;y busy. [16:55:57] Hey guys, can't get the hook "PageContentSaveComplete" to work. I Added MyExtensionHooks.php to entension.json (AutoloadClasses), added it to Hooks: PageCo...: MyExten...::onPageCon.... and tried to do some stuff, like echo. But nothing works. I want to do something when someone presses the article save button [16:56:57] what exactly do you mean by "do something" [16:57:28] 20,000+ spam users and countless spam articles in just a couple days. Impossible to delete all. [16:57:50] well like counting the edits or for now at least test if this hook works [16:57:57] so like echo a string [16:57:59] abuse filters help [16:58:03] with and without js [16:58:50] My question is WHY isn't at lease SOME mechanism in place by default? I fully expected it to notify me of at least new registrants! [16:59:45] Unfathomable. [17:17:58] quantum it's a free software, you can't expect to have everything. For this kind of problem you have to take care by yourself. For that you have to install an extension or write one. [17:18:27] quantum: sorry you have to deal with the clean up. I would recommend updating documentation if you feel it was unclear and/or filing a task for stricter defaults [17:19:25] kostajh do you know a bit about hooks? [17:19:37] Every new user who install MW is going to get hit like this. All it takes is to put in the config file [17:20:03] # ConfirmAccount        https://www.mediawiki.org/wiki/Extension:ConfirmAccount [17:20:04] require_once "$IP/extensions/ConfirmAccount/ConfirmAccount.php"; [17:20:04] $wgConfirmAccountContact = 'name@domain.com'; [17:20:25] It's amazing that this has never been done. [17:20:58] So if I drop the mediawiki database... will the setup process reconfigure it? [17:35:29] No one knows. I am on my own. [17:38:59] maybe not the right time to ask. I also don't get a response. [18:35:14] [XlQXRqLnMpraZfcjSar5XgAAAA8] 2020-02-24 18:34:46: Fatal exception of type Wikimedia\Rdbms\DBQueryError [18:54:09] Hey, I'm trying to write an API module that takes a list of dictionaries as one of the parameters [18:54:27] But I'm having trouble figuring out what to use for the parameter type [18:54:34] Does anyone have any suggestions? [19:29:03] array? [20:23:56] jens7732: can you post a link to your code? [20:24:43] (https://discourse-mediawiki.wmflabs.org/ is also a good place to ask) [21:14:31] Hi all, how can I see what is inside an object like "$wikiPage" or "$content". Can I somehow output it to the console or write it to a file? Or what method is the best to use? [22:36:19] https://en.wikipedia.org/wiki/Wikipedia:CSVLoader/Walkthrough Has anyone used it? how can I make it create pages in a certain namespace [22:53:01] kenta91: https://www.php.net/print-r