Tagged: roto cron
- This topic has 9 replies, 3 voices, and was last updated 1 month, 2 weeks ago by
kgourlay.
-
AuthorPosts
-
14th January 2025 at 5:17 pm #10983
Richard Hughes
Participantversion 5.1.17
We have a schedule defined.
2 services. Sunday and Wednesday
I setup an email reminder and an SMS reminder to be sent out for both services. So there are 4 cron jobs.
The cron jobs are not getting executed. Before I updated to Premium, the crons were running. now they are not. And I still have the older free plugin installed. maybe that is causing the problem?
1.who runs the crons? Does the Church Admin plugin run the crons, or is there some other plugin that I need to have in place to run them.
2. do I need to has my sys admin team to setup some CRONTAB on my server to get these running?
14th January 2025 at 6:13 pm #10985Andy Moyle
KeymasterYou can delete the free plugin although would advise a database backup using free Updraft plugin before.
The transfer of from jobs didn’t go as smoothly between the plugins as I would like. I tried various fixes. The best thing to do is select the current schedules in the rota module under “show rota cron jobs”. Then make new ones.
The WordPress cron system relies on hits on the site to trigger them. So not always accurate to the time intended if no hits. But it does work.
You can set a server cron job to trigger all the crons. Google WordPress server cron for that. As you need to turn off a setting etc.
Hope that helps
16th January 2025 at 5:32 pm #10990Richard Hughes
Participant1. I did the DB backup.
2. I deleted the free plugin.
3. in the DB, I deleted the existing record in the wp_options table related to the church admin cron job.
4. I created new cron reminders.
5. I turned on settings debug
6. I visited the web site, so that should trigger the email and sms reminders. But nothing gets received.Question: is there a log file I can look at to confirm that the emails and SMS got triggered? Where?
19th January 2025 at 6:41 pm #11010Andy Moyle
Keymaster#3 the cronis also stored in an exceptionally complicated wp_options row for wordpress cron jobs. Best to use the delete button in
Church Admin> Schedules>Show Schedule Cron JobsDebugging – you can turn it on in Church Admin>Settings or add define(‘CA_DEBUG’,TRUE); in wp-config.php
You can take a look at the debug log and clear it in Church Admin >Settings – while it is not too big!
Or with ftp at wp-content/uploads/church-admin-cache/debug_log.php
If left on, it gets big quite quickly!6th February 2025 at 3:46 am #11095Richard Hughes
ParticipantI am going crazy. Auto SMS and Auto Emails are not getting sent out. Our email and SMS are configured correctly because if I just use the Send SMS or Send email options, then the communications go out as expected.
It is only the CRON part of this that is not working. Could you provide a short php script that I could use to send the SMS and emails ? I would add that as a true cron job on the server and run it once every hour. If there was anything to get triggered, then it would do it.
22nd March 2025 at 12:04 am #11206kgourlay
ParticipantI may or may not be having the same problem. I’m also having trouble with cron emails going out, although in my case it seems like they work once but then don’t repeat. A couple times I’ve set up the cron only to come back several weeks later to see that there’s no cron listed (and no emails going out). I just re-created my cron today and it went out, and now it shows that it’s scheduled again for next week, but I’m not holding my breath for it to go out next week. we’ll see.
Richard, I have my site set up with a true cron job as follows. This will trigger cron to run every few minutes whether there is a visitor or not:
*/5 * * * * wget -q -O - https://mychurch.com/wp-cron.php?doing_wp_cron
There are other ways to do it, but this is a convenient and relatively foolproof option. Of course, this just triggers the WordPress cron, it doesn’t ensure that the Church Admin cron email works properly!
28th March 2025 at 9:52 pm #11211kgourlay
ParticipantFollowup after another week of attempting to have rota emailed automatically. Today the emails should have gone out, but they didn’t. Even so, under “Show Schedule cron jobs” the listed cron did get updated to next week’s sheduled date. When I selected to send the emails manually, they went out without a hitch.
So it looks like my experience is indeed the same as Richard’s.
30th March 2025 at 2:07 pm #11215Andy Moyle
KeymasterWill look again at it!
2nd April 2025 at 9:53 am #11240Andy Moyle
KeymasterI can’t break it! It works for me – but I have set up new automated rota emails for the next day, each time this thread is added to and the email dutifully comes the next day.
Please enable the debug log in settings – clear it the day before a scheduled email should go out (else it could be huge!) You should see debug data starting with “Cron email of rota fired” when it fires.
Check that people who should get the email have the option to receive schedule reminders.
The plugin is privacy first and people often switch that off (default initially!)
3rd May 2025 at 12:11 am #11275kgourlay
ParticipantAndy,
It’s been working for me since my last message as well. Of course I can’t speak for Richard, but maybe whatever issue there might have been has worked itself out.One quirk I noticed is that the emails are going out at midnight UTC the day they’re scheduled. In my timezone, that means they’re actually sent the night before. So I had to adjust my reminder to look for the reminders to look sooner than I would have expected.
-
AuthorPosts
- You must be logged in to reply to this topic.