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 »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • new Drupal user not created when CiviCRM Member profile is submitted
Pages: [1]

Author Topic: new Drupal user not created when CiviCRM Member profile is submitted  (Read 5076 times)

sgthomas

  • Guest
new Drupal user not created when CiviCRM Member profile is submitted
May 21, 2008, 03:44:59 pm
This is my first post to the forums, and the first time my company's used CiviCRM, so it's possible this is a newbie question -- we've done a number of Google searches and haven't been able to find an existing thread in these forums or elsewhere, but apologies in advance if I've just searched on the wrong keywords:

We're in the process of building a Drupal 5.7 site, and have installed CiviCRM 2.0.3. We've created a CiviCRM member profile where "Drupal user account registration option?" is selected in the settings, and afterwe submit test member registrations we're able to see the new records in CiviMember and the email addresses used for testing receive a confirmation of membership -- but when we check the Drupal user list, no new users have been created, and no email notifications with Drupal username/password ever arrives at the test addresses.

By contrast, when we create a user via the Drupal admin area, bypassing the CiviCRM registration process detailed above, we're displaying the CiviCRM profile fields as well as the standard Drupal fields (username, password etc) on the Create User page -- and when we view a Drupal user there we do see at least one of those fields (primary email) populated. When we go to CiviMember after creating a new Drupal user, a CiviCRM contact record is displayed for the new Drupal user. So it seems like data is being passed from Drupal users to CiviCRM contacts, but not in the reverse direction.

When we installed CiviCRM we created a new database for it (which was recommended), rather than using the existing Drupal database -- perhaps there needs to be a shared db for Create Drupal Contact to work properly? Or maybe we've missed a step where we map CiviCRM fields to Drupal fields? Any and all suggestions greatly appreciated!

Regards,

Sean Thomas
HyperArts Web Design

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: new Drupal user not created when CiviCRM Member profile is submitted
May 23, 2008, 06:07:44 pm
Hi Sean- and welcome!

Have CiviCRM and Drupal in separate databases is definitely fine and recommended.

Are you seeing the checkbox w/ the "Create an account?" option when the Profile is displayed?

... and have you verified the following (as noted on the Profile Settings form):
"This feature requires the 'Email Verification' option to be checked (Drupal User Settings). In addition, you must include a Primary Email Address field in the profile."

If this doesn't resolve your issue - please see if you can recreate the problem by setting up a similar profile on the public 2.0 demo at http://drupal.demo.civicrm.org
Protect your investment in CiviCRM by  becoming a Member!

sgthomas

  • Guest
Re: new Drupal user not created when CiviCRM Member profile is submitted
June 03, 2008, 11:41:02 am
Hi Dave:

Thanks for the reply -- took us a while to get back to this, but we followed your suggestions and here's what we found:

We do indeed see the checkbox for the "Create an account?" option in the Profile, which in turn displays a username field when selected. We've also confirmed that email verification is enabled in the Drupal settings.

When we went into the demo site to recreate the bug, we took the following steps:

1. We created a new profile called "Test Membership at http://drupal.demo.civicrm.org/civicrm/admin/uf/group/field?reset=1&action=browse&gid=2. We didn't use all the profile fields as are on our own site's profile,but used first name, last name, and primary email -- we're assuming that primary email is the one that is required to create a new Drupal user record.

2. We then created a new payment processor using the Dummy Payment Processor type with username dummy and Site URL http://www.hyperarts2.com/ filled out in the "Processor Details for Test Payments" section. However, I believe this payment processor has since been deleted on the demo site.

3. We created a new Contributions page called "Testing Membership"
at http://drupal.demo.civicrm.org/civicrm/contribute/manage?reset=1&action=update&id=3

4. We filled out the membership form, and created new members  but none of them were created as users in Drupal -- nor did we receive an email confirmation of our new CiviCRM membership, although when we checked the CiviCRM members list we saw those test users listed:

http://drupal.demo.civicrm.org/civicrm/contact/view?reset=1&cid=105
http://drupal.demo.civicrm.org/civicrm/contact/view?reset=1&cid=108
http://drupal.demo.civicrm.org/civicrm/contact/view?reset=1&cid=117

5. We then changed the Payment Processor used to the PayPal Professional, and added the data that was in the Test Drive section to the "Processor Details for Live Payments" section (on the Payment Processor page), and tried again. This time we had some success: we received an email from Drupal that a new user was created,and we were able  to successfully log in. The user in question can be found at http://drupal.demo.civicrm.org/user/3 -- however, we're not seeing that user in the CiviCRM member database; it's possible we may have accidentally deleted the membership record, but we don't recall specifically doing so. Is it possible to check the logs and determine whethter there was a CiviMember record deleted on that day, or whether it was just never created?

(We also just noticed that we completed the CiviCRM membership form when we were logged in as user demo, so when you view demo's info at http://drupal.demo.civicrm.org/user/2 you'll see our test info there as well -- feel free to delete this data.)

6. We tried to replicate step 5 (including the Payment Processor info) on our own staging site, but had no luck. We realized that we had included a separate contribution amount field on the Demo site Contribution page, so we took that away from the Demo site Contribution page to see if that had some affect on the success of the Drupal user account creation, but were still unable to create a new user. We added that field back to the form on the Demo site, but still had no success in replicating the creation of the Drupal user account when submitting the membership form.

So the questions we have at this point are:

* When we created the test user, did we inadvertently overwrite an existing user account, or was http://drupal.demo.civicrm.org/user/3 a truly "new" Drupal user? When trying to create a Drupal user previously through same process on our own test site, we somehow overwrote an existing Drupal record; at the time we thought we may have tested using a browser that had cached login credentials for that user, but also wondered whether there might be a lack of synchronization between CiviCRM and Drupal's user db, in that it tried to create a new Drupal user when the new CiviCRM member record was written, but somehow didn't increment from the right Drupal UID when doing so and overwrote an existing user.

* Would the fact that we didn't receive any email notifications of CiviCRM membership registration indicate that the SMTP configuration on the demo site just isn't completed for the CiviCRM modules? We're assuming that's the case, since the records did show up in the Recent Memberships area of http://drupal.demo.civicrm.org/civicrm/member?reset=1, but want to make sure we're not overlooking a larger issue.

* Finally, given that our only success in creating a Drupal user was by putting the data into the Processor Details for Live Payments section of the Paypal Professional payment processor, are there known issues with creating a Drupal user when entering data in either the Processor Details for Test Payments area, or more generally in using the Dummy Payment Processory type?

Thanks in advance for any insight you can provide!

Sean

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: new Drupal user not created when CiviCRM Member profile is submitted
June 04, 2008, 08:12:52 am
The public demo is configured to send emails into a "black hole" to prevent anyone using it to spam - so you won't receive email notifications / receipts etc.

I noticed that you had configured a $0.00 contribution amount as a required field - which I suspect might mess things up a bit.

You probably should simplify your setup a bit so we can narrow down what's going on:
- only include the Membership Block without any additional Contribution Amounts block
- do a few test-drives without a profile - just testing that you can do a test-drive as an anonymous user with the Processor you want to use when u go into production - and making sure you get the emailed receipt and that the contact, test membership and test contribution records are all created
- then add in a Profile w/ the "Create Drupal Account" option and one or two fields, and try again.

Remember that the "create account" option will only display to anonymous users - if you're logged in then you already have an account and don't need to create one :-)
Protect your investment in CiviCRM by  becoming a Member!

colorado

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
Re: new Drupal user not created when CiviCRM Member profile is submitted
November 04, 2008, 07:56:31 pm
I am having this exact same problem. Has anyone found a fix?

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: new Drupal user not created when CiviCRM Member profile is submitted
November 05, 2008, 06:23:24 am

Did you try this on demo and see if it works as you expect there?

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

colorado

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
Re: new Drupal user not created when CiviCRM Member profile is submitted
November 05, 2008, 07:44:58 pm
Thanks for the quick reply Lobo,

The 2.0 demo site at the link above appears to be CiviCRM 2.1

I'm using 2.0.6 and Drupal 5.7

Is there a 2.0 demo site?
« Last Edit: November 05, 2008, 07:59:28 pm by colorado »

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: new Drupal user not created when CiviCRM Member profile is submitted
November 05, 2008, 07:55:21 pm

There is no 2.0 demo site (since we only support the latest version)

However it is possible that the issue also exists in 2.1 (we did not make too many changes to that code). so giving it a shot in 2.1 will help

if u r a new user to civicrm, we strongly encourage you to use 2.1 (and drupal 6)

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

tim

  • Guest
Re: new Drupal user not created when CiviCRM Member profile is submitted
February 18, 2009, 05:33:54 pm
Hi Lobo, I encounter the same problem. I was trying to configure a free membership sign up. Everything was fine except that the user was not created in drupal after they sign up. I'm using CiviCRM 2.0 and drupal 5.12

Pls advise. Thanks.


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: new Drupal user not created when CiviCRM Member profile is submitted
February 18, 2009, 05:40:05 pm

sorry, we dont support 2.0 any more.

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

tim

  • Guest
Re: new Drupal user not created when CiviCRM Member profile is submitted
February 18, 2009, 05:44:33 pm
I understand.. but i just can't figured it out since yesterday. I did some research but no luck. I don't have other place to go but here.
You mentioned also that there's not much changed on upgrade version?  The site was build in drupal 5 that's why i used the 2.0 also.

Thanks for quick reply.
« Last Edit: February 18, 2009, 05:46:16 pm by tim »

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: new Drupal user not created when CiviCRM Member profile is submitted
February 18, 2009, 09:44:21 pm
Hey - do you have "Visitors can create accounts and no administrator approval is required." selected at xxx/admin/user/settings
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

tim

  • Guest
Re: new Drupal user not created when CiviCRM Member profile is submitted
February 18, 2009, 10:38:21 pm
Hi peterd,

I've checked that one already. but still no luck. I've browse the forum and it seems bug for 2.0 
I even create "primary email" on profile since it's a requirement. i still encounter the same thing.

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: new Drupal user not created when CiviCRM Member profile is submitted
February 19, 2009, 02:34:41 am
Pretty sure we had it running fine on 2.0 - once we overcame some reluctance to reset the user/settings. Not sure what else to suggest.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

tim

  • Guest
Re: new Drupal user not created when CiviCRM Member profile is submitted
March 13, 2009, 06:49:19 am
hi peterd, what version are you running? is it exactly the civiCRM 2.0   or the 2.0.x.x  ?

thnx again..

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • new Drupal user not created when CiviCRM Member profile is submitted

This forum was archived on 2017-11-26.