Support

Home Forums Event Espresso Premium Concern about EventEspresso not releasing abandoned registrations

Concern about EventEspresso not releasing abandoned registrations

Posted: July 6, 2023 at 3:50 am

Viewing 10 reply threads


codingforsail

July 6, 2023 at 3:50 am

Hi,

I recently raised this ticket about time to release incomplete bookings:
https://eventespresso.com/topic/can-we-reduce-the-time-that-tickets-are-allocated-against-incomplete-bookings/

Since the answer I reduced the time to 30 minutes.

My customer is still concerned

that the booking system doesn’t seem to be releasing bookings that are abandoned after a period of time. I am having to regularly check bookings match what is available on the system and then delete off abandoned transactions. I have had several customers check only to find that we did actually have space (I wonder how many don’t check and we loose their booking!).

She mentioned a couple of events to me, but they are showing correctly at the moment.

Version we are currently using is 5.0.7.

Do you have other customers experiencing similar problems? Is there anything else we can do?

Thanks,

Anita


Tony

  • Support Staff

July 6, 2023 at 4:25 am

Hi there,

She mentioned a couple of events to me, but they are showing correctly at the moment.

If they are showing correctly, then EE must be releasing the registration, right?

Unless the admin has already adjusted to fix those?

If you installed the WP Crontrol plugin:

https://wordpress.org/plugins/wp-crontrol/

Then go to Dashboard -> Tools -> Cron Events

Can you see any notices about WP_CRON being disabled?


codingforsail

July 18, 2023 at 3:56 am

Hi Tony,

I would have thought so, but she may have adjusted them before she went away.

I exported the events from WP Crontrol, removed the non-EE ones and sorted descending by nextrun. It looks ok to me, but could you check please? Results in this file: pastefile.com/pme1q8

There is also this one which has a very long hook name and made the others very difficult to read when printed on one page:
AHEE__EventEspresso_AutomatedEventNotifications_core_tasks_Scheduler__check 2023-07-13T18:00:00+01:00 2023-07-13T17:00:00+00:00 EventEspresso\AutomatedUpcomingEventNotifications\domain\services\tasks\Scheduler->checkForUpcomingDatetimeNotificationsToSchedule(),EventEspresso\AutomatedUpcomingEventNotifications\domain\services\tasks\Scheduler->checkForUpcomingEventNotificationsToSchedule(),EventEspresso\AutomatedUpcomingEventNotifications\domain\services\tasks\Scheduler->checkForPostDatetimeNotificationsToSchedule(),EventEspresso\AutomatedUpcomingEventNotifications\domain\services\tasks\Scheduler->checkForPostEventNotificationsToSchedule() Once Every Three Hours 10800

Thanks,

Anita


Tony

  • Support Staff

July 18, 2023 at 7:10 am

Hi Anita,

You have crons in there from days ago, that’s not correct.

Can you send me temp login credentials so I can take a look at the cron events?

https://eventespresso.com/send-login-details/


codingforsail

July 19, 2023 at 5:49 am

Thanks Tony,

I have sent the requested login details.

Anita


Tony

  • Support Staff

July 19, 2023 at 8:05 am

Ok, so WP_CRON has been disabled on your site, so your client is right the registrations will not be released, because there is nothing to trigger them to be released.

At the top of the Cron events table is this:

The DISABLE_WP_CRON constant is set to true. WP-Cron spawning is disabled.

That’s “normal” and is ok as long as the host (or whoever disabled WP_CRON) also set up a real cron on the server to trigger the cron jobs.

A quick explanation so you can follow this…

WP_CRON is a pseudo cron, you can’t set up real crons through WordPress itself it has to be done on the server. So what WordPress does with WP_CRON is check in the background for any scheduled tasks in on every single request:

Site visit 1 – check for wp_cron jobs… nope none to run.
Site visit 2 – check for wp_cron jobs… nope none to run.
Site visit 3 – check for wp_cron jobs… ohhhh, yeah this one! Run it.
Site visit 4 – check for wp_cron jobs… nope none to run.

As you can see that’s happening on every single page visit so it’s inefficient but the best available without a ‘real’ cron. Hosts don’t like WP_CRON as it basically doubles the amount of work every request does (one for the actual page your visiting and one for the wp_cron check).

A real cron sits on the server and runs at a specific interval (which you set when you set up the cron), as it’s within the server OS itself it runs without any intervention at the exact time it should.

So right now, it looks like your site has WP_CRON disabled but no ‘real’ cron has been set up to replace it. So I’d recommend just creating that cron and you’ll find details on that here:

https://www.wpbeginner.com/wp-tutorials/how-to-disable-wp-cron-in-wordpress-and-set-up-proper-cron-jobs/

Who is your host? They may have a doc themselves for this.


codingforsail

July 20, 2023 at 4:56 pm

Thanks Tony,

Not sure who the host is, but they use cPanel. I followed the instructions in that article to add a cron job with that wget command.

I found a similar job with this command:
/usr/bin/wget -O /dev/null https://www.essa.org.uk/wp-cron.php?doing_wp_cron
so I set mine up to run every 15 minutes at 5, 20, 24 and 50 minutes of the hour.

Now when I look at the Cron Events in WP Crontrol, there are none in the past.


Tony

  • Support Staff

July 21, 2023 at 4:50 am

so I set mine up to run every 15 minutes at 5, 20, 24 and 50 minutes of the hour.

I’d recommend using every 5 mins as the message system uses WP_CRON, so using 15 mins means it can take up to 30mins for messages to work through your message queue, 5mins means up to 10 (there are 2 stages for messages, generating and sending).

Now when I look at the Cron Events in WP Crontrol, there are none in the past.

Great!

So because WP_CRON had been disabled your client was correct, the reservations would not have been getting released, but from this point on they should be.


codingforsail

July 24, 2023 at 2:11 am

Thanks Tony,

I’ve changed the frequency to */5 * * * *

Anita


codingforsail

July 24, 2023 at 2:11 am

Thanks Tony,

I’ve changed the frequency to */5 * * * *

Anita


Tony

  • Support Staff

July 24, 2023 at 6:27 am

That should be fine 🙂

Let me know if you still run into issues.

Viewing 10 reply threads

The support post ‘Concern about EventEspresso not releasing abandoned registrations’ 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