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) »
  • Errors with PayPal Pro in 4.0.8
Pages: [1]

Author Topic: Errors with PayPal Pro in 4.0.8  (Read 710 times)

JoeMurray

  • Administrator
  • Ask me questions
  • *****
  • Posts: 578
  • Karma: 24
    • JMA Consulting
  • CiviCRM version: 4.4 and 4.5 (as of Nov 2014)
  • CMS version: Drupal, WordPress, Joomla
  • MySQL version: MySQL 5.5, 5.6, MariaDB 10.0 (as of Nov 2014)
Errors with PayPal Pro in 4.0.8
February 22, 2012, 12:23:04 pm
I've configured a site to use PayPal Pro with the Signature method as per the wiki. When I try to checkout using the PayPal button on an Event registration screen, I get sent to PayPal Site, choose my payment method, then when I am sent back to my site the following errors appear on the Confirmation Page:

    Notice: Undefined index: is_recur in CRM_Core_Payment_PayPalImpl->setExpressCheckOut() (line 116 of /home/admin/domains/vimyfoundation.ca/public_html/sites/all/modules/civicrm/CRM/Core/Payment/PayPalImpl.php).
    Notice: Undefined index: middlename in CRM_Core_Payment_PayPalImpl->getExpressCheckoutDetails() (line 163 of /home/admin/domains/vimyfoundation.ca/public_html/sites/all/modules/civicrm/CRM/Core/Payment/PayPalImpl.php).
    Notice: Undefined index: shiptostreet2 in CRM_Core_Payment_PayPalImpl->getExpressCheckoutDetails() (line 166 of /home/admin/domains/vimyfoundation.ca/public_html/sites/all/modules/civicrm/CRM/Core/Payment/PayPalImpl.php).
    Notice: Undefined index: payer in CRM_Event_Form_Registration_Confirm->preProcess() (line 98 of /home/admin/domains/vimyfoundation.ca/public_html/sites/all/modules/civicrm/CRM/Event/Form/Registration/Confirm.php).

Then after continuing to CiviCRM Confirmation page, clicking okay, the following errors show up on the Thank you page:
    Notice: Undefined index: returnURL in CRM_Core_Payment_PayPalImpl->doExpressCheckout() (line 194 of /home/admin/domains/vimyfoundation.ca/public_html/sites/all/modules/civicrm/CRM/Core/Payment/PayPalImpl.php).
    Notice: Undefined index: cancelURL in CRM_Core_Payment_PayPalImpl->doExpressCheckout() (line 195 of /home/admin/domains/vimyfoundation.ca/public_html/sites/all/modules/civicrm/CRM/Core/Payment/PayPalImpl.php).
    Notice: Undefined index: settleamt in CRM_Core_Payment_PayPalImpl->doExpressCheckout() (line 207 of /home/admin/domains/vimyfoundation.ca/public_html/sites/all/modules/civicrm/CRM/Core/Payment/PayPalImpl.php).

The Thank You page contains the transaction ID and the payment has gone through. How can one turn off these notice error messages?

Note that I've set
error_reporting = E_ALL & ~E_NOTICE
in php.ini (and confirmed this by seeing it is 30711 for PHP 5.3 using phpinfo())and turned off debugging in CiviCRM.

Secondly, after dealing with notice errors on my site, should I report these various errors somewhere if I'm not going to submit a patch for them?

Co-author of Using CiviCRM https://www.packtpub.com/using-civicrm/book

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: Errors with PayPal Pro in 4.0.8
February 22, 2012, 02:22:19 pm

4.0 and prior is not E_NOTICE compliant. We've made a strong effort to make 4.1 E_NOTICE compliant

dont know why your instance is throwing out E_NOTICES with those php.ini

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

stefan

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
  • CiviCRM version: 4.1.2
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Errors with PayPal Pro in 4.0.8
May 25, 2012, 10:20:18 am
For anyone else who may come across this, I've still had issues with these on 4.1.2, and in addition to those posted above, have observed:

    Notice: Undefined index: payer in CRM_Contribute_Form_Contribution_Confirm->preProcess() (line 75 of /sites/all/modules/civicrm/CRM/Contribute/Form/Contribution/Confirm.php).
    Notice: Undefined index: is_recur in CRM_Contribute_BAO_Contribution_Utils::processConfirm() (line 171 of /sites/all/modules/civicrm/CRM/Contribute/BAO/Contribution/Utils.php).

There's also a loop in the confirmation page which may provide multiple different errors, eg

    Notice: Undefined index: billing_state_province_id-5 in CRM_Contribute_BAO_Contribution::createAddress() (line 1085 of /sites/all/modules/civicrm/CRM/Contribute/BAO/Contribution.php).
    Notice: Undefined index: billing_country_id-5 in CRM_Contribute_BAO_Contribution::createAddress() (line 1085 of /sites/all/modules/civicrm/CRM/Contribute/BAO/Contribution.php).

Thanks to Joe for posting a nice list for me to fix proactively once I identified the issue. I too could not get error_reporting to work as expected either by using php.ini or by calling error_reporting() running CiviCRM 4.1.2 on PHP 5.3.3

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Errors with PayPal Pro in 4.0.8

This forum was archived on 2017-11-26.