Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-20019

Wordpress user creation fails with on behalf membership

    Details

    • Type: Bug
    • Status: Open
    • Priority: Important
    • Resolution: Unresolved
    • Affects Version/s: 4.7.16
    • Fix Version/s: None
    • Component/s: CiviMember
    • Labels:
      None
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding
    • Verified?:
      Yes

      Description

      Frontend contribution form with On behalf of membership and wordpress user creation throws fatal error:

      ```
      Database Error Code: Duplicate entry 'test@test.com-1' for key 'UI_uf_name_domain_id', 1062
      Additional Details:

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

      [code] => -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 , 4 , 'test@test.com' , 207 ) [nativecode=1062 ** Duplicate entry 'test@test.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 , 4 , 'test@test.com' , 207 ) [nativecode=1062 ** Duplicate entry 'test@test.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 , 4 , 'test@test.com' , 207 ) [nativecode=1062 ** Duplicate entry 'test@test.com-1' for key 'UI_uf_name_domain_id']"]
      )

      ```

      It seems this has been a problem in the past: https://issues.civicrm.org/jira/browse/CRM-19172

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              alifrumin Alice Frumin
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: