Forums / Bug Reports / [not a bug] IPN FATAL ERROR :: Transaction did not validate. ABORTED

[not a bug] IPN FATAL ERROR :: Transaction did not validate. ABORTED

Locked

Views: 7,940

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
1 Jun 2010, 2:35 PM
#1
frage avatar

frage

New Zenner

Join Date:
Dec 2009
Posts:
11
Plugin Contributions:
0

[not a bug] IPN FATAL ERROR :: Transaction did not validate. ABORTED

I can't see orders in zen cart 1.3.9c after paypal IPN payment
I have uninstall an reinstall Zencart IPN module and put on the log.

So i had the log attached to this thread
the last line is IPN FATAL ERROR :: Transaction did not validate. ABORTED.

I have try after changing paypal preference (language encodage to UTF-8) and obtained a second log.

Any ideas?
Best Regards,
Frédéric

1 Jun 2010, 8:50 PM
#2
frage avatar

frage

New Zenner

Join Date:
Dec 2009
Posts:
11
Plugin Contributions:
0

Re: [not a bug] IPN FATAL ERROR :: Transaction did not validate. ABORTED

log files

1 Jun 2010, 10:48 PM
#3
drbyte avatar

drbyte

Sensei

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

Re: [not a bug] IPN FATAL ERROR :: Transaction did not validate. ABORTED

I'm not sure why you're getting CURL problems. I'm guessing that the problems you have will go away if you get CURL communications working properly. That said, the fsockopen fallback should work properly, but apparently it doesn't for you ... I'm not sure why, as I can't recreate the problem here.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

2 Jun 2010, 7:02 AM
#4
frage avatar

frage

New Zenner

Join Date:
Dec 2009
Posts:
11
Plugin Contributions:
0

Re: [not a bug] IPN FATAL ERROR :: Transaction did not validate. ABORTED

Thank you for your answer.

So how could i control that curl is working well? should i install it as a modul on my linux server? Do you thing curl could be locked by iptables rules?

2 Jun 2010, 7:24 AM
#5
frage avatar

frage

New Zenner

Join Date:
Dec 2009
Posts:
11
Plugin Contributions:
0

Re: [not a bug] IPN FATAL ERROR :: Transaction did not validate. ABORTED

I tried this and i have the following results

IPNCHECK.PHP - Version 1.3.9

CURL ERROR: Attempted connection on: https://www.paypal.com/cgi-bin/webscr

(7) couldn't connect to host

Trying direct HTTP on port 80 instead ...

IPN TESTING - Response Received via CURL -- COMMUNICATIONS OKAY

IPN ERROR :: Could not establish fsockopen:

Host Details = ssl://www.paypal.com:443 (110) Connection timed out

Trying again with HTTPS over 443 ...

IPN ERROR :: Could not establish fsockopen:

Host Details = https://www.paypal.com:443 (136289744) Unable to find the socket transport "https" - did you forget to enable it when you configured PHP?

Trying again directly over 443 ...

IPN ERROR :: Could not establish fsockopen:

Host Details = www.paypal.com:443 (110) Connection timed out

Trying again with HTTP over port 80 ...

IPN ERROR :: Could not establish fsockopen:

Host Details = httpwww.paypal.com:80 (110)

Trying again without any specified protocol, using port 80 ...

IPN TESTING - Confirmation/Validation response with fsockopen(): FSOCKOPEN() RESPONSE RECEIVED - Communications OKAY

Default method likely to be used for communications is: CURL, with the fallback method being FSOCKOPEN if possible.

Script finished.

2 Jun 2010, 9:19 AM
#6
drbyte avatar

drbyte

Sensei

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

Re: [not a bug] IPN FATAL ERROR :: Transaction did not validate. ABORTED

Your CURL setup apparently doesn't understand how to communicate over SSL. In your server configurations you'll need to enable SSL for your CURL to work properly.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

2 Jun 2010, 10:50 AM
#7
frage avatar

frage

New Zenner

Join Date:
Dec 2009
Posts:
11
Plugin Contributions:
0

Re: [not a bug] IPN FATAL ERROR :: Transaction did not validate. ABORTED

Seeing these messages I installed and configure SSL (even if i don't really use it) to see if this change something.

I continue having exactly the same messages with ipncheck

the following equivalent apache message can be more revelant

[Wed Jun 02 11:49:42 2010] [error] PHP Warning: fsockopen(): unable to connect to ssl://www.paypal.com:443 (Connection timed out) in /myShop/ipncheck_2.php on line 124
[Wed Jun 02 11:49:42 2010] [error] PHP Warning: fsockopen(): unable to connect to https://www.paypal.com:443 (Unable to find the socket transport "https" - did you forget to enable it when you configured PHP?) in /myShop/ipncheck_2.php on line 130
[Wed Jun 02 11:49:54 2010] [error] PHP Warning: fsockopen(): unable to connect to ssl://www.paypal.com:443 (Connection timed out) in /myShop/ipncheck_2.php on line 124
[Wed Jun 02 11:49:54 2010] [error] PHP Warning: fsockopen(): unable to connect to https://www.paypal.com:443 (Unable to find the socket transport "https" - did you forget to enable it when you configured PHP?) in /myShop/ipncheck_2.php on line 130
[Wed Jun 02 11:50:12 2010] [error] PHP Warning: fsockopen(): unable to connect to www.paypal.com:443 (Connection timed out) in /myShop/ipncheck_2.php on line 136
[Wed Jun 02 11:50:12 2010] [error] PHP Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /myShop/ipncheck_2.php on line 142
[Wed Jun 02 11:50:12 2010] [error] PHP Warning: fsockopen(): unable to connect to httpwww.paypal.com:80 (Unknown error) in /myShop/ipncheck_2.php on line 142
[Wed Jun 02 11:50:24 2010] [error] PHP Warning: fsockopen(): unable to connect to www.paypal.com:443 (Connection timed out) in /myShop/ipncheck_2.php on line 136
[Wed Jun 02 11:50:24 2010] [error] PHP Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /myShop/ipncheck_2.php on line 142
[Wed Jun 02 11:50:24 2010] [error] PHP Warning: fsockopen(): unable to connect to httpwww.paypal.com:80 (Unknown error) in /myShop/ipncheck_2.php on line 142
f

I can't anderstand where is really the problem. Any Idea?

2 Jun 2010, 10:54 AM
#8
drbyte avatar

drbyte

Sensei

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

Re: [not a bug] IPN FATAL ERROR :: Transaction did not validate. ABORTED

The problem is in your server's configuration.
I can't tell you how to install and configure PHP to use SSL -- that's up to the server administrator to do/know.
All I can tell you is that if you want to have secure communication to external services when handling payments (and yes, you need to do that even if you're not offering secure communications on the storefront for your customers' benefit), then you need to be sure your server can do it. A traditional webmaster is versed in these skills such as installing and compiling PHP and OpenSSL and enabling CURL etc. If you're taking on that responsibility for yourself, you're going to need to learn how to do that.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

3 Jun 2010, 7:17 AM
#9
frage avatar

frage

New Zenner

Join Date:
Dec 2009
Posts:
11
Plugin Contributions:
0

Re: [not a bug] IPN FATAL ERROR :: Transaction did not validate. ABORTED

Is the port 443 open?

netstat -tulpn | grep :443 return me
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 11386/apache2

and in iptables i can see
Chain INPUT
0 0 ACCEPT tcp -- eth1 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:443
1725 95340 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:443
0 0 ACCEPT tcp -- * * 0.0.0.0/0 my.ip.my.ip tcp spts:1024:65535 dpt:443 state NEW,ESTABLISHED
0 0 ACCEPT tcp -- * * 0.0.0.0/0 my.ip.my.ip tcp spt:443 dpts:1024:65535 state ESTABLISHED

Chain OUTPUT
0 0 ACCEPT tcp -- * * my.ip.my.ip 0.0.0.0/0 tcp spt:443 dpts:1024:65535 state ESTABLISHED
0 0 ACCEPT tcp -- * * my.ip.my.ip 0.0.0.0/0 tcp spts:1024:65535 dpt:443 state NEW,ESTABLISHED
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:443

Is Open SSL running ?

In my php info I can found:

Registered Stream Socket Transports : tcp, udp, unix, udg, ssl, sslv3, sslv2, tls

curl
cURL support enabled
cURL Information libcurl/7.15.5 OpenSSL/0.9.8c zlib/1.2.3 libidn/0.6.5

openssl
OpenSSL support enabled
OpenSSL Version OpenSSL 0.9.8c 05 Sep 2006

3 Jun 2010, 7:36 AM
#10
frage avatar

frage

New Zenner

Join Date:
Dec 2009
Posts:
11
Plugin Contributions:
0

Re: [not a bug] IPN FATAL ERROR :: Transaction did not validate. ABORTED

I continue having "connection time out" and no TCP connect with Curl (curl error 7)

10 Jun 2010, 11:32 AM
#11
frage avatar

frage

New Zenner

Join Date:
Dec 2009
Posts:
11
Plugin Contributions:
0

Re: [not a bug] IPN FATAL ERROR :: Transaction did not validate. ABORTED

:cool: For information, status is resolved, it was a firewall odd rule