Zen Cart Logo
Forums / General Questions / Paypal IPN stopped working on 12/20

Paypal IPN stopped working on 12/20

Locked

Views: 3,328

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
26 Dec 2007, 3:33 PM
#1
chriscana avatar

chriscana

Zen Follower

Join Date:
May 2005
Posts:
94
Plugin Contributions:
0

Paypal IPN stopped working on 12/20

I made no changes to my store at all, but all of a sudden on 12/20 my paypal paments stopped going through.

Paypal processed them, but I do not get the order in my admin, no email is sent to the customer from my store, and this has caused a big problem because my store is download only.

I received an email from paypal that said:

Please check your server that handles PayPal Instant Payment Notifications (IPN). IPNs sent to the URL(s) are failing.

I patched to the latest paypal ipn, but still the same issue.

26 Dec 2007, 3:50 PM
#2
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,594
Plugin Contributions:
0

Re: Paypal IPN stopped working on 12/20

Check your settings for the Return URL etc on the Paypal site.

26 Dec 2007, 3:53 PM
#3
chriscana avatar

chriscana

Zen Follower

Join Date:
May 2005
Posts:
94
Plugin Contributions:
0

Re: Paypal IPN stopped working on 12/20

I did that first - they are all correct.

26 Dec 2007, 4:43 PM
#4
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,594
Plugin Contributions:
0

Re: Paypal IPN stopped working on 12/20

What changes did your host make on that date?

26 Dec 2007, 4:52 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Paypal IPN stopped working on 12/20

What version of Zen Cart are you using?
What happens when you test IPN communications using the tool in this forum thread:
http://www.zen-cart.com/forum/showthread.php?t=65680

26 Dec 2007, 4:52 PM
#6
chriscana avatar

chriscana

Zen Follower

Join Date:
May 2005
Posts:
94
Plugin Contributions:
0

Re: Paypal IPN stopped working on 12/20

Kim:

What changes did your host make on that date?

I'm not sure. If I email them, are there some common things I can ask them to check?

26 Dec 2007, 4:53 PM
#7
chriscana avatar

chriscana

Zen Follower

Join Date:
May 2005
Posts:
94
Plugin Contributions:
0

Re: Paypal IPN stopped working on 12/20

I uploaded the ipncheck.php file to my server and every time I try and access it, my browser locks up:

http://www.i-doser.com/storev2/ipncheck.php

26 Dec 2007, 5:02 PM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Paypal IPN stopped working on 12/20

chriscana:

I uploaded the ipncheck.php file to my server and every time I try and access it, my browser locks up

If you are patient, it comes back with this information:> IPNCHECK.PHP - Version 1.0

IPN TESTING - POSTING to PayPal via: ssl://www.paypal.com:443

Warning: fsockopen() [function.fsockopen]: unable to connect to www.paypal.com:443 in /home/.media/idoser2/i-doser.com/storev2/ipncheck.php on line 81
IPN FATAL ERROR :: Could not establish fsockopen.
Host Details = ssl://www.paypal.com:443 (110) Connection timed out

Trying again without SSL ...

Warning: fsockopen() [function.fsockopen]: unable to connect to www.paypal.com:80 in /home/.media/idoser2/i-doser.com/storev2/ipncheck.php on line 85
IPN FATAL ERROR :: Could not establish fsockopen.
Host Details = http://www.paypal.com:80 (110) Connection timed out

Warning: fputs(): supplied argument is not a valid stream resource

Warning: feof(): supplied argument is not a valid stream resourceThese all show that your host server's configuration is preventing you from communicating to servers outside of itself ... including PayPal.

Specifically, attempting to use the fsockopen() command in PHP encounters a timeout ... which basically means the server cannot find or connect to the external URL. This is typically a firewall problem ... ie: either they've blocked all outbound traffic (probably because they're scared of spammers and can't think of better ways to secure their server) or they've blocked PHP from making external connections (for same reason). I would have expected a different error if it was a PHP configuration thing though. Thus, I suspect it to be a firewall issue.

And then there's the fact that your server appears to be running slowly anyhow.

26 Dec 2007, 5:09 PM
#9
chriscana avatar

chriscana

Zen Follower

Join Date:
May 2005
Posts:
94
Plugin Contributions:
0

Re: Paypal IPN stopped working on 12/20

if I email them and tell them to open the firewall, what should my specific request to my host state?

I want to make sure I state the correct thing to them.

26 Dec 2007, 5:25 PM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Paypal IPN stopped working on 12/20

Tell them that you're unable to communicate to PayPal's server from your server using fsockopen().
Tell them that points 7 and 11 from the Things To Check section of this troubleshooting guide might be of relevance:
http://www.zen-cart.com/wiki/index.php/PayPal#Things_to_check_if_it.27s_not_working
And give them the URL to the ipncheck.php that you uploaded, so they can test and know when it's working.

26 Dec 2007, 6:57 PM
#11
chriscana avatar

chriscana

Zen Follower

Join Date:
May 2005
Posts:
94
Plugin Contributions:
0

Re: Paypal IPN stopped working on 12/20

This is the response I received from my host:

Hello,

I'm unable to communicate toPayPal's server from your server using
fsockopen().

I apologize for the problem you are having. The cause is because our
default PHP installation does not allow using file read
(fopen/fread/fclose) with URLs, this is a security feature in our global
PHP configuration.

What perplexes me is that you should have always been receiving this
error because this shouldn't have worked even before the 20th. Have you
possible performed any software updates or PHP shanges on your site
recently?

The way around the fsockopen issue is to either use cURL functions (
http://wiki.dreamhost.com/CURL ) or install a custom version of PHP for
your website. There are instructions available on our wiki for how to do
this here: http://wiki.dreamhost.com/Installing_PHP5 it is fairly simple,
but we do not offer assistance with the installation or debugging.

If you have any questions please feel free to ask, I would be glad to
help where I can.

Thanks!

I do not get it, because this just recently became a problem.

So, my question is - what do I do? I have no clue how to install a custom php, and how would I use curl with paypal ipn?

2 Jan 2008, 12:57 PM
#12
plebeu avatar

plebeu

New Zenner

Join Date:
Jun 2005
Posts:
12
Plugin Contributions:
0

Re: Paypal IPN stopped working on 12/20

Hi Chriscana,

I am in the same situation! I use dreamhost too and my Paypal stops in 20/12 too!
I am sending a email to Dreamhost to say that it stop works and it was working before!
Please, if you figure it out how to make this work tell me...
Thanks,