Email queue spontaneously switched off #449
Replies: 9 comments 19 replies
-
The EME option to set queueing to active is calleeme_queue_mailsd "eme_queue_mails". The only place where EME code touches the setting is in the EME options page, tab "Email". And again only if you're in that tab, EME sets/unsets the option based on standard wordpress functions (in fact the wordpress options API takes care of it). And the default is even "1" (meaning "on"). So if something is setting this to 0, it is not an EME bug but something else doing/causing this. If it happens, check your WP database, table wp-options, and search for that option name/value. Maybe it got deleted (and then it is most probably a WP bug). |
Beta Was this translation helpful? Give feedback.
-
Thank you for clarifying, I checked my database but not sure what to look for. Anyway I reset the option earlier so probably the option has been re-added. |
Beta Was this translation helpful? Give feedback.
-
I've had this same problem a few times. Thought it might be connected with updating EME but just happened today or yesterday and I have not updated EME (still running 2.5.20). Like StickyPixels, just can't connect it to anything I'm doing or not doing with EME. I just reschedule in Settings and wait for somebody to scream whenever they haven't received an email. Frequency - not often, maybe every 4-6 months. Sorry - not very helpful but if I find something more definitive, I'll post it. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the suggestions, Franky. You've added to the voices that suggest using the system cron instead of the WP cron. |
Beta Was this translation helpful? Give feedback.
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
On my Cron System I have planned
as you suggest in the doc.
|
Beta Was this translation helpful? Give feedback.
-
Today I am using this hook: /* Contrôle du CRON */
add_action( 'eme_insert_rsvp_action', 'mon_test_cron' );
add_action('eme_insert_member_action','mon_test_cron' );
add_action('eme_insert_event_action','mon_test_cron' );
add_action('emefs_submit_event_action','mon_test_cron' );
function mon_test_cron() {
if (!wp_next_scheduled('eme_cron_send_queued')){
wp_schedule_event(time(), 'eme_1min', 'eme_cron_send_queued');
$current_schedule = wp_get_schedule( 'eme_cron_send_queued' );
wp_mail('[email protected]','CRON reprogrammé','eme_cron_send_queued reprogrammé, le temps est : '.$current_schedule);
}
}
/*end Contrôle du CRON */ I can add other add_action or maybe add this in my system CRON? |
Beta Was this translation helpful? Give feedback.
-
The relevant files are eme-actions, eme-cron, eme-mailer and eme-options. |
Beta Was this translation helpful? Give feedback.
-
Hi, Thanks a lot for the work |
Beta Was this translation helpful? Give feedback.
-
Hi,
I've had this issue recently on two different sites now, so I'm guessing there is a bug somewhere: Email queueing gets randomly switched off for no obvious reason. Emails suddenly stop being sent, and the schedule is switched off alltogether in Email Settings.
I checked and in both cases there has been no interaction that may have caused the issue (like plugin updates or maintenance or anything like that).
It appears to be a recent thing, because one of these sites has been active for years and I never had this issue before. I am using the default Wordpress Email method on both sites.
I found this post in this forum: https://github.com/liedekef/events-made-easy/discussions/331, may this be CRON related?
Hope there is a solution or workaround, but anything to clarify would help.
Beta Was this translation helpful? Give feedback.
All reactions