Confirmed registration with 0 registrants

  • Winston Baccus
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 3 months ago #57250 by Winston Baccus
Confirmed registration with 0 registrants was created by Winston Baccus
I've had 3 reports this morning from people who have gotten through to the confirmation stage where they get the email, but it comes back saying Number of registrants: 0.

Please Log in or Create an account to join the conversation.

  • Winston Baccus
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 3 months ago #57254 by Winston Baccus
Replied by Winston Baccus on topic Confirmed registration with 0 registrants
I talked with one of the people who tried to register and it seems they don't get to the payment phase. They hit submit and it doesn't pass off to Authorize, it just sends them the receipt with 0 registrants.

Please Log in or Create an account to join the conversation.

More
9 years 2 months ago #57305 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Confirmed registration with 0 registrants
Seems session was lost during the registration and the record is not saved properly. Could you please ask them try to register to see whether they can complete the registration ?

Tuan

Please Log in or Create an account to join the conversation.

  • Winston Baccus
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 2 months ago #57329 by Winston Baccus
Replied by Winston Baccus on topic Confirmed registration with 0 registrants
I can. I had a couple of people try a couple of times and they got the same result.

Is that a case of them starting to register and then going away for a while and then coming back to finish it?

Please Log in or Create an account to join the conversation.

More
9 years 2 months ago #57338 by george
Replied by george on topic Confirmed registration with 0 registrants
Hello, I have the same problem on my side too...

Group registrations, with 0 participants on the admin.

the cost for the registration is 0, so no payment is used (left to offline)

the user on his side, when he completes the registration views the confirmation page perfectly.

Tuan, I have increased the session time to 3 hrs... so I don't think that this is the problem. Could it be that the DB connection gets lost on multiple registrations?

Thanks...

Please Log in or Create an account to join the conversation.

More
9 years 2 months ago #57339 by george
Replied by george on topic Confirmed registration with 0 registrants
Just a hint... On the admin the only thing stored is the group info. None of the members. And I get a 0 participants field.

On the frontend, I think that this behaviour is controlled on:
Code:
function processGroupRegistration($data) { jimport('joomla.user.helper'); $app = JFactory::getApplication(); $session = JFactory::getSession(); $user = JFactory::getUser(); $db = JFactory::getDbo(); $config = EventbookingHelper::getConfig(); $row = JTable::getInstance('EventBooking', 'Registrant'); $numberRegistrants = (int) $session->get('eb_number_registrants', ''); .... }

After that, group info is stored, and if $numberRegistrants>0 you move on to registering them. Is it possible that this session variable gets lost? (thus considered as 0)

Please Log in or Create an account to join the conversation.

More
9 years 2 months ago #57345 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Confirmed registration with 0 registrants
Yes, that's what I am thinking about, session is lost for some reasons. So you can see this issue on your site when you test it ?

Tuan

Please Log in or Create an account to join the conversation.

More
9 years 2 months ago #57424 by george
Replied by george on topic Confirmed registration with 0 registrants
Tuan, I have compared your group registration code, with a previous version of event booking: Instead of saving to the database each member's data, and retrieving them to set up the group data, now you save each member's data on a session, save first the group's data and use the session for the members.

On my Joomla config, I use the database as the session handler.

From what I can tell, the session data isn't written to the database until the script has terminated. This means that if a second script starts running before the first finishes it would load the session data without the new values since it hasn't been written to the database yet.

This doesn't apply to file sessions.

I have changed it, and I am waiting for a registration.

Please Log in or Create an account to join the conversation.

  • Winston Baccus
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 2 months ago #57430 by Winston Baccus
Replied by Winston Baccus on topic Confirmed registration with 0 registrants
I tried it twice a few days ago with no issue.

HOWEVER, I tried today and I see what the issue is. There was no payment form at all. Just my billing info. When I filled it out, I got the 0 registrants error.

So the problem seems to be that the payment form is sometimes not showing up.

Please Log in or Create an account to join the conversation.

More
9 years 2 months ago #57450 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Confirmed registration with 0 registrants
@Winston: Could you try the solution which George mentioned:

On my Joomla config, I use the database as the session handler.

From what I can tell, the session data isn't written to the database until the script has terminated. This means that if a second script starts running before the first finishes it would load the session data without the new values since it hasn't been written to the database yet.

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc