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 CiviContribute (Moderator: Donald Lobo) »
  • Drupal account not being created via profile contribution page
Pages: 1 [2] 3

Author Topic: Drupal account not being created via profile contribution page  (Read 10444 times)

reynog

  • Guest
Re: Drupal account not being created via profile contribution page
July 28, 2008, 04:01:42 pm
This is really weird.  I put a debug statement as the first line in the processContribution(...) method in CRM/Contribute/Form/Contribution/Confirm.php.  I also included exit() immediately after the debug statement.

I STILL did not get any debug info on-screen or in the log.

I began to wonder if processContribution isn't called when there is no monetary payment involved with the contribution page.  I noticed I didn't mention that in my previous posts.  My contribution page is for membership-only with no payment required.

Daragh- can you confirm if your contribution page includes an actual payment or not?

I searched for all references to the processContribution method, and I see it's called from a number of places... but barely knowing the codebase, I can't determine if any of those code locations would apply to my situation (no payment).

(Though this doesn't explain why it works on the sandbox)
« Last Edit: July 28, 2008, 04:05:10 pm by reynog »

reynog

  • Guest
Re: Drupal account not being created via profile contribution page
July 28, 2008, 05:20:19 pm
Hold the presses... I tried recreating the scenario on drupal.demo again, and this time the user record was NOT created.  So, now I'm not sure if I was right the first time I tried it or this last time.

I have to go out, but will try again as soon as I can.  Daragh, maybe you can also try recreating it on drupal.demo, as a sanity check for me.

DaraghOBrien

  • Guest
Re: Drupal account not being created via profile contribution page
July 29, 2008, 08:28:33 am
Reynog

The membership I was using in my site was a test membership  with no payment.

I'll try to recreate on Drupal.demo now...

DaraghOBrien

  • Guest
Re: Drupal account not being created via profile contribution page
July 29, 2008, 09:03:53 am
Right-eo, I've set up a test profile and a test contribution page (they have my initials or my name appended to them for identification) and I've signed up for a freebie membership (choir), with the email going to my work email address. Civicrm id is 420

No emails in yet, but the firewall may be slowing things on my side. I've also created a second test user with one of my personal email addresses, CiviCRM ID is 421.

reynog

  • Guest
Re: Drupal account not being created via profile contribution page
July 29, 2008, 10:18:26 am
Looks as though the Drupal user accounts were definitely not created for the two test submissions you did.  If you view the contacts (420 & 421) the "View User Account" link does not show for either of them.

Seems like we may have a legitimate bug here?

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 account not being created via profile contribution page
July 29, 2008, 11:25:52 am

Can you also test and verify to see if this issue exists on sandbox.civicrm.org

we've upgraded the drupal version on demo to the latest since we last did any major tests, so that might have potentially broken it.

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

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 account not being created via profile contribution page
July 29, 2008, 12:10:57 pm

I did a quick test of this on 2.0.

Seems like it does work on Drupal 5.9 for contribution pages, but does not work for the membership page. If you'll can reproduce this on sandbox and file an issue, we'll take care of it for 2.1 (and folks can backport the fix to 2.0)

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

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 account not being created via profile contribution page
July 29, 2008, 03:13:22 pm

This is a bug and is filed here: http://issues.civicrm.org/jira/browse/CRM-3362

We expect to fix it sometime this week for 2.1. You can check the issue if you are interested in the status

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

reynog

  • Guest
Re: Drupal account not being created via profile contribution page
July 29, 2008, 05:06:35 pm
Thanks lobo!  Glad to have been able to help track it down. 

I will backport to 2.0 for my installation when the fix is done. (Garagh- I can share this with you if you can't do it yourself)

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 account not being created via profile contribution page
July 29, 2008, 05:39:36 pm

I've fixed this issue and my prelim tests indicate its working. You can find the patches here:

http://issues.civicrm.org/jira/browse/CRM-3362?page=com.atlassian.jira.ext.fisheye:fisheye-issuepanel

We'll do some more QA before we resolve the issue

thanx

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

DaraghOBrien

  • Guest
Re: Drupal account not being created via profile contribution page
July 30, 2008, 06:29:11 am
Nice work. Thanks for the opportunity to assist here. Reynog, if you can provide me with the back ported fix that would be great. My project can then steamroll onwards.  ;D

Alternatively, can Lobo (or other appropriate person) wrap the backported fix into a maintenance release of the 2.0.x branch to make sure that this stays fixed in a 2.0.x install? I'd hate to fix it now and have it break next time I apply a maintenance release.

« Last Edit: July 30, 2008, 06:37:23 am by DaraghOBrien »

reynog

  • Guest
Re: Drupal account not being created via profile contribution page
July 30, 2008, 10:27:43 am
I've added the fix in 2.0.5 code, and tested it on my own environment... the Drupal user was created and the email was received.

Daragh- Can you PM me your email address and I will send you the files.

I am also wondering if there is a way to roll this into a maintenance release for 2.0?  Please advise on next steps, if that's a possibility.

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 account not being created via profile contribution page
July 30, 2008, 11:40:00 am

To avoid introducing new bugs, we limit the issues fixed in 2.0 to "critical" issues only. What is a "critical" issue is hard to make. At this stage, we'd prefer to keep this fix in 2.1 and avoid backporting it to 2.0. In general adding code to a release also adds bugs

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

Laryn

  • I post frequently
  • ***
  • Posts: 192
  • Karma: 4
    • CEDC
  • CiviCRM version: 4.6.x
  • CMS version: Drupal 7
Re: Drupal account not being created via profile contribution page
August 11, 2008, 01:56:32 pm
This looks like the same problem I've been having: here.
Subscribing to this topic.

EDIT: Oops...didn't see page two. I'll try this fix out on my end in the morning and give it a test.
« Last Edit: August 11, 2008, 02:00:16 pm by lpkb »
CEDC...social justice by design

*Get support on the new CiviCRM help site. /laryn

Laryn

  • I post frequently
  • ***
  • Posts: 192
  • Karma: 4
    • CEDC
  • CiviCRM version: 4.6.x
  • CMS version: Drupal 7
Re: Drupal account not being created via profile contribution page
August 11, 2008, 02:10:31 pm
Oh, is there no fix for 2.0.5?

EDIT: Reynog sent me his file, which seems to be working correctly on my install. Thanks reynog! (Applause)
« Last Edit: August 18, 2008, 07:02:02 am by lpkb »
CEDC...social justice by design

*Get support on the new CiviCRM help site. /laryn

Pages: 1 [2] 3
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Drupal account not being created via profile contribution page

This forum was archived on 2017-11-26.