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) »
  • Action "Create User" not working
Pages: [1]

Author Topic: Action "Create User" not working  (Read 969 times)

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Action "Create User" not working
June 08, 2012, 03:26:05 pm
I am using the back-office area to pull up a contact record, then click the "Action" button and selecting "Create User Record"

After filling in the user name and password, (email address is prepopulated and unchangable), I click "Add".  I get the error message:
"This email is already registered. Please select another email."

I have already queried the Drupal user table and verified there are no users with that email address.  Any ideas on what to investigate next?

BTW: I am running Drupal 6 + CiviCRM 4.1.2
Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Action "Create User" not working
June 11, 2012, 01:13:39 pm
I just verified the same problem on the Drupal 6 / 4.1 demo. However the function works fine on Drupal 7 / 4.1, so looks like it's a problem w/ that feature for Drupal 6 only. I think you'll need to add some debug instrumentation to figure out why it's failing / returning an erroneous error msg.

Looks like the relevant function to check is CRM_Core_BAO_CMSUser::create($params, 'email'); - which is called in postProcess by CRM/Contact/Task/Useradd.php

Please report back your findings (and hopefully a patch for the D6 functionality).
Protect your investment in CiviCRM by  becoming a Member!

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Action "Create User" not working
June 13, 2012, 06:03:05 am
Thanks for the help on which class to investigate. I will continue debugging the issue.
Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Action "Create User" not working
June 13, 2012, 05:54:48 pm
The function "CRM_Core_BAO_CMSUser::create($params, 'email');" never gets called.   Also, the folder "CRM/Contact/Task/" does not exist.
Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Action "Create User" not working
June 14, 2012, 11:10:37 am
Sorry - it's CRM/Contact/Form/Task/Useradd.php
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: Action "Create User" not working
June 14, 2012, 12:24:01 pm

seperate thread and issue here:

http://issues.civicrm.org/jira/browse/CRM-10380
http://forum.civicrm.org/index.php/topic,24460.0.html

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Action "Create User" not working

This forum was archived on 2017-11-26.