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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Custom profile - deduplication not happening
Pages: [1] 2

Author Topic: Custom profile - deduplication not happening  (Read 7156 times)

jyotirmaya

  • Guest
Custom profile - deduplication not happening
May 03, 2007, 01:22:48 pm
Hi,

I created a standalone profile form for visitors to my website to sign up to receive a newsletter.
The form works fine and enters the user and data into civicrm, as well as adding the new contact to the correct group (newsletter subscribers)

However, what I am finding is that this method of contact entry doe snot trigger deduplication in Civicrm - i.e it allows duplicates to be inserted. I have tried changing the dedupe criteria from firstname, lastname, email, to just lastname and email - still seems to allow dupes in.

Am using drupal 4.7 and civicrm 1.7 (9239)

Am I doing something wrong??

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: Custom profile - deduplication not happening
May 03, 2007, 02:06:35 pm

1.7 has a features that allows u to suppress duplicates:

    Should we update the contact on a duplicate match?
 
if that feature is enabled, we suppress the dupe check. can u check and make sure it is not enabled

If this is still an issue, can u please reproduce on demo.civicrm.org and if reproducible, file an issue

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

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Custom profile - deduplication not happening
May 03, 2007, 02:07:10 pm
If your profile includes first name, last name and email - it should EITHER complain that contact already exists on a duplicate submit OR - if the Profile Setting under "Advanced Settings" for "Should we update the contact on a duplicate match?" is checked - it should update a matching contact.

If this is NOT the behavior you're seeing - please set up a profile with the same fields on our demo server and see if you can replicate the problem. If so, file an issue in our issue tracker. (I just tested this with our sample Name and Address profile - after adding Email to it - and both cases worked as expected.)
Protect your investment in CiviCRM by  becoming a Member!

jyotirmaya

  • Guest
Re: Custom profile - deduplication not happening
May 03, 2007, 02:40:35 pm
Should we update the contact on a duplicate match?" is definitely checked - will try to replicate on your demo site...(as well as making sure one more time on my site)

jyotirmaya

  • Guest
Re: Custom profile - deduplication not happening
May 03, 2007, 03:08:20 pm
something more - When I am logged in to drupal and I submit the form, it finds that I allready have a civicrm record and updates that record accordingly. However, if I am not logged in to drupal, and am submitting as an anonymous user, the deduplication doesn't occur and a new civicrm user is created. If I then log in and check for duplicates, civicrm finds the duplicate entries.

Will try to replicate on the demo site now.


jyotirmaya

  • Guest
Re: Custom profile - deduplication not happening
May 03, 2007, 03:17:48 pm
hmmm- demo/demo not working on demo.civicrm.org?????

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: Custom profile - deduplication not happening
May 03, 2007, 04:08:29 pm

can u clear your cookie and cache. its a wierd drupal issue and we hoped the move to 5.1 fixed it. Guess not :( We'll investigate more

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: Custom profile - deduplication not happening
May 03, 2007, 04:22:49 pm

I think i've fixed the problem and made sure that the cookie name is something other than PHPSESSID (u can do this in drupal settings.php). Since we are running multiple drupal websites off civicrm.org this might be an issue

not 100% sure, but hopefully this is no longer an issue :)

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

jyotirmaya

  • Guest
Re: Custom profile - deduplication not happening
May 04, 2007, 01:03:07 am
I cleared my cookies (in Firefox) and tried to sign up for my newsletter as an anonymous user again  (not logged in to drupal) - it still created a duplicate record

am using drupal 4.7 - I noticed the cookie name was phpsessid. - I will try to make the change in settings.php

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Custom profile - deduplication not happening
May 04, 2007, 06:49:00 am
Pretty sure that the session cookie issue is related to problems logging in to drupal - and not related to the duplicate contact insert problem you are trying to resolve.

Exactly what fields are included in your Newsletter Profile signup? Note that the fields you've configured under "Administer CiviCRM >> Duplicate Matching" need to be present in your Profile in order for the dedupe logic to work properly.

Can you create a profile with that same set of fields on demo and then replicate the behavior?
Protect your investment in CiviCRM by  becoming a Member!

jyotirmaya

  • Guest
Re: Custom profile - deduplication not happening
May 04, 2007, 09:27:09 am
Okay - I managed to create a similar newsletter signup profile on the demo site.
I create a standalone form and have created the page with this form on in my website http://www.amurt.org.uk/node/43
I then try to submit the form - and it says "status
    Thank you. Your information has been saved."

However - I do not see the user appear on the demo.civicrm database.........

jyotirmaya

  • Guest
Re: Custom profile - deduplication not happening
May 04, 2007, 09:36:16 am
okay - managed to get this working now - and on the demo site - their is NO duplication happening.

so I guess you guys are running drupal 5.1 as opposed to my 4.7 - does this mean I need to upgrade to drupal 5.1 to stop the error happening???

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Custom profile - deduplication not happening
May 04, 2007, 10:57:31 am
I tried your stand-alone form posting to our demo, and it seems like it is working as expected. We are running Drupal 5.1 on the demo. If the exact same profile setup does NOT work on your 4.7 Drupal install - then this sounds like a bug, so please post an issue on our Issue Tracker with specifics on your profile settings and fields (link in header on top of these pages). (Of course you might want to update to Drupal 5.1 anyway as it is much cooler than 4.7  :D ).
Protect your investment in CiviCRM by  becoming a Member!

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: Custom profile - deduplication not happening
May 04, 2007, 11:25:56 am

I'd highly recommend you to upgrade to 5.1. Its the future for drupal :) (and CiviCRM)

If i had to guess, i think its highly unlikely it is the drupal version difference. It most likely is some setup that is different between your site and the demo. A few things to check:

1. Is your site running php5?
2. Are the dupe match rules the same?

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

jyotirmaya

  • Guest
Re: Custom profile - deduplication not happening
May 05, 2007, 12:39:04 am
php is still in version 4 with my server hosts - although I think I could run it with version 5 by changing my .htaccess file - will try that.
The dupe match rules were the same, then I actually lowered the criteria on my site to be just last name and email address - with the same result.

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Custom profile - deduplication not happening

This forum was archived on 2017-11-26.