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) »
  • civicrm not receiving paypal IPN/pending contributions not updating
Pages: [1]

Author Topic: civicrm not receiving paypal IPN/pending contributions not updating  (Read 3382 times)

jinjur

  • Guest
civicrm not receiving paypal IPN/pending contributions not updating
August 17, 2009, 09:14:27 pm
hi there - we've been having a variety of troubles since mid-july with donations made via paypal (standard). prior to that time we had a persistent but intermittent error affecting ~10% of donors - they would fail to pass correctly from our site's donation page to paypal. in mid-july, that leapt to 100% of donors. we found that our problems looked similar to some that were solved by an update, so we updated at that time.

the update solved that issue - we now have no reported problems with donors being passed to paypal by our donation page, making their donation, and then being successfully directed back to our thank you page. however, all  payments remain marked as pending. we have confirmed that the payments were successful in our paypal account. we have checked our logs in civicrm and there is nothing there - they are blank all the way back to mid-july. we have checked paypal and confirmed that IPN is being sent.

on the civicrm side, we have double-checked and tested our global settings, directory path, and url. we have also checked our profile settings in paypal, and we now suspect that we're somehow having a problem with notify_url (or the equivalent). when that notification is sent from civicrm to paypal, should it be appearing in the logs? is there a way to find what civicrm is sending? is there a way to manually test where the message is getting lost?

to clarify, we are getting no warnings during the donation process - this is completely invisible to the donor, and working smoothly for them. we are just never receiving ipn.

if i attempt to update the pending status of a contribution (made via paypal, hanging as pending, but confirmed as rec'd at the paypal account), i get this warning:

Fatal error: require_once() [function.require]: Failed opening required 'api/v2/ActivityType.php' (include_path='.:/var/www/drupal/sites/all/modules/civicrm:/var/www/drupal/sites/all/modules/civicrm/packages:.:/usr/share/php:/usr/share/pear') in /var/www/drupal/sites/all/modules/civicrm/api/v2/Activity.php on line 49

sorry this is so all over the place - i feel like i'm standing in a dark room trying to describe the contents of a different dark room in a different city. :/  i would greatly appreciate any help anyone can offer.


Sunil

  • I post frequently
  • ***
  • Posts: 131
  • Karma: 23
  • The community around a product more important than the product itself?
    • CiviCRM
Re: civicrm not receiving paypal IPN/pending contributions not updating
August 18, 2009, 01:02:47 am
Hi,
Quote
Fatal error: require_once() [function.require]: Failed opening required 'api/v2/ActivityType.php' (include_path='.:/var/www/drupal/sites/all/modules/civicrm:/var/www/drupal/sites/all/modules/civicrm/packages:.:/usr/share/php:/usr/share/pear') in /var/www/drupal/sites/all/modules/civicrm/api/v2/Activity.php on line 49

I checked on my local install (V 2.2.8 ), i didn't  get any error,

i also received IPN response.

To Verify
1. Will you check the Payment logs in CiviCRM.log File (sites/default/files/civicrm/upload directory )

2. if Payment Log disabled then Open the CRM/Core/Payment/PayPalIPN.php file,
   find the following
        // CRM_Core_Error::debug_var( 'GET' , $_GET , true, true );
        // CRM_Core_Error::debug_var( 'POST', $_POST, true, true );
   uncomment it.

Then do the TEST Contribution. Now, if logs are present and contribution still in pending, then something wrong in code.

Correct Behavior:
    PayPal sent IPN  to CiviCRM
    CiviCRM Update the Records according the IPN Response and write the log in CiviCRM.log file
          Contribution record updated successfully
          Success: Database updated and mail sent


3. You can also specify the Notification URL in Your PayPal Merchant account  under Instant Payment Notification Preferences

Hth

Sunil
 





The community around a product more important than the product itself?

jinjur

  • Guest
Re: civicrm not receiving paypal IPN/pending contributions not updating
August 24, 2009, 07:25:54 pm
it turned out that this was a general problem we were having with our upgrade--it just took us a while to realize the issue was larger than the IPN notification. thank you for your help!

CherylT

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 4.1.5
  • CMS version: Drupal 6.26
  • MySQL version: 5.0.95
  • PHP version: 5.2.17
Re: civicrm not receiving paypal IPN/pending contributions not updating
August 31, 2009, 03:19:59 pm
I am relatively new to CiviCRM and I am also having this problem. I just updated from CiviCRM 2.2.5 to 2.2.8, thinking that might resolve the issue, but it has not. I have confirmed that the IPN was sent from PayPal sandbox but nothing is showing up in my CiviCRM.log and Payment status of Test Contribution remains Pending.

CiviCRM.log is logging manual payment status updates. e.g.:
[info] Contribution record updated successfully
[info] Success: Database updated and mail sent

Can someone please help me troubleshoot this? Any assistance will be greatly appreciated!

Cheryl

CherylT

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 4.1.5
  • CMS version: Drupal 6.26
  • MySQL version: 5.0.95
  • PHP version: 5.2.17
Re: civicrm not receiving paypal IPN/pending contributions not updating
August 31, 2009, 09:15:18 pm
I just checked my apache log and found this:

216.113.191.33 - - [31/Aug/2009:17:59:48 -0400] "POST /sites/all/modules/civicrm/extern/ipn.php?reset=1&contactID=1&contributionID=56&module=contribute&membershipID=341 HTTP/1.0" 200 301 "-" "-"

Is this what I should be seeing? Where can I go from here?

CherylT

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 4.1.5
  • CMS version: Drupal 6.26
  • MySQL version: 5.0.95
  • PHP version: 5.2.17
Re: civicrm not receiving paypal IPN/pending contributions not updating
August 31, 2009, 09:58:53 pm
So I solved my problem (I hope!).

In the sites/all/modules/civicrm/extern directory I found an error_log file that said:

PHP Fatal error:  session_start() [<a href='function.session-start'>function.session-start</a>]: Failed to initialize storage module: user (path: /tmp) in <drupal-root>/sites/all/modules/civicrm/extern/ipn.php on line 36

So I added:

ini_set('session.save_handler','files');

to line 35 of the ipn.php file and payment status is updated to Completed and Receipt is emailed. Whew!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • civicrm not receiving paypal IPN/pending contributions not updating

This forum was archived on 2017-11-26.