Support

Home Forums Event Espresso Premium Disappearing registration

Disappearing registration

Posted: January 12, 2017 at 2:33 pm

Viewing 21 reply threads


Jonathan

January 12, 2017 at 2:33 pm

I have received the following message from the event administrator:

On Tues 10th, [someone] booked on to the Y course (reg code
422619 250 1 0384) and on Weds 11th booked on to the Z
(curiously, also the same first part of the reg code – 422619 264 1
1e6d). I got the usual ‘registration pending payment’ emails for both.

Just received payment of £300 for the Y, code 422619, went to apply
it, and cannot see her Y registration/transaction in Espresso.

Espresso does have her Z registration, but it is dated the 10th
not the 11th.

Is it possible that Espresso has somehow spliced the two bookings?

If so, should I re-do the Panel registration so that I can apply the
payment?

Does this ring any bells? I’ll ask to see the emails. What further information do you need from me?

Thanks.


Jonathan

January 12, 2017 at 4:40 pm

The email received about the now-missing registration contained an URL with the following: REG_ID=1726 – I’ve checked, and that is definitely missing from the esp_registration table.


Josh

  • Support Staff

January 13, 2017 at 8:18 am

Hi Jonathan,

May I ask is the site running the current version of Event Espresso 4?


Jonathan

January 13, 2017 at 8:27 am

4.9.21.p

Is this a known bug with some older versions?

We’ve used EE for a couple of years now and this is the first time this has happened.

We did start using the multiple event registration add-on which I suspect (with no evidence!) may be related.

Thanks

Jonathan


Josh

  • Support Staff

January 13, 2017 at 8:38 am

That’s not a known bug with that version, but there were a number of bug fixes for the registration module since that version was released. Can you make sure you have the current version of both Event Espresso 4 core and EE4’s MER add-on? When you go to update those, it’s recommended to update MER first.


Jonathan

January 15, 2017 at 2:22 pm

I’ve upgraded to the latest versions and will hope for the best.

Perhaps it would be good if the software marked the database rows as unneeded, rather than deleting them, to help with problem solving in cases such as this.

I wonder if that could be suggested to the developers.


Josh

  • Support Staff

January 16, 2017 at 10:52 am

It sounds like you’ve assumed that the software deleted the database rows. The thing is, Event Espresso doesn’t have a function that deletes database rows that belong to registrations. In fact, if you were to go in and try deleting a registration that has a payment attached to it, it won’t let you delete it until after you delete the payment.


Jonathan

January 16, 2017 at 12:08 pm

You’re right, I had assumed that.

The database row presumably existed when the EE email was sent out (based on the URL). It doesn’t exist any more (there are some with lower and higher IDs). How could it have disappeared?

There was no payment attached so do you think our administrator deleted it by accident (when logging in to attach a cheque payment)? She is very efficient so I doubt that.

Thanks


Josh

  • Support Staff

January 16, 2017 at 1:13 pm

You could check the access logs and PHP error logs for around the time after the registration was initially made to see if there are any clues about how that registration was removed.


Jonathan

January 16, 2017 at 2:06 pm

Thanks.

The only lines in the access logs with “REG_ID=1726” are admin attempts to view the registration.

I deleted an old registration from trash tonight – the only line with “&action=delete_registrations” in the access log was this test one.

I couldn’t find anything that appeared relevant in the error logs.

Best wishes

Jonathan


Josh

  • Support Staff

January 16, 2017 at 2:08 pm

So those records don’t point to any clues about how that registration got deleted then.


Jonathan

January 16, 2017 at 2:46 pm

I think that I have the answer, and that it is a bug in the multiple events add-on.

To cut a long story short, the failure of the software to remove event 1 from the cart (after finalising registration) will in all likelihood lead the user to remove event 1 from the cart when trying to register for event 2, which in turn will lead to the software entirely deleting the registration for event 1.

I will try to run through it step-by-step, from memory:

Select a ticket for event 1. Select invoice as payment method and click “finalise registration”. This creates a row in the registrations table (e.g. 1742).

Then select a ticket for event 2. At this point a message comes up stating that there are two items in the cart. These relate to event 1 and event 2. At this point only event 2 should be in the cart.

Remove event 1 from cart (as any normal user would do). At this point only event 2 remains. Select invoice as payment method and click “finalise registration”. This creates a row and the registrations table (e.g. 1743).

The TXN_ID field in rule 1742 is changed to 0. Shortly after that the row is deleted. I guess that this is done by the “remove_registration” function in EED_Multi_Event_Registration.module.php, which is called from the “verify_tickets_in_cart” and “adjust_registration_quantities” functions:


protected static function remove_registration( EE_Transaction $transaction, EE_Registration $registration ) {
if ( $registration instanceof EE_Registration ) {
$transaction->_remove_relation_to( $registration, 'Registration' );
$registration->delete();
return true;
}
return false;
}

The user in due course receives “registration pending payment” emails in relation to each of the two events.

When he clicks on the URL in the email for event 1 he gets this message:

The following errors have occurred:
Your Registration and Transaction information could not be retrieved from the db.
Your Registration and Transaction information could not be retrieved from the db.

And event 1 does not show up on the admin pages either.


Josh

  • Support Staff

January 16, 2017 at 4:10 pm

When they finalized the registration, that should empty the cart and start a new transaction.


Jonathan

January 16, 2017 at 4:57 pm

I know it should, but it doesn’t.

Perhaps it hasn’t been tested properly with the “invoice” payment method (it’s a method which doesn’t involve any payment, so may be different to the others).

I replicated the problem using Edge 14 browser, EE 4.9.25.p, MAR 2.0.11.p, Stripe 1.0.14.p, Mover 1.0.0.p, Table View 1.3.5.p.


Josh

  • Support Staff

January 16, 2017 at 6:48 pm

It actually does on our testing servers. It sounds like something on your web server isn’t allowing the session to clear when the registration finalizes and then loads the Thank you page. Here’s a little video that shows what happens:

https://screencast.com/t/5c6LoCHHV


Jonathan

January 17, 2017 at 1:25 am

Cheers. I can believe that more easily. Before I get on to the hosting company – what method does EE use to clear the session?


Jonathan

January 17, 2017 at 6:59 am

I have just watched your video (great system by the way). When I tested it (before my detailed post above) I went as far as the end of your video, and had the same result – so far so good. However, when I went further and added a second event to the cart, the first event reappeared. I wonder, for the sake of completeness, if you would be willing to try out all the steps in my post above?


Josh

  • Support Staff

January 17, 2017 at 8:14 am

Here’s another video:

https://www.screencast.com/t/5fGxvjMKqe


Jonathan

January 17, 2017 at 9:53 am

Thanks. I’m on the iPhone so can’t watch that now. I assume it works fine on your server.

Would the relevant difference in server setup be apparent from the phpinfo page? How could we compare?


Josh

  • Support Staff

January 17, 2017 at 12:04 pm

I ran a few test registrations and it all works fine on your server too. Are you opening multiple tabs during the checkout process?


Jonathan

January 18, 2017 at 7:32 am

I did it all in the one tab. Though didn’t close it between event 1 and event 2 – and likely had other tabs from the same website open at the same time.


Josh

  • Support Staff

January 18, 2017 at 7:40 pm

That should be fine. Are you running any database caching or other types on server side caching on that server?

Viewing 21 reply threads

The support post ‘Disappearing registration’ 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