I just can´t understand what the LOCALE has to do with this issue, but it's related. No problem with en_US.UTF-8 UTF-8.
Re: Duplicate forum notification emails being sent - Moodle 3.7.1
I just can´t understand what the LOCALE has to do with this issue, but it's related. No problem with en_US.UTF-8 UTF-8.
Re: Duplicate forum notification emails being sent - Moodle 3.7.1
Ri: Re: Duplicate forum notification emails being sent - Moodle 3.7.1
https://www.tecmint.com/set-system-locales-in-linux/
I have the same problem.
have a nice day
Re: Duplicate forum notification emails being sent - Moodle 3.7.1
Hello everyone!
Yesterday I've updated the bug MDL-66561 with some additional info I found when debugging. And yes, the locale causes the trouble. I've tracked the problem and found that it is located in the Moodle MySQL database component that performs an ugly hack when building the database query (it is documented in the code as an ugly hack, these are not my words). It converts a floating point numbers (in this particular case, the timestart and timeend fields are the culprits) to string. When doing so, the PHP internal engine uses the locale to perform the conversion and... it exchanges the decimal separator dot (.) for comma (because here in Brazil we use comma as the decimal separator), making the MySQL think that the decimal part of the number is another value. In this case, the database query end up with 12 values x 10 database columns and does not know what to do, throwing an error. This bug will only occur when the decimal separator is other than dot, because MySQL only accepts dot as decimal separator in raw database queries. I've suggested where the Moodle devs can make the correction, because I don't know the worflow for contributing with a source code change. Anyway, now we do know a root cause for this problem and the suggested workaround is all we can do while waiting for a patch. Sorry for all the tech talk, but I could not find better words to explain. If there are any additional doubts, just let me know.
Re: Duplicate forum notification emails being sent - Moodle 3.7.1
Hi @Erick,
I had the same issue with multiple notifications. I checked this thread and followed the fix on LOCALE settings. I changed it from `C.UTF-8` to `en_US.UTF-8"`. But I'm still having same issues. What other server configs do I need to change? Thank you.
Re: Duplicate forum notification emails being sent - Moodle 3.7.1
Re: Duplicate forum notification emails being sent - Moodle 3.7.1
On our case, all of our front-end executes cron. There are chances that two or more process run at the same time thus causing this error. This now leads me to question this part of moodle doc recommendation:
https://docs.moodle.org/310/en/Cron#Running_cron_for_several_Moodle_servers
I'm now trying to look into this ticket for more info on how to set up a dedicated cron server for Moodle:
https://moodle.org/mod/forum/discuss.php?d=127108
Re: Duplicate forum notification emails being sent - Moodle 3.7.1
I don't think it is the load balancer. I have the same problem in a moodle with a load balancer and another moodle without a load balancer.
Re: Duplicate forum notification emails being sent - Moodle 3.7.1
Re: Duplicate forum notification emails being sent - Moodle 3.7.1
Have you found the solution to this issue? I am having the same problem with Moodle 3.9 and changing the LOCALE settings hasn’t fixed the issue. This is only happening for forum notifications no other emailing services (quickmail, open forum, messages…)
Any luck with this?
Re: Duplicate forum notification emails being sent - Moodle 3.7.1
As mentioned in the bug rapport: if you can't get it fixed, you can always switch off logging as a workaround on moodle/admin/settings.php?section=tasklogging
Re: Duplicate forum notification emails being sent - Moodle 3.7.1
Unfortunately we still have not found a solution for the problem. We also have moodle 3.9 and we use sql server.