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 Drupal Modules (Moderator: Donald Lobo) »
  • http://drupal.org/project/sharedemail - module problem
Pages: [1]

Author Topic: http://drupal.org/project/sharedemail - module problem  (Read 867 times)

gibsonoliver

  • I post occasionally
  • **
  • Posts: 65
  • Karma: 2
    • Northbridge Digital
http://drupal.org/project/sharedemail - module problem
April 24, 2012, 07:24:32 am
Hi

I'm working with an organisation who have lots of clients with the same email address (but who all need a Drupal login). In many cases this is an email address shared across a family.

The Drupal shared email module (http://drupal.org/project/sharedemail) does what they need but it doesn't appear to be comptaible with Civi. When I enable the module, configure and test  (create a Drupal user where the email address already exists) the following error is given. The Drupal user is created but the Civi contact isn't. Is it possible to turn off Civi's requirement for unique emails? I've alredy changed the default individual static duplicate checking rules so email isn't part of the check.

"Database Error Code: Duplicate entry 'gibsonoliver@hotmail.com-1' for key 2, 1062
Additional Details:

Array
(
    [callback] => Array
        (
           
  • => CRM_Core_Error
  • [1] => handle
            )

       
Code: [Select]
=> -5
    [message] => DB Error: already exists
    [mode] => 16
    [debug_info] => INSERT INTO civicrm_uf_match (domain_id , uf_id , uf_name , contact_id ) VALUES ( 1 ,  634 , 'gibsonoliver@hotmail.com' ,  4529 )  [nativecode=1062 ** Duplicate entry 'gibsonoliver@hotmail.com-1' for key 2]
    [type] => DB_Error
    [user_info] => INSERT INTO civicrm_uf_match (domain_id , uf_id , uf_name , contact_id ) VALUES ( 1 ,  634 , 'gibsonoliver@hotmail.com' ,  4529 )  [nativecode=1062 ** Duplicate entry 'gibsonoliver@hotmail.com-1' for key 2]
    [to_string] => [db_error: message="DB Error: already exists" code=-5 mode=callback callback=CRM_Core_Error::handle prefix="" info="INSERT INTO civicrm_uf_match (domain_id , uf_id , uf_name , contact_id ) VALUES ( 1 ,  634 , 'gibsonoliver@hotmail.com' ,  4529 )  [nativecode=1062 ** Duplicate entry 'gibsonoliver@hotmail.com-1' for key 2]"]
)[/i]"
Oliver Gibson, Northbridge Digital

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: http://drupal.org/project/sharedemail - module problem
April 24, 2012, 07:30:51 am

Olly:

this use case is currently not supported. We use the email address to link between the drupal user record and civicrm cntact (since drupal does not collect first or last name)

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

gibsonoliver

  • I post occasionally
  • **
  • Posts: 65
  • Karma: 2
    • Northbridge Digital
Re: http://drupal.org/project/sharedemail - module problem
April 24, 2012, 07:36:31 am
Ok thanks Lobo, that makes perfect sense.

Olly
Oliver Gibson, Northbridge Digital

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • http://drupal.org/project/sharedemail - module problem

This forum was archived on 2017-11-26.