Posted: August 10, 2012 at 10:13 pm
I’ve seen this a couple of times, and yet I do not know how to duplicate this issue. I have registered to an event and for some reason the field information appears twice but the values in the fields are unique. Here is a print screen. The Prénom “asdf” is from some test I had previously made with this event. What I did in this example is add a registration for Bob Test. Why and where does this asdf come from? Before registering Bob Test to this event, I had no participants registered to event ID #111-502…… Help please, this has also happened to other registrants in my database. |
|
|
If you can take a look in the wp_events_answer table and look for the attendee_id for Bob Test and see if it is the same attendee_id for asdf asf, that might help narrow down the problem. |
You are correct, the attendee_id is the same for Bob Test and asdf asf. Can I simply delete the unwanted records from this table? Do I need to delete those ID’s in other EE tables? Do you have an idea why this type of situation occurs? The interesting thing is that the registration ID for asdf asf is in this format 4ea3a6c7284052.98956803 whereas the one for Bob Test is 111-5025d4319b3bd. Is it because the deletion didn’t work well in previous versions? |
|
Maybe it simply has something to do with the next numbering being assigned to users when they register. If it’s the case, I could manually push that next number greater than my last attendee_id number in order to avoid duplication. Is it possible to do that? |
|
|
The id field in the attendee table should be tagged as UNIQUE and AUTO-INCREMENT in the db, so it shouldn’t be able to duplicate that. |
|
Hey,
That will be in the next update, but you can manually change it right now. That will prevent the error from occurring moving forward, but you may have to do some manual db row pruning if you see the effects of past errors. |
Thanks Sidney for the code, but I just want to make sure I understand the code well. It seems this forum converted some values incorrectly. If I replace > by > and %d by $del_id will I have the correct code? |
|
Thanks Sidney for the code, but I just want to make sure I understand the code well. It seems this forum converted some values incorrectly. If I replace
|
|
Here is the final output |
|
Sidney, I happened to test the delete functionality today with the new code you posted and the deletions did not work. The tables I have in my database do not end with _TABLE For example you have EVENTS_ATTENDEE_TABLE but in my database I have EVENTS_ATTENDEE, is this normal? |
|
Yes, that’s normal. EVENTS_ATTENDEE_TABLE will connect to the table named events_attendee. |
|
The support post ‘Registration information is doubled’ 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.