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 Multi-Site functionality »
  • Registering Drupal account on multiple websites.
Pages: [1]

Author Topic: Registering Drupal account on multiple websites.  (Read 1619 times)

robbiemc

  • I post occasionally
  • **
  • Posts: 66
  • Karma: 0
  • CiviCRM version: 4.5.0
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.37
  • PHP version: 5.3.28
Registering Drupal account on multiple websites.
April 26, 2012, 01:26:02 pm
Hi

I am still working on my single civi multi-site setup and thought I had cracked it until I discovered an issue with a user (member) attempting to register for more than one Drupal site.

I have 5 sites I want members to join whichever site they wish creating a civi record. I also need the funtionality for the user to be able to also register a Drupal account on site 2, site 3 etc so they can enable their profile, blog etc

Problem is when trying to register a Drupal account on site 2 the user gets the following error...email changed

Database Error Code: Duplicate entry 'xxx@xxx.com-1' for key 'UI_uf_name_domain_id', 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 ,  159 , 'xxx@xxx.com' ,  135 )  [nativecode=1062 ** Duplicate entry 'xxx@xxx.com-1' for key 'UI_uf_name_domain_id']
    [type] => DB_Error
    [user_info] => INSERT INTO civicrm_uf_match (domain_id , uf_id , uf_name , contact_id ) VALUES ( 1 ,  159 , 'xxx@xxx.com' ,  135 )  [nativecode=1062 ** Duplicate entry 'xxx@xxx.com-1' for key 'UI_uf_name_domain_id']
    [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 ,  159 , 'xxx@xxx.com' ,  135 )  [nativecode=1062 ** Duplicate entry 'xxx@xxx.com-1' for key 'UI_uf_name_domain_id']"]
)[/i]

Is this something to do with UF_match...?

Is there any setting, or code, I can change to enable an email to be able to point to multiple Drupal accounts...?

Cheers
Robbie

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Registering Drupal account on multiple websites.
April 26, 2012, 04:50:50 pm
Quote from: robbiemc on April 26, 2012, 01:26:02 pm
Is there any setting, or code, I can change to enable an email to be able to point to multiple Drupal accounts...?

I believe you need a CiviCRM multi-site setup: http://wiki.civicrm.org/confluence/display/CRMDOC41/Multi+Site+Installation

Or you might be able to use a shared Drupal user table. See ideas here: https://www.google.com/search?q=drupal+shared+user+table
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Multi-Site functionality »
  • Registering Drupal account on multiple websites.

This forum was archived on 2017-11-26.