CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • "Oops, you've already registered"
Pages: [1]

Author Topic: "Oops, you've already registered"  (Read 4241 times)

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
"Oops, you've already registered"
April 08, 2008, 08:10:20 am
I'm getting weird behavior on an event registration. Whenever someone goes to the event registration page, they're getting the "oops, you've already registered" message -- even if they are not logged in and have not actually registered yet.

The form has worked find thus far, though I just did an upgrade to 2.0.2 on this yesterday, so I suspect it's related. I cleaned the cache folders and ran the session cleanup, but it's still occurring.

-Brian
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: "Oops, you've already registered"
April 08, 2008, 08:58:54 am
Ok, it's not a bug/error. It's intentional... but problematic.

CRM/Event/Form/Registration/Register.php is the file that checks for whether the user has already registered. If so, it redirects to the info page and does not let the user go to the registration page. Looks like the check is done on the users email address and/or session id.

I see two scenarios that are problematic:

1) A user needs to register multiple people for an event. With the current structure, that's done by going into the reg form multiple times. Problem is that they never get a chance to arrive at the reg form a second time. (This was my situation)

2) Someone else uses the same computer to register for the event. Because the session ID is remembered on that computer/browser, they also never get a chance to arrive at the reg form a second time.

Not sure the best way around this. Even with the multi-reg tools anticipated in v2.1, the second scenario could remain an issue.

For my purposes, I commented out the redirect and altered the status text to alert the person that they may be registering a second time and that if they do continue with the registration, they should be sure to use a different email address.

It is possible that there was something going on with the script -- according to staff, they were getting calls from people who had definitely not registered for the event previously, but were getting the message.

-Brian
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: "Oops, you've already registered"
April 08, 2008, 02:25:05 pm

1. the user should register multiple people as anonymous, i.e. he/she should not be logged in. Any operation done as a logged in user is assumed to be done for the corresponding contact record. this is an assumption CiviCRM makes in all operations.

2. There was a bug in 2.0.1 which did not reset the event session for anonymous users. this has been fixed in 2.0.2. If you think this is still an issue, can you please reproduce on demo.

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: "Oops, you've already registered"
April 08, 2008, 02:39:41 pm
Looks like the event session reset for anon users is not fixed yet in 2.0.2.

On the Joomla demo, complete the "Workshop Demo" event. Then return and try to complete it again.

-Brian
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: "Oops, you've already registered"
April 08, 2008, 02:58:55 pm

we had not upgraded the joomla demo in some time. i just did an svn update, so can you please try again :) You might need to clear out your cookies for the site to ensure u start with a clean session (i also deleted all session files to be extra safe!)

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: "Oops, you've already registered"
April 08, 2008, 03:05:49 pm
Looks like it's fixed on the sandbox. You don't get the "Oops" message until after you enter your email address and it checks to see if you're already registered.

The behavior I found was on a 2.0.2 upgrade that I did yesterday. So it looks like that fix didn't make it into that version (FYI).
-Brian
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: "Oops, you've already registered"
April 08, 2008, 03:12:54 pm

if on an upgrade, did you clean out all anon sessions. I'm pretty sure this made it into 2.0.2, not too many changes in code base since 2.0.2

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: "Oops, you've already registered"
April 08, 2008, 03:29:16 pm
Yes, I cleaned everything out after the upgrade. I had a lot of users experience the problem, so I'm pretty sure it exists. But I'll go back and check on another installation of 2.0.2.

-Brian
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: "Oops, you've already registered"
April 08, 2008, 05:51:24 pm
Lobo,
Just ran a test on a J1.5.2+2.0.2 and J1.0.13+2.0.2 and the issue was replicated on both.
-Brian
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: "Oops, you've already registered"
April 08, 2008, 06:22:03 pm
Hmmm....

I file compared from SVN (13900). There are revisions to checkRegistration function in CRM/Event/Form/Registration/Register.php and also to CRM/Event/PseudoConstant.php. If I backport those revisions, it let's the anonymous user register. However, it does not stop the same email address from registering (the stop is supposed to happen after the user submits the reg form). So it looks like there are other revisions impacting it.

Oh well. It's not that critical to me. I can wait.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

seanick

  • Guest
Re: "Oops, you've already registered"
April 15, 2008, 09:38:34 am
This, I think, is what's sending my users to a blank page as opposed to a pre-defined page.  Is there anyplace I can comment the sessioning out until it's fixed? 

Besides, isn't there error-checking on the email address so that they can't re-register through there?

Second besides, what if someone wants to use the same machine to register, won't this screw things up anyway?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: "Oops, you've already registered"
April 15, 2008, 10:34:52 am

There was another bug related to this: http://issues.civicrm.org/jira/browse/CRM-2981

this was most likely the cause for lcdweb's issues. This is now fixed and will be part of 2.0.3

for folks who cannot wait, the patch is here: http://biryani.osuosl.org:8181/changelog/CiviCRM/branches/v2.0?cs=13964

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

seanick

  • Guest
Re: "Oops, you've already registered"
April 15, 2008, 05:16:34 pm
So, problem -- this darn thing doesn't work with IE7... At all.  At least, with a Drupal install.

If the event gets maxed out: ie7 displays "operation aborted" when downloading some image related to dojo (best I could see was it came from this location: /packages/dojo/form/templa (taht's all I can see).

It hits this image and hangs IE. 

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: "Oops, you've already registered"
April 15, 2008, 06:54:46 pm
Please start a new topic for your issue and take some time to provide details on the problem (for example - what does "If the event gets maxed out" mean??). If you can recreate the problem behavior with IE7 on the public demo - http://drupal.demo.civicrm.org - we are most likely to be able to help out.

Protect your investment in CiviCRM by  becoming a Member!

seanick

  • Guest
Re: "Oops, you've already registered"
April 15, 2008, 06:57:09 pm
These all appear related, but I will go back to the one I've already opened.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • "Oops, you've already registered"

This forum was archived on 2017-11-26.