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 Profiles (Moderator: Dave Greenberg) »
  • Drupal user not created upon CiviCRM profile registration
Pages: [1]

Author Topic: Drupal user not created upon CiviCRM profile registration  (Read 1855 times)

illzoey

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 4.0.8
  • CMS version: Drupal 7.12
  • MySQL version: 5.1.61
  • PHP version: 5.3.10
Drupal user not created upon CiviCRM profile registration
April 17, 2012, 05:47:48 am
Hello!  I have searched the forums and the web in general, but I cannot seem to find the solution to my problem.  It seems like this should just work out of the box and I've tried every configuration option available, so I thought I'd put my ego aside and just ask.

I created a CiviCRM profile and would like to use it for registration of constituents so they can self-service the updating of their information within our database.  The profile has the following settings:

  • Used for: Profile, Drupal User Registration, View/Edit Drupal Account
  • Add new Contacts to a Group: Supporters (based on built-in "Individual" group)
  • Notify When Profile is Submitted: [my email address]
  • Drupal User Account Registration Option: Account creation required
  • What To Do Upon Duplicate Match: Allow duplicate contact to be created

I have also completed the follow other configurations:
  • For the fields, I have the first one as a Contact-Email-Primary.
  • I have set up a default "from" email address for the database.

I then took the HTML snippet and pasted it into a page on my website.  The page correctly shows the text field for the username (although the "check availability" doesn't seem to work.  It goes into "Checking..." but never returns.  Handle that later.)  I enter in the basics (username, first name, last name, email address) and submit.  I immediately get an email letting me know that a registration had taken place with the information I submitted in the body of the email.  I then check CiviCRM and see that the profile was created.  However, when I check Drupal, the only account that is still in the system is the admin account.  I also never receive an email as the registered user letting me know my auto-generated password to be able to log in.

This is a brand new installation in the CiviHosting environment, so very little has been done at this point, and I haven't customized any code.  I'm hoping there is just a simple configuration that I'm missing.

Thanks in advance for any help!!

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: Drupal user not created upon CiviCRM profile registration
April 17, 2012, 07:41:10 am

can u check and ensure that the q=civicrm/profile/create url works before u try the HTML snippet

If the former works, but not the latter, your short term fix might be to use the former.

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

illzoey

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 4.0.8
  • CMS version: Drupal 7.12
  • MySQL version: 5.1.61
  • PHP version: 5.3.10
Re: Drupal user not created upon CiviCRM profile registration
April 17, 2012, 11:01:15 am
Thanks for the reply!

When I attempt to use that feature, the username textbox doesn't show.  I filled out the form regardless and it produced the same results: CRM constituent record created, email to let me know a user registered, but no Drupal account created and I (as the registering user) never got a confirmation email with my password.


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: Drupal user not created upon CiviCRM profile registration
April 17, 2012, 11:59:37 am

You need to do that as an anonymous user, i.e. u cannot be logged in

and that is probably the main reason why the standalone html form will not work, i.e. it cannot detect that case and hence does not handle it very well

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

illzoey

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 4.0.8
  • CMS version: Drupal 7.12
  • MySQL version: 5.1.61
  • PHP version: 5.3.10
Re: Drupal user not created upon CiviCRM profile registration
April 17, 2012, 12:11:24 pm
Ah!  I knew it would be something simple that I was overlooking.  But yes, even logged out the HTML snippet redirects me to the Drupal /civicrm/profile/create page instead of simply creating the user.  Odd.  Do you know if this had ever worked?  I'll scan the issue tracker later, and if I don't find one, I'll submit this one regarding the HTML snippet not submitting registrations.

Thank you very much for your help!

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: Drupal user not created upon CiviCRM profile registration
April 17, 2012, 03:36:22 pm

Dont think the html snippet ever worked, since that section of the code needs to know if the user is logged in or not.

Seems like more of a feature request to the html snippet part (not sure how u'll do it either). Might want to consider asking your developer/consultant to investigate and potentially extend the code to support your needs

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

illzoey

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 4.0.8
  • CMS version: Drupal 7.12
  • MySQL version: 5.1.61
  • PHP version: 5.3.10
Re: Drupal user not created upon CiviCRM profile registration
April 18, 2012, 07:57:09 am
Good to know.  Thanks again for the guidance and info!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Drupal user not created upon CiviCRM profile registration

This forum was archived on 2017-11-26.