No Mails from Moodle - PHP Error in Cron / Scheduled Task for sending E-Mails
-
@ccfu said in No Mails from Moodle - PHP Error in Cron / Scheduled Task for sending E-Mails:
but unfortunately the solution to allow cron via browser hasn't worked for me
This shouldn't be required. The package already runs cron. can you run
/usr/local/bin/gosu www-data:www-data /usr/bin/php /app/code/new/admin/cli/cron.php
? -
@girish said in No Mails from Moodle - PHP Error in Cron / Scheduled Task for sending E-Mails:
@ccfu can you check if you installation has that value set?
Yes, it does.
@girish said in No Mails from Moodle - PHP Error in Cron / Scheduled Task for sending E-Mails:
@ccfu said in No Mails from Moodle - PHP Error in Cron / Scheduled Task for sending E-Mails:
but unfortunately the solution to allow cron via browser hasn't worked for me
This shouldn't be required. The package already runs cron. can you run
/usr/local/bin/gosu www-data:www-data /usr/bin/php /app/code/new/admin/cli/cron.php
?Yes, that runs and completes successfully. There are also several other tasks completing regularly without issue.
The error I am getting at
/admin/tasklogs.php
is:Execute adhoc task: mod_forum\task\send_user_notifications Adhoc task id: 32 Adhoc task custom data: ["1"] ... started 21:14:29. Current memory use 31.7 MB. Debugging increased temporarily due to faildelay of 86400 Sending messages to xxx (username removed) ... used 53 dbqueries ... used 0.32096004486084 seconds Adhoc task failed: mod_forum\task\send_user_notifications,Failed opening required '/phpmailer/moodle_phpmailer.php' (include_path='/app/data/moodle/lib/pear:.:/usr/share/php')
-
I'd guess the update that happened last night is why I received an email around 3am this morning saying there was a new login to my account on 12 May 2022
-
I made sure to remove the queued adhoc tasks before updating to prevent that from happening and users receiving notifications of past events. At least you now know that adhoc tasks are working again in your installation
-
@ccfu said in No Mails from Moodle - PHP Error in Cron / Scheduled Task for sending E-Mails:
I made sure to remove the queued adhoc tasks before updating to prevent that from happening and users receiving notifications of past events. At least you now know that adhoc tasks are working again in your installation
Thankfully in my case I don't yet actually have any users. I just installed to have a play around (because I do have plans to run some online courses) and haven't even really got around to doing that yet