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) »
  • Not receiving IPNs from Paypal Standard
Pages: 1 [2]

Author Topic: Not receiving IPNs from Paypal Standard  (Read 6356 times)

minbori

  • I post occasionally
  • **
  • Posts: 53
  • Karma: 2
  • CiviCRM version: 4.0.8
  • CMS version: Joomla 2.5.24
  • MySQL version: 5.5.37
  • PHP version: 5.3.29
Re: Not receiving IPNs from Paypal Standard
December 05, 2013, 11:07:54 am
Figured I'd add to this post rather than start a new one because I'm having the exact same problem. All IPNs being sent from PayPal to CiviCRM are failing with error status 406.

At Lobo's suggestion I wrote a little script where I submitted the exact URL and message parameters that PayPal was using via CURL -- and that works!  Success messages in CiviCRM log, receipt emails sent successfully.

IPN data submitted via curl shows correctly as return code 200 in the Apache log.  PayPal's IPN POSTS show as return code 406 in the Apache logs.  And there are no errors in the CiviCRM logs regarding the PayPal IPNs, which makes me think those requests are never making it past Apache to CiviCRM. But why? My CURL Posts have no trouble.

Any thoughts?


bighudsonnut

  • I post occasionally
  • **
  • Posts: 84
  • Karma: 2
    • Hudson Essex Terraplane Club site
  • CiviCRM version: 4.6.3
  • CMS version: Joomla 3.4.1
  • MySQL version: 5.5.42
  • PHP version: 5.5.23
Re: Not receiving IPNs from Paypal Standard
February 26, 2014, 12:10:07 pm
I thought I would throw add this to the solutions.   When I started this thread I was on a Hostgator shared server.  My IPNs started working without me doing anything several months ago.  Just recently I moved over from the shared server (where IPNs were working) to a VPS server (dedicated) and lost my Paypal Standard IPN capability.  I worked for about a week with Hostgator support.  Finally today they fixed it and here was their response. 

"We have detected what appears to be the reason for PayPal IPNs from failing. It appears these requests were hitting a couple of mod_security rules in your VPS which was causing them to be blocked. We have gone ahead and Whitelisted these rules."

I asked for details so I could share I received the following reply 

"We cannot unfortunately provide many details about these rules as these are not part of the regular ruleset from mod_security but are internally developed ruleset. With that said we already notified our internal development team in charge of our internal rules. Our custom ruleset will be updated so that these rules are not triggered for this type of requests." 

One other thing I did was ensure that my server, CiviCRM, Paypal timezones were all on Central time.  I noticed even after I changed them all that my error logs sometimes showed UTC and other times America/Chicago.  Hostgator support fixed that as well however I cannot be sure that was part of the problem.

Hostgator support is excellent and has been very helpful, although sometimes it takes a while to find someone who knows enough and takes the time to dig into a problem.  The benefit for me was that the IPNs were working and the migration to the new server/service all within Hostgator broke them.  Hopefully this helps another Hostgator customer with the same issues.

Aaron

bighudsonnut

  • I post occasionally
  • **
  • Posts: 84
  • Karma: 2
    • Hudson Essex Terraplane Club site
  • CiviCRM version: 4.6.3
  • CMS version: Joomla 3.4.1
  • MySQL version: 5.5.42
  • PHP version: 5.5.23
Re: Not receiving IPNs from Paypal Standard
March 13, 2014, 01:49:51 pm
I will add one note to this thread.  A friend of mine who is on here as well had been having the same issues for months, used my solution and went to his provided and asked them to check their rules.  His IPNs are now working.  Looks like it is not only Hostgator that uses rule sets that may limit your ability to receive IPNs.

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Not receiving IPNs from Paypal Standard
March 13, 2014, 02:31:48 pm
I'm a big advocate of CiviHosting or other CiviCRM specific hosting for this sort of reason - hosting issues are just a headache you don't want to have
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Pages: 1 [2]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Not receiving IPNs from Paypal Standard

This forum was archived on 2017-11-26.