[03:02:20] We are looking for reviewers for this patch that allows some more flexibility in the language converter code: [03:02:21] https://gerrit.wikimedia.org/r/c/mediawiki/core/+/854114 [03:03:08] It's been hard to find reviewers for this part of the codebase before, but I am hoping that someone would be willing to have a look. [03:03:39] It will then pave the way for us to hopefully, at last, be able to merge #726595. [14:42:34] hello [14:43:35] is there any way to anonymize ips - posters who are not logged in? ive searched around and all ive found is using $wgShowIPinHeader, which has since been depricated. thanks! [16:58:04] IPs aren't anonymous? [16:58:54] not unless you use a proxy/VPN [17:02:08] There's an experimental feature for this in 1.39, but I wouldn't use it just yet. [17:02:40] easier to just disable ip editing 😛 [17:03:16] when will this be added to stable? [17:03:37] Well 99% of people don't have stable IP so not really useful [17:03:37] Also mobile users [17:04:05] depends on how the network handles that [17:04:16] yes [17:04:19] and even without a stable IP, it's still generally enough to geolocate with reasonable accuracy [17:04:26] yes [17:04:40] even if you have a dynamic IP its a privacy concern [18:37:26] The temp user generation? [21:34:07] hello [21:34:37] I have a midia wiki site and when I try to create an account I get: Unknown error in PHP's mail() function. [21:34:52] googling I see this: https://www.mediawiki.org/wiki/Manual:$wgSMTP#Error_sending_mail:_Unknown_error_in_PHP.27s_mail.28.29_function_Mediawiki [21:35:18] but have no clue what any of that means [21:35:39] or rather I know what it means but have no clue how to change the site [21:37:31] Did emailing ever work? [21:37:44] yes [21:38:45] I don't remember where to look or what to change [21:39:00] do I need to go on the webserver or can I do this on the wikimedia site? [21:39:33] You'll need to go to the webserver and probably edit LocalSettings.php [21:39:38] Depending on what is actually wrong [21:43:40] where is $wgSMTP set? [21:43:47] https://www.mediawiki.org/wiki/Manual:$wgSMTP#Error_sending_mail:_Unknown_error_in_PHP.27s_mail.28.29_function_Mediawiki [21:43:51] this references it [21:44:17] All settings you want to change should go in LocalSettings.php [21:45:46] I made changes to localsettings.php how do I know if the site is using a cached version or not? [21:47:22] You can add an intentional syntax error on the file. If the site stops loading (blank page, PHP error), that's a signal it's using that file [21:48:51] k I don't see anything to change in localsettings.php though [21:49:08] like nothing email related [21:50:01] That variable is not there by default, you should add it to the file [21:50:50] Note that, even used for configuration, it's not a "configuration file" but a "php code file". It contains php code [21:51:14] You're setting a PHP variable there, that will be used in other parts of the software [21:52:09] Ok... so I should look somewhere else besides localsettings.php then. [21:52:22] where is this $wgSMTP setup? [21:52:56] It is possible it's been customised somewhere else, but it shouldn't have been [21:53:30] well there is no reference to $wgSMTP in that file [21:53:48] what is this: https://www.mediawiki.org/wiki/Manual:$wgSMTP#Error_sending_mail:_Unknown_error_in_PHP.27s_mail.28.29_function_Mediawiki talking about? [21:54:57] where do I configure $wgSMTP? I don't understand this documentation is all [21:55:07] !localsettings [21:55:07] All configuration is done in LocalSettings.php (near the end of the file). Editing other files means modifying the software. Default settings are not in LocalSettings.php, you can look in DefaultSettings.php. See , , , and [21:55:44] That page provides an example configuration. You can copy it, paste it at the end of LocalSettings.php and adapt to your needs [21:56:04] ahh ok... well I didn't do that last time as it's not there [21:56:44] I feel like there was some page in mediawiki that I set this up in [21:56:47] not in a php file [21:56:48] Correct. If it's not configured, it will use the default php mail() function, with the mail settings configured in php.ini [21:57:51] namely: https://www.php.net/manual/en/mail.configuration.php [22:00:39] is there no webpage to go in https://WHATEVERSITE.com/Special:XXX that I can look to se what the settings are? [22:02:55] where is php.ini located? [22:03:35] !php.ini [22:03:51] See https://www.mediawiki.org/wiki/Manual:Php.ini [22:09:02] ok well no closer to solving this problem [22:12:39] where should I look if email confirmation was working 6 months ago but is no longer working today? [22:16:12] look at the "user" table on the database. There's a field with the last time the email was confirmed. Sort by that column [22:16:43] to what end? [22:16:47] if anyone but you has server-side access, you should also be asking them what things they've changed in that time [22:16:58] Dinoguy10003726[, I'm the only one [22:17:26] https://www.mediawiki.org/wiki/Manual:$wgSMTP where is $sgSMTP set? [22:17:42] all the documents seem to leave out "obvious" details to the reader [22:17:54] the default is set in DefaultSettings.php, as was mentioned earlier [22:18:17] It's been months since I played with this, so I'm obviously missing something "obvious" [22:18:32] you've already stated you never added it to your LocalSettings.php, so unless you've modified your DefaultSettings.php (which you shouldn't), it's still set to its default value for your version of MediaWiki [22:18:45] Dinoguy10003726[, ya there is no mention of $wgSMTP in my localsettings [22:19:30] I guess when it says set to false it doesn't mean in the file [22:19:43] how did you have email configured before? it's my understanding that this is necessary for MW to be able to send emails [22:20:12] one second let me do what Vulpix said [22:20:35] Vulpix, how do I look at the "user" table in the database? [22:21:50] unless you have phpmyadmin installed, you'll have to query the database directly with the mysql command on the server [22:22:00] lol [22:22:28] gonna go out on a limb here and say that if you don't already know how to do this, you shouldn't be learning on a production MW server [22:22:28] ok uhmmm any other suggestions. I have the email the system sent me if that helps? [22:23:31] Dinoguy10003726[, have you ever gotten an error that says: contact the systems administrator... when you are the systems administrator? [22:24:07] yes [22:24:09] everyone does [22:24:37] perhaps I'm going about this the wrong way. If someone just installed MW how would one get email notification working? [22:28:49] surely that is easy to do? I've done it after all... [22:29:37] Let me repost this again [22:29:39] That page provides an example configuration. You can copy it, paste it at the end of LocalSettings.php and adapt to your needs [22:31:14] Vulpix, sorry so many links what page are you talking about? [22:31:47] The only link you posted like 3 times in this conversation [22:52:23] https://www.mediawiki.org/wiki/Manual:$wgSMTP#Error_sending_mail:_Unknown_error_in_PHP.27s_mail.28.29_function_Mediawiki <--- this one? [22:53:57] Yes! [22:56:40] yes but $wgSMTP isn't used in my localsetting.php file [22:56:49] so nothing to configure [22:57:20] Let me repost this again [22:57:23] That page provides an example configuration. You can copy it, paste it at the end of LocalSettings.php and adapt to your needs [23:00:05] it was working without adding that using the built in php mail so I'd like to figure out why that is failing [23:02:15] figured there would be some documentation on how to set up mediawiki to send emails [23:02:26] Your hosting may be restricting the use of sendmail or unauthenticated mail now. In fact, asking your hosting provider may be a good idea. This will probably *not* fix your issue, though [23:03:12] yes good suggestion [23:06:28] I was always surprised with how poor the documentation is with media wiki, considering what it is [23:09:29] Although documentation is lacking in some areas, installing MediaWiki requires some sysadmin skills and knowledge [23:10:13] installing was easy enough... configuration is a major issue documentation wise [23:16:41] looking at my past email from the system it was sending it from: Wiki Name where is that configured? [23:23:03] I changed the system that users need to "Request account" I guess I'll look at that [23:24:26] Extension:ConfirmAccount [23:28:24] Pepp your i^: your configuration (original) is in php.ini [23:28:24] You can either fix that there server-wide, or you can ignore it and set up $wgSMTP in LocalSettings.php which overrides it for the app [23:29:52] rundg[m], where is the from email configured? in php.ini? What about the message body? [23:31:14] Since you're configuration broke with no change on your part, I would suspect as others have pointed out that your hosting provider has changed the policy for direct mail. So LS.php is a better approach [23:34:40] are there any logs I can look at. Now everything is working :/ [23:35:08] "rundg, where is the from email..." <- https://www.mediawiki.org/wiki/Manual:$wgPasswordSender [23:36:48] worried that is stopped working and now is working... but whatever I guess [23:38:06] rundg[m]: set that to a valid email address in LS.php (LocalSettings.php) [23:38:07] Then you can set a 'friendly name' in your wiki's MediaWiki:Emailsender article (that is a system message article that requires 'Interface Admin' privileges... you're a sysop, so you have that privilege) example: https://www.mediawiki.org/wiki/MediaWiki:Emailsender [23:40:55] rundg[m], hmm the new email I got was set up correctly it looks like. Stupid question but is there any documentation on how to setup the email system? Like can I change the body of the messages and where? [23:42:24] "are there any logs I can look at..." <- > To save errors and debugging information to a log, add $wgDebugLogFile to the LocalSettings.php file. Change the value to a text file where you want to save the debug trace output. [23:42:24] from https://www.mediawiki.org/wiki/Manual:How_to_debug [23:42:24] WARNING, the log file needs to be writable by apache, and will grow very big very fast. [23:43:24] when a user tries to create an account the body of their email says: Someone, probably you from IP address 174.3.156.82, has requested an account ... where do I set that? [23:43:54] I strongly recommend setting up a development site where things are locked down, and you can enable https://www.mediawiki.org/wiki/Manual:$wgDebugToolbar for easy inspection of every single page view. [23:45:10] ok [23:49:10] hmm itlooks like my php.ini file is located in /usr/local/php74/lib/php.ini but I either don't have access to that in my file manager or am looking in the wrong place [23:51:23] "when a user tries to create an..." <- Probably from Extension:ConfirmAccount [23:51:23] You can see all the System Messages created by that extension [here](https://gerrit.wikimedia.org/g/mediawiki/extensions/ConfirmAccount/+/1a62eefdfe62a570990e847ee7601e04629892fb/i18n/requestaccount/en.json) [23:51:23] For System Messages, you override them locally "on-wiki" by editing the article by the same name in the MediaWiki namespace. For your task, edit the MediaWiki:requestaccount-email-body article. [23:53:09] !System Messages [23:53:39] * !SystemMessages [23:53:59] rundg[m]: I still don't know how to invoke the chat bot [23:58:46] You can add ?uselang=qqx to the URL to see which system message controls that.