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) »
  • Contact email not added for contribution in 3.0?
Pages: [1]

Author Topic: Contact email not added for contribution in 3.0?  (Read 2443 times)

lentilsoup

  • I post frequently
  • ***
  • Posts: 134
  • Karma: 6
Contact email not added for contribution in 3.0?
December 07, 2009, 12:28:25 pm
I'm trying to track down a problem where no contact email address is added for a new contribution.  I've tracked down the problem to somewhere in the Confirm page.

Here's the $params data that's being passed to CRM_Contact_BAO_Contact::createProfileContact():
Code: [Select]
Array
(
    [qfKey] => 8a06199bed26dcddc4d12ca29dc3627f
    [email-5] => me@mydomain.com
    [amount] => 50.00
    [amount_other] =>
    [phone] => Array
        (
            [1] => Array
                (
                    [phone] =>
                )

        )

    [email] => Array
        (
            [1] => Array
                (
                    [email] =>
                )

        )

    [address] => Array
        (
            [1] => Array
                (
                    [street_address] =>
                    [supplemental_address_1] =>
                    [supplemental_address_2] =>
                    [city] =>
                    [postal_code] =>
                    [postal_code_suffix] =>
                    [state_province_id] =>
                    [country_id] =>
                )

        )

    [honor_type_id] =>
    [honor_prefix_id] =>
    [honor_first_name] =>
    [honor_last_name] =>
    [honor_email] =>
    [MAX_FILE_SIZE] => 2097152
    [ip_address] => [redacted]
    [amount_level] =>
    [currencyID] => USD
    [payment_action] => Sale
    [invoiceID] => 5803c132f1d30287c7a2d668133f6a76
    [is_pay_later] =>
    [description] => Online Contribution: Make a Donation
    [accountingCode] =>
)

And here's what's being passed from CRM_Contact_BAO_Contact::createProfileContact() to CRM_Contact_BAO_Contact::create():

Code: [Select]
Array
(
    [contact_type] => Individual
    [qfKey] => 8a06199bed26dcddc4d12ca29dc3627f
    [email] => Array
        (
            [1] => Array
                (
                    [email] =>
                )

        )

    [amount] => 50.00
    [amount_other] =>
    [phone] => Array
        (
            [1] => Array
                (
                    [phone] =>
                )

        )

    [address] => Array
        (
            [1] => Array
                (
                    [street_address] =>
                    [supplemental_address_1] =>
                    [supplemental_address_2] =>
                    [city] =>
                    [postal_code] =>
                    [postal_code_suffix] =>
                    [state_province_id] =>
                    [country_id] =>
                )

        )

    [honor_type_id] =>
    [honor_prefix_id] =>
    [honor_first_name] =>
    [honor_last_name] =>
    [honor_email] =>
    [MAX_FILE_SIZE] => 2097152
    [ip_address] => [redacted]
    [amount_level] =>
    [currencyID] => USD
    [payment_action] => Sale
    [invoiceID] => 5803c132f1d30287c7a2d668133f6a76
    [is_pay_later] =>
    [description] => Online Contribution: Make a Donation
    [accountingCode] =>
)

So it seems that the email address is there to begin with but possibly not in the right place, so it's not being passed in to the contact creation function.  Any tips on how I can fix this?

Thanks!

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Contact email not added for contribution in 3.0?
December 07, 2009, 09:46:03 pm
Can you give exact steps to replicate this problem.

Thanks,
Kurund
Found this reply helpful? Support CiviCRM

lentilsoup

  • I post frequently
  • ***
  • Posts: 134
  • Karma: 6
Re: Contact email not added for contribution in 3.0?
December 08, 2009, 08:49:49 am
1) create a contribution page.  The one I'm using currently allows gifts on behalf of an organization; allows honorees; allows pay-later; and uses a payment processor copied almost directly from Paypal IPN.

2) fill it out with minimum required info (see attached screenshot); click "continue"

3) click "continue" on confirmation page.

Result: a blank (i.e. with all NULL values in the DB) contact record is created, but no corresponding email record

Expected result: a blank contact record is created as well as a corresponding email record.

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: Contact email not added for contribution in 3.0?
December 08, 2009, 11:33:23 am

can you reproduce this issue on demo using either the sandbox account on paypal and/or the dummy processor

kinda hard for us to guess what is right/wrong based on your reports. We use paypal IPN quite a bit and it works quite nicely with us

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

lentilsoup

  • I post frequently
  • ***
  • Posts: 134
  • Karma: 6
Re: Contact email not added for contribution in 3.0?
December 08, 2009, 11:55:56 am
I think so.  Here's an example contribution:  http://drupal.demo.civicrm.org/civicrm/contact/view/contribution?reset=1&id=35&cid=194&action=view&context=search&selectedChild=contribute

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Contact email not added for contribution in 3.0?
December 08, 2009, 10:52:54 pm
thanks for your drill down debugging.

filed issue is here : http://issues.civicrm.org/jira/browse/CRM-5519

code will be part of next stable release. ( v 3.0.3 )

you might be interesting in patch : http://fisheye2.atlassian.com/changelog/CiviCRM?cs=25454

kiran
You Are Designed To Choose... Defined By Choice.

lentilsoup

  • I post frequently
  • ***
  • Posts: 134
  • Karma: 6
Re: Contact email not added for contribution in 3.0?
December 09, 2009, 05:31:41 am
Thanks, kiran!  I'll give the patch a try this afternoon and report back.

EDIT: Yes, problem solved.  Thank you!
« Last Edit: December 09, 2009, 08:59:20 am by lentilsoup »

jwhittin

  • Guest
Re: Contact email not added for contribution in 3.0?
January 09, 2010, 10:03:48 pm
This happened to us as well, and I'll bet it's happening to others, so someone might want to issue a headsup.  Basically, a month went by after we installed 3.0 before we discovered it wasn't collecting any emails on contributions.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Contact email not added for contribution in 3.0?

This forum was archived on 2017-11-26.