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) »
  • 3.1.4: Event registration doesn't find existing Contacts
Pages: [1] 2

Author Topic: 3.1.4: Event registration doesn't find existing Contacts  (Read 3700 times)

lsmithgo

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 2
    • Soirees at Breinton
  • CiviCRM version: 4.5 beta 7
  • CMS version: Joomla 3.3.3
  • MySQL version: MySQLi 5.5.37-percona-sure1-log
  • PHP version: PHP 5.3.28
3.1.4: Event registration doesn't find existing Contacts
May 05, 2010, 12:48:23 pm
I upgraded to 3.1.4 just before launching registrations for a new Event.  All online registrations are not syncing to existing Contacts but creating new Contacts.  That is, user fills in their details and a new Civi Contact is created for them rather than updating the exisitng contact details.
This worked on prior versions.  I have not knowingly changed anything else.
Anyone else seen this behaviour or know how to fix?

lsmithgo

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 2
    • Soirees at Breinton
  • CiviCRM version: 4.5 beta 7
  • CMS version: Joomla 3.3.3
  • MySQL version: MySQLi 5.5.37-percona-sure1-log
  • PHP version: PHP 5.3.28
Re: 3.1.4: Event registration doesn't find existing Contacts
May 05, 2010, 02:06:26 pm
I've been able to duplicate this error on the demo site with the following actions:

- log on
- create a user
- log off
- register that user for an event

there are now two users, not one

(do a full text search on "lionel" on the demo site and you will see what i did)

Lionel.

lsmithgo

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 2
    • Soirees at Breinton
  • CiviCRM version: 4.5 beta 7
  • CMS version: Joomla 3.3.3
  • MySQL version: MySQLi 5.5.37-percona-sure1-log
  • PHP version: PHP 5.3.28
Re: 3.1.4: Event registration doesn't find existing Contacts
May 07, 2010, 04:24:29 pm
Haven't got any responses on this, but as I am able to duplicate in the demo environment (and the bug is causing considerable inconvenience in my current live event registration), I have gone ahead and created an Issue in the system.

It is #6211:  http://issues.civicrm.org/jira/browse/CRM-6211

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: 3.1.4: Event registration doesn't find existing Contacts
May 07, 2010, 06:32:55 pm

if important to you please consider investigating and potentially fixing the issue (and contributing a patch). If you need help getting started, we can help out on IRC and/or read the developer section here: http://en.flossmanuals.net/CiviCRM/DevelopIntro

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

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: 3.1.4: Event registration doesn't find existing Contacts
May 07, 2010, 06:58:18 pm

also would be good if you can elaborate a bit on: (could not find lionel in either)

1. what demo site (drupal or joomla)

2. how did u create a user

3. what event u were registering for

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

lsmithgo

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 2
    • Soirees at Breinton
  • CiviCRM version: 4.5 beta 7
  • CMS version: Joomla 3.3.3
  • MySQL version: MySQLi 5.5.37-percona-sure1-log
  • PHP version: PHP 5.3.28
Re: 3.1.4: Event registration doesn't find existing Contacts
May 08, 2010, 05:24:52 am
Quote from: Donald Lobo on May 07, 2010, 06:32:55 pm

if important to you please consider investigating and potentially fixing the issue (and contributing a patch). If you need help getting started, we can help out on IRC and/or read the developer section here: http://en.flossmanuals.net/CiviCRM/DevelopIntro

lobo


Would like to help - but as a start, I looked at the fixes that were applied in 3.1.4 and couldn't find any that appear to have modified this code.  Are you aware of any?

lsmithgo

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 2
    • Soirees at Breinton
  • CiviCRM version: 4.5 beta 7
  • CMS version: Joomla 3.3.3
  • MySQL version: MySQLi 5.5.37-percona-sure1-log
  • PHP version: PHP 5.3.28
Re: 3.1.4: Event registration doesn't find existing Contacts
May 08, 2010, 05:27:03 am
Quote from: Donald Lobo on May 07, 2010, 06:58:18 pm

also would be good if you can elaborate a bit on: (could not find lionel in either)

1. what demo site (drupal or joomla)

2. how did u create a user

3. what event u were registering for

lobo

yes "lionel" appears to have been deleted now!

1.  I used the drupal one, though my site is joomla.  this shows its core CiviCRM that's at fault?

2.  created the user from the simple "new individual" dialogue on the main admin screen

3.  the event is no longer there, but I picked one that supported Pay Later

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: 3.1.4: Event registration doesn't find existing Contacts
May 08, 2010, 08:02:42 am

I tried it on drupal.demo.civicrm.org and was able to reproduce it :(

would be great if you can check the code and figure out why its not getting the existing contact

the most likely place to check is:

CRM/Event/Form/Registration/Confirm.php, line 968

Code: [Select]
            $dedupeParams = CRM_Dedupe_Finder::formatParams($params, 'Individual');
            $ids = CRM_Dedupe_Finder::dupesByParams($dedupeParams, 'Individual');

basically that should give the ID of the existing contact. it does not, and hence a duplicate is created :(

lobo

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

taiga

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
Re: 3.1.4: Event registration doesn't find existing Contacts
May 08, 2010, 10:47:52 pm
I can confirm this bug with 3.1.4. and drupal 6.16. I am using Selenium RC to test event registration submissions and for the identical user submitting multiple registrations to the same event, CiviCRM creates multiple contacts in the backend instead of updating the matched contact record. This indicates that the dedupe rules don't get triggered correctly.

This is a big problem that was not present in 3.0.4


lsmithgo

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 2
    • Soirees at Breinton
  • CiviCRM version: 4.5 beta 7
  • CMS version: Joomla 3.3.3
  • MySQL version: MySQLi 5.5.37-percona-sure1-log
  • PHP version: PHP 5.3.28
Re: 3.1.4: Event registration doesn't find existing Contacts
May 09, 2010, 05:08:55 am
Quote from: Donald Lobo on May 08, 2010, 08:02:42 am

the most likely place to check is:

CRM/Event/Form/Registration/Confirm.php, line 968

Code: [Select]
            $dedupeParams = CRM_Dedupe_Finder::formatParams($params, 'Individual');
            $ids = CRM_Dedupe_Finder::dupesByParams($dedupeParams, 'Individual');

basically that should give the ID of the existing contact. it does not, and hence a duplicate is created :(


I've checked in Confirm.php and there were some recent changes for 3.1.4 but reverting to a prior version of this source file does not fix the error.

There have been no changes in CRM\Dedupe\Finder.php since 3.1.2 which was the last version that I used that did not have this bug

Therefore I think there must be some data corruption happening elsewhere?  Or a bug elsewhere?

Lionel.

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: 3.1.4: Event registration doesn't find existing Contacts
May 09, 2010, 07:54:09 am

you will need to debug and trace the root cause of the error. please keep us updated on your progress

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

taiga

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
Re: 3.1.4: Event registration doesn't find existing Contacts
May 09, 2010, 10:14:09 pm
How do you put a backtrace on a form submission? I think one can add &backtrace=1 to a URL, but within a multi-page form context there is no place I can append this backtrace flag. Do you mean I should add this php function call var_dump(debug_backtrace()); on each consecutive Form template that passes the data along to the next form page?

Is there a global switch I can toggle which will turn on debug_backtrace for all civicrm module page views?

Thanks,

Taiga
« Last Edit: May 09, 2010, 10:18:40 pm by taiga »

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: 3.1.4: Event registration doesn't find existing Contacts
May 11, 2010, 04:15:41 am
Currently dedupe functionality is broken. It fails when there is no logged in user,
Asap we'll fix it and will provide the patch.

thanks for your pointers and updates  :)

kiran
You Are Designed To Choose... Defined By Choice.

taiga

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
Re: 3.1.4: Event registration doesn't find existing Contacts
May 11, 2010, 12:27:13 pm
Hi there,

is there a canonical method within Jira to get a list of all patches since a minor version release? Right now I discover a bug, search the forums, find a link to Jira and download that patch individually and apply it manually.

Thanks,

Taiga


lsmithgo

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 2
    • Soirees at Breinton
  • CiviCRM version: 4.5 beta 7
  • CMS version: Joomla 3.3.3
  • MySQL version: MySQLi 5.5.37-percona-sure1-log
  • PHP version: PHP 5.3.28
Re: 3.1.4: Event registration doesn't find existing Contacts
May 11, 2010, 03:05:53 pm
Quote from: Kiran Jagtap on May 11, 2010, 04:15:41 am
Currently dedupe functionality is broken. It fails when there is no logged in user,
Asap we'll fix it and will provide the patch.


Fantastic, glad to hear that you know what the problem is and will fix it.

I tried to follow lobo's prompting but haven't had much success debugging this myself - cannot get the php debugger installed successfully  :'(

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • 3.1.4: Event registration doesn't find existing Contacts

This forum was archived on 2017-11-26.