Support

Home Forums Event Espresso Premium Event Espresso triggering emails for an Inactive event

Event Espresso triggering emails for an Inactive event

Posted: May 24, 2023 at 7:37 am

Viewing 11 reply threads


michelle@complianceaid.pro

May 24, 2023 at 7:37 am

We had set WP_Cron manually through cpanel to setup news feeds in the system. Currently only one event was active in Event Espresso and others were all inactive. But when we added wp cron job through cpanel, it triggered emails to some attendees who registered for the event that ended more than a month ago.

How did it happen? Why were these emails triggered from the system?

Recently we also performed an upgrade on the Event Espresso database. This is very embarrassing as the event is already over.


Tony

  • Support Staff

May 24, 2023 at 8:20 am

Hi there,

When we’ve seen this in the past it was because the emails were sitting in the queue waiting to generate from a previous issue with WP Cron or something happening during the generation of the emails.

Fixing WP Cron then triggered the job to generate and send the emails.

Do you know if these emails a ‘duplicate’ of previous emails sent? As in did the emails send for the event previously when the user registered and now they’ve received another copy?

Do you have a database backup from some point close to before you setup the cron job through cPanel? I can check to see if messages are waiting to generat within that if if you do.


michelle@complianceaid.pro

May 25, 2023 at 12:48 am

Hi Tony,

Please see your answers below after ***:

– Do you know if these emails a ‘duplicate’ of previous emails sent?
*** Yes it seems to be duplicate email. Because one of our attendees received Registration Approved email before on March 14th 2023 and yesterday they again received the same message. Our event ended on April 14th 2023.

– As in did the emails send for the event previously when the user registered and now they’ve received another copy?
*** Yes

– Do you have a database backup from some point close to before you setup the cron job through cPanel?
*** Yes I have how do I send to you?

NOTE: We have email logs plugin and I took a website backup before setting up the WP Cron job, there I didn’t see any emails being in queue.


michelle@complianceaid.pro

May 26, 2023 at 1:22 am

Hi Tony,

Awaiting your response.


michelle@complianceaid.pro

June 1, 2023 at 3:30 am

Hi Tony,

Any updates?


michelle@complianceaid.pro

June 8, 2023 at 3:52 am

Hi Tony,

Did you get a chance to review my below email:

Please see your answers below after ***:

– Do you know if these emails a ‘duplicate’ of previous emails sent?
*** Yes it seems to be duplicate email. Because one of our attendees received Registration Approved email before on March 14th 2023 and yesterday they again received the same message. Our event ended on April 14th 2023.

– As in did the emails send for the event previously when the user registered and now they’ve received another copy?
*** Yes

– Do you have a database backup from some point close to before you setup the cron job through cPanel?
*** Yes I have how do I send to you?

NOTE: We have email logs plugin and I took a website backup before setting up the WP Cron job, there I didn’t see any emails being in queue.


Tony

  • Support Staff

June 8, 2023 at 5:06 pm

Hi there,

My apologies for missing this your replies here.

– Do you have a database backup from some point close to before you setup the cron job through cPanel?
*** Yes I have how do I send to you?

Host the file however you prefer and send a link for me to download to support[at]eventespresso.com

For example .zip the file (password protect it if preferred) and send me the link. Or use a server such as Dropdox or WeTransfer to send it directly.

NOTE: We have email logs plugin and I took a website backup before setting up the WP Cron job, there I didn’t see any emails being in queue.

I’m referring to the EE message system queue rather than something you’ll see within email logs.

Event Espresso -> Messages has its own system to queue, generate and ‘send’ emails (which you’ll then see in the mail log).


michelle@complianceaid.pro

June 15, 2023 at 6:55 am

This reply has been marked as private.


michelle@complianceaid.pro

June 20, 2023 at 12:41 am

Hi Tony,

Were you able to review the database I sent? What are your findings?


Tony

  • Support Staff

June 21, 2023 at 6:58 am

Hi there,

My apologies for the delay, I’ve been digging into this trying to reproduce the emails re-sending but unfortunately, I’ve not been able to.

I checked your database and as you suspected, there aren’t messages sitting waiting to generate/send so ‘something’ retriggered the emails to send again within the messages system but without being able to reproduce it and view the stack trace/queries generated its extremely difficult to narrow this down further.

I set up a local site running just Event Espresso and used your database locally to see if I could reproduce it (no emails will actually send from my localhost) but nothing so far has triggered the emails there.

What exactly did you do with WP_CRON from your opening post? I’d really like to reproduce this if I can, triggering messages for expired events is not ideal nor expected.


michelle@complianceaid.pro

June 22, 2023 at 12:39 am

Hi Tony,

I had set WP Cron job in cpanel following this url:
https://wpmudev.com/blog/set-up-cron-job-cpanel-wp-cron/#:~:text=To%20set%20up%20a%20cron%20job%20in%20cPanel%2C%20log%20into,up%20the%20Cron%20Jobs%20screen.

And this was done to make sure that the News Feeds from “RSS Aggregator by Feedzy – Powerful WP Autoblogging and News Aggregator” could run properly.
https://wordpress.org/plugins/feedzy-rss-feeds/


Tony

  • Support Staff

June 22, 2023 at 6:06 am

I had set WP Cron job in cpanel following this url

So all that actually does is create a ‘real’ cron on the server and stop WP_CRON from checking for tasks on every request.

WP_CRON is a sudo cron, it can’t schedule tasks on the server itself so what it does is check for a task on every request in the background, meaning every single request that hits the site triggers a check within WP_CRON to see if there is a task to run.

The above sets up a real cron to run every X mins which then calls the page WP_CRON would have to run the tasks.

It’s a way make sure the WP Cron tasks run on X schedule without needing visitors to trigger the check. That doesn’t really change how EE messages work.

And this was done to make sure that the News Feeds…

I can’t see anything within that add-on which could make messages retrigger.

I’ll create a ticket to see if there is anything we can do to try and prevent this ut without being able to reproduce its going to be really difficult to narrows this down.

Viewing 11 reply threads

The support post ‘Event Espresso triggering emails for an Inactive event’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso