Forums / PayPal Express Checkout support / Problem with Paypal connection - Error (28) connect() timed out!

Problem with Paypal connection - Error (28) connect() timed out!

Views: 45,535

Results 61 to 80 of 135
3 Aug 2013, 3:33 PM
#61
twi avatar

twi

Zen Follower

Join Date:
Aug 2007
Posts:
277
Plugin Contributions:
0

Problem with Paypal connection - Error (28) connect() timed out!

DrByte:

http://www.zen-cart.com/showthread.php?65680-PayPal-Communications-Response-Testing-Tools

I get the following for ipn & curltest check on all 4 of my sites (2 zc139h and 1 zc151 multisite with 2 urls):

403: Forbidden

This error message is generated when the web server is trying to access a file that does not exist or has been configured incorrectly

Troubleshooting suggestions:

Ensure that you have a valid home page defined in your website directory (example: /htdocs/index.html, /htdocs/index.php). On Unix, this is case sensitive and must be all lower case.

In your Account Manager, under Hosting Tools, click to .Reset File Permissions..
what is this saying?

3 Aug 2013, 4:33 PM
#62
twi avatar

twi

Zen Follower

Join Date:
Aug 2007
Posts:
277
Plugin Contributions:
0

Re: Problem with Paypal connection - Error (28) connect() timed out!

mc12345678:

Unfortunately someone else with the paypal problems may have to answer that question. Most of our current products are non-shipped. I can though say that I haven't had any errors associated with ups or usps.

May I ask who your host is? I wonder if its is a host problem or a general problem that has to do with: Paypal and UPS and one specific host (or all hosts)

3 Aug 2013, 4:57 PM
#63
twi avatar

twi

Zen Follower

Join Date:
Aug 2007
Posts:
277
Plugin Contributions:
0

Re: Problem with Paypal connection - Error (28) connect() timed out!

mc12345678:

Unfortunately someone else with the paypal problems may have to answer that question. Most of our current products are non-shipped. I can though say that I haven't had any errors associated with ups or usps.

May I ask who your host is? I wonder if its is a host problem or a general problem that has to do with: Paypal and UPS and one specific host (or all hosts)

Reasoning is it has to be one of those. Otherwise, it's something bigger involved in the internet itself is what I am speculating. It seems like there is nothing wrong with our Zencarts and its something that we cannot fixed if our sites are hosted by paid host.

Reason also for me wanting to know is because I want to know if I was the one that created my error on my sites, or is it Paypal, Network Solutions, and UPS that are having problems that is out of my control to fix.

It was the same period I installed and fully tested a zc151 multisite cart that was functioning correctly. It took me a week to transfer all my data the new site. Then I pointed my URLs to the zc151. It was a day after I did the pointing that I noticed that Paypal Express was not working. Out of panic, I pointed my URLS back to my old zc 139h sites. They appear to be working too. Then I notice that paypal was not working either. It was working the day before that.

Switched from Paypal Express to Paypal standard and it appears to be working. Then I noticed that UPS Shipping mod works intermittently.

Just wonder if it was coincidental that paypal doesn't work because of my actions or not. I am totally lost here.

Any input is greatly appreciated.

4 Aug 2013, 5:27 AM
#64
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Problem with Paypal connection - Error (28) connect() timed out!

twi:

May I ask who your host is? I wonder if its is a host problem or a general problem that has to do with: Paypal and UPS and one specific host (or all hosts)

Reasoning is it has to be one of those. Otherwise, it's something bigger involved in the internet itself is what I am speculating. It seems like there is nothing wrong with our Zencarts and its something that we cannot fixed if our sites are hosted by paid host.

Reason also for me wanting to know is because I want to know if I was the one that created my error on my sites, or is it Paypal, Network Solutions, and UPS that are having problems that is out of my control to fix.

It was the same period I installed and fully tested a zc151 multisite cart that was functioning correctly. It took me a week to transfer all my data the new site. Then I pointed my URLs to the zc151. It was a day after I did the pointing that I noticed that Paypal Express was not working. Out of panic, I pointed my URLS back to my old zc 139h sites. They appear to be working too. Then I notice that paypal was not working either. It was working the day before that.

Switched from Paypal Express to Paypal standard and it appears to be working. Then I noticed that UPS Shipping mod works intermittently.

Just wonder if it was coincidental that paypal doesn't work because of my actions or not. I am totally lost here.

Any input is greatly appreciated.

Hosting via FatCow... I haven't tried switching PayPal options. I did start working on trying to develop a dynamic encrypted button to have shown if there was an error code of 28 that would show possibly during checkout (hadn't worked on the when to have it shown specifically yet.) Of course have run across some issues with development. Idea was to pass to PayPal the order number and the total charge, or if able I would pass the entire cart contents, but didn't want to make my side complicated at the moment, just functional and using PayPal.

If not mistaken, PayPal Standard uses a different method of communication/end server than trying to reach api-3t.paypal.com.

I apologize for not seeing this earlier, I guess I didn't "update" zen-cart.com to know that I was ready for the next post/email following my earlier posts.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

4 Aug 2013, 5:40 AM
#65
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Problem with Paypal connection - Error (28) connect() timed out!

twi:

I get the following for ipn & curltest check on all 4 of my sites (2 zc139h and 1 zc151 multisite with 2 urls):

403: Forbidden

This error message is generated when the web server is trying to access a file that does not exist or has been configured incorrectly

Troubleshooting suggestions:

Ensure that you have a valid home page defined in your website directory (example: /htdocs/index.html, /htdocs/index.php). On Unix, this is case sensitive and must be all lower case.

In your Account Manager, under Hosting Tools, click to .Reset File Permissions..

what is this saying?

So, this is the error number that was expected based on some previous discussions, If when looking at the instructions, you'll notice that the direction I think it is in step 2, is to install the file (curltester.php and/or ipncheck.php) into the store root directory. (It says earlier that the file(s) are available in the extras folder or can be downloaded. Place the applicable file into your store directory (either from the extras folder or by download) and access the file using that path (not the path to the extras folder). There are controls on the extras folder that essentially prevent acessing it from the internet, so if there is a desire to use the app(s) they need to be made accessible. It is not suggested to change the settings of the folder.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

5 Aug 2013, 2:14 PM
#66
twi avatar

twi

Zen Follower

Join Date:
Aug 2007
Posts:
277
Plugin Contributions:
0

Re: Problem with Paypal connection - Error (28) connect() timed out!

mc12345678:

So, this is the error number that was expected based on some previous discussions, If when looking at the instructions, you'll notice that the direction I think it is in step 2, is to install the file (curltester.php and/or ipncheck.php) into the store root directory. (It says earlier that the file(s) are available in the extras folder or can be downloaded. Place the applicable file into your store directory (either from the extras folder or by download) and access the file using that path (not the path to the extras folder). There are controls on the extras folder that essentially prevent acessing it from the internet, so if there is a desire to use the app(s) they need to be made accessible. It is not suggested to change the settings of the folder.

I see that now. I do have those two files in the extras folder. I was assuming that you just run it as https://www.mysite.co9m/extras/ipncheck.php and https://www.mysite.co9m/extras/curltester.php

I will try to out the files in the root to try testing it. Thanks

5 Aug 2013, 2:25 PM
#67
twi avatar

twi

Zen Follower

Join Date:
Aug 2007
Posts:
277
Plugin Contributions:
0

Re: Problem with Paypal connection - Error (28) connect() timed out!

mc12345678:

Hosting via FatCow... I haven't tried switching PayPal options. I did start working on trying to develop a dynamic encrypted button to have shown if there was an error code of 28 that would show possibly during checkout (hadn't worked on the when to have it shown specifically yet.) Of course have run across some issues with development. Idea was to pass to PayPal the order number and the total charge, or if able I would pass the entire cart contents, but didn't want to make my side complicated at the moment, just functional and using PayPal.

If not mistaken, PayPal Standard uses a different method of communication/end server than trying to reach api-3t.paypal.com.

I apologize for not seeing this earlier, I guess I didn't "update" zen-cart.com to know that I was ready for the next post/email following my earlier posts.

No need for apologies. I would love to have paypal express working too. I am just powerless on the situation. Paypal standard does come through. But My UPS mod is working intermittently. I am losing sales and customers are complaining that they can't get pass the select shipping method page. I hope someone can shed some light on this. my host, Network Solutions are clueless as usual and insist that their servers are working correctly, not to mention a response a week after the problem ticket submission.

Any help from anyone on this forum or any other forum is greatly appreciated.

5 Aug 2013, 2:39 PM
#68
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Problem with Paypal connection - Error (28) connect() timed out!

twi:

I see that now. I do have those two files in the extras folder. I was assuming that you just run it as https://www.mysite.co9m/extras/ipncheck.php and https://www.mysite.co9m/extras/curltester.php

I will try to out the files in the root to try testing it. Thanks

That was my expectation as well, but I had to make a modification that wasn't recommended to get the extras directory to allow the programs to run. The files work, just not while prevented from running in the directory.

Yeah, our leader was just glad to have some form of payment made accessible online. We changed to standard payment also. Still no response whatsoever from host other than they promise they're working on it.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

5 Aug 2013, 3:15 PM
#69
twi avatar

twi

Zen Follower

Join Date:
Aug 2007
Posts:
277
Plugin Contributions:
0

Re: Problem with Paypal connection - Error (28) connect() timed out!

mc12345678:

That was my expectation as well, but I had to make a modification that wasn't recommended to get the extras directory to allow the programs to run. The files work, just not while prevented from running in the directory.

Yeah, our leader was just glad to have some form of payment made accessible online. We changed to standard payment also. Still no response whatsoever from host other than they promise they're working on it.

Glad that works for you on the paypal standard.
After testing, I have the following results for all 4 of my urls (from 2 zc151 sites and 2 zc 139h sites):

REGULAR CURL TEST

CURL Test Page
This page is intended for testing CURL behaviour. You should be accessing this page via CURLTESTER.PHP running on YOUR server.

You submitted the following fields and data:
Array
(
[field1] => This is a test
[statuskey] => ready
)
Data validation
Good
Other Info
Your server IP address is: 209.17.114.78.
Your system identifies itself as: Zen Cart(tm) - CURL TEST


CURL TEST WITH PAYPAL=1

28 connect() timed out!

Array
(
[url] => "https://api-3t.paypal.com/nvp"
[content_type] =>
[http_code] => 0
[header_size] => 0
[request_size] => 0
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 20.016929
[namelookup_time] => 0.017601
[connect_time] => 0
[pretransfer_time] => 0
[size_upload] => 0
[size_download] => 0
[speed_download] => 0
[speed_upload] => 0
[download_content_length] => -1
[upload_content_length] => -1
[starttransfer_time] => 0
[redirect_time] => 0
[certinfo] => Array
(
)

[redirect_url] => 

)


CURL TEST WITH ?ups=1

CURL Test Page
This page is intended for testing CURL behaviour. You should be accessing this page via CURLTESTER.PHP running on YOUR server.

You submitted the following fields and data:
Array
(
[field1] => This is a test
[statuskey] => ready
)
Data validation
Good
Other Info
Your server IP address is: 209.17.114.78.
Your system identifies itself as: Zen Cart(tm) - CURL TEST


IPN CHECK

http://birthdaysextreme.net/ipncheck.php
IPN CHECK

IPNCHECK.PHP - Version 1.3.9

CURL RESPONSE RECEIVED - Communications OKAYIPN TESTING - Response Received via CURL -- COMMUNICATIONS OKAY

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.


can someone help me decipher this?

5 Aug 2013, 8:23 PM
#70
rnrn avatar

rnrn

New Zenner

Join Date:
Feb 2011
Location:
North Florida
Posts:
36
Plugin Contributions:
0

Re: Problem with Paypal connection - Error (28) connect() timed out!

mc12345678:

In summary, follow the instructions posted at http://www.zen-cart.com/showthread.php?65680-PayPal-Communications-Response-Testing-Tools

Instead of downloading the files, copy them over to the location identified in that post to run curltester.php and ipncheck.php.

I followed the instructions in that post. The issue is when I run curltester.php and ipncheck.php I get 403: Forbidden page. I downloaded the ipncheck zip file from that thread and replaced the ipncheck file in my extras folder and tried again with the same result. I'm using 1.3.9h. I'd like to get this resolved so customers can start using paypal again. I've contacted AT&T but they want my hosts IP address. I'm waiting to get a script from the curltester or ipncheck so I can provide them with it. Any other suggestions?

5 Aug 2013, 8:55 PM
#71
twi avatar

twi

Zen Follower

Join Date:
Aug 2007
Posts:
277
Plugin Contributions:
0

Re: Problem with Paypal connection - Error (28) connect() timed out!

put those 2 files in your root instead of having them in your extras folder. then run it. it did just that and it gives me some results that I don't understand which I reported above.

is your UPS mod working? mine was working intermittently, and not working at all now.

5 Aug 2013, 10:43 PM
#72
rnrn avatar

rnrn

New Zenner

Join Date:
Feb 2011
Location:
North Florida
Posts:
36
Plugin Contributions:
0

Re: Problem with Paypal connection - Error (28) connect() timed out!

Thank twi! That worked.

Here are the results:

IPNCHECK.PHP - Version 1.3.9

IPN TESTING - Response Received via CURL -- COMMUNICATIONS OKAY

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.

Curltester

28 connect() timed out!

Array
(
[url] => "https://api-3t.paypal.com/nvp"
[content_type] =>
[http_code] => 0
[header_size] => 0
[request_size] => 0
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 20.020617
[namelookup_time] => 0.019892
[connect_time] => 0
[pretransfer_time] => 0
[size_upload] => 0
[size_download] => 0
[speed_download] => 0
[speed_upload] => 0
[download_content_length] => -1
[upload_content_length] => -1
[starttransfer_time] => 0
[redirect_time] => 0
[certinfo] => Array
(
)

[redirect_url] => 

)

EOF

I guess now it's time to contact my host.

5 Aug 2013, 10:47 PM
#73
rnrn avatar

rnrn

New Zenner

Join Date:
Feb 2011
Location:
North Florida
Posts:
36
Plugin Contributions:
0

Re: Problem with Paypal connection - Error (28) connect() timed out!

twi:

is your UPS mod working? mine was working intermittently, and not working at all now.

I only ship USPS.

Did you ever get anything resolved with NetSol? That's where I'm hosted also.

5 Aug 2013, 11:22 PM
#74
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Problem with Paypal connection - Error (28) connect() timed out!

twi:

put those 2 files in your root instead of having them in your extras folder. then run it. it did just that and it gives me some results that I don't understand which I reported above.

is your UPS mod working? mine was working intermittently, and not working at all now.

I know I said we mostly don't have anything to ship, but we do have ups installed. Where are you getting the dropped connection? I was able to add an item to the cart, select usps, then came back to shipping, selected ups, then came back again, and at all times had shipping rates showing. Is it later when paying that the problem occurs?

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

5 Aug 2013, 11:39 PM
#75
rnrn avatar

rnrn

New Zenner

Join Date:
Feb 2011
Location:
North Florida
Posts:
36
Plugin Contributions:
0

Re: Problem with Paypal connection - Error (28) connect() timed out!

How do I run a traceroute from my site to paypal?

6 Aug 2013, 12:14 AM
#76
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Problem with Paypal connection - Error (28) connect() timed out!

RNRN:

How do I run a traceroute from my site to paypal?
There are several "programs" out there to install and take advantage of traceroute already available by your host if it is, otherwise had found some that use sockets calls to cycle through, if sockets is enabled.

Otherwise, I hadn't found anything for which I had enough access rights to iniatate. Be sure that if/when you do that it is tcp port 443 that is used. Port 80 (default) won't tell you anything useful.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

6 Aug 2013, 12:18 AM
#77
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Problem with Paypal connection - Error (28) connect() timed out!

RNRN:

Thank twi! That worked.

Here are the results:

IPNCHECK.PHP - Version 1.3.9

IPN TESTING - Response Received via CURL -- COMMUNICATIONS OKAY

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.

Curltester

28 connect() timed out!

Array
(
[url] => "https://api-3t.paypal.com/nvp"
[content_type] =>
[http_code] => 0
[header_size] => 0
[request_size] => 0
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 20.020617
[namelookup_time] => 0.019892
[connect_time] => 0
[pretransfer_time] => 0
[size_upload] => 0
[size_download] => 0
[speed_download] => 0
[speed_upload] => 0
[download_content_length] => -1
[upload_content_length] => -1
[starttransfer_time] => 0
[redirect_time] => 0
[certinfo] => Array
(
)

[redirect_url] => 

)

EOF

I guess now it's time to contact my host.

My understanding of those results is that where ever ipncheck was successful, you could use paypal basic (IPN) at least as far as your software is concerned. (Not sure if it establishes communication with paypal or not.). Where the paypal curl failed indicates that paypal express will likely not work. Where you ran just curltester.php, with success indicates that curl works and works with the zencart site. Where tested curl with ups, well, version used for 1.5.0 doesn't know what to do with a ups flag so defaults to zen cart. So no results related to ups there. Just that curl works. May also want to test with ssl=1 to ensure able to have ssl connection and that that is not a problem.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

6 Aug 2013, 3:31 PM
#78
twi avatar

twi

Zen Follower

Join Date:
Aug 2007
Posts:
277
Plugin Contributions:
0

Re: Problem with Paypal connection - Error (28) connect() timed out!

RNRN:

I only ship USPS.

Did you ever get anything resolved with NetSol? That's where I'm hosted also.

NO. They replied yesterday (after a whole week later) that said I have to call them. Let me know if you get anything from them.

So does your USPS Mod work?

6 Aug 2013, 3:37 PM
#79
twi avatar

twi

Zen Follower

Join Date:
Aug 2007
Posts:
277
Plugin Contributions:
0

Re: Problem with Paypal connection - Error (28) connect() timed out!

mc12345678:

I know I said we mostly don't have anything to ship, but we do have ups installed. Where are you getting the dropped connection? I was able to add an item to the cart, select usps, then came back to shipping, selected ups, then came back again, and at all times had shipping rates showing. Is it later when paying that the problem occurs?

Exactly the same thing. If you view shopping cart, quotes are not shown. If you go check out, ups rates intermittently shows. After selecting method for shipping, it will at times either say " your shipping methods have changed and displays the same thing again over and over again. Or at times it says that Unable to get UPS quotes.

I was not able to get anything the past 2 days and all my customers were calling on the matter, which I hopelessly can't fix.

I tried today again, and it appears to be working intermittently again.

As far as payal, Express check out still does not work. standard does. But if UPS doesn't quote rate, then The customer will not even get to the confirm button to see the Paypal Standard page where they log in to pay.

Paypal standard seems to be working as long as UPS provides a quote and get you to the Zencart confirm page.

Let me know if you find out anything on this, because I am loosing all my sales. Hosting doesn't seem to care or they are clueless as well.

6 Aug 2013, 3:46 PM
#80
twi avatar

twi

Zen Follower

Join Date:
Aug 2007
Posts:
277
Plugin Contributions:
0

Re: Problem with Paypal connection - Error (28) connect() timed out!

mc12345678:

My understanding of those results is that where ever ipncheck was successful, you could use paypal basic (IPN) at least as far as your software is concerned. (Not sure if it establishes communication with paypal or not.). Where the paypal curl failed indicates that paypal express will likely not work. Where you ran just curltester.php, with success indicates that curl works and works with the zencart site. Where tested curl with ups, well, version used for 1.5.0 doesn't know what to do with a ups flag so defaults to zen cart. So no results related to ups there. Just that curl works. May also want to test with ssl=1 to ensure able to have ssl connection and that that is not a problem.

Can you help me interpret mine as well. I am really desperate. So what exactly is working and what is not working with me. I am confused.

After testing, I have the following results for all 4 of my urls (from 2 zc151 sites and 2 zc 139h sites):

REGULAR CURL TEST

CURL Test Page
This page is intended for testing CURL behaviour. You should be accessing this page via CURLTESTER.PHP running on YOUR server.

You submitted the following fields and data:
Array
(
[field1] => This is a test
[statuskey] => ready
)
Data validation
Good
Other Info
Your server IP address is: 209.17.114.78.
Your system identifies itself as: Zen Cart(tm) - CURL TEST


CURL TEST WITH PAYPAL=1

28 connect() timed out!

Array
(
[url] => "https://api-3t.paypal.com/nvp"
[content_type] =>
[http_code] => 0
[header_size] => 0
[request_size] => 0
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 20.016929
[namelookup_time] => 0.017601
[connect_time] => 0
[pretransfer_time] => 0
[size_upload] => 0
[size_download] => 0
[speed_download] => 0
[speed_upload] => 0
[download_content_length] => -1
[upload_content_length] => -1
[starttransfer_time] => 0
[redirect_time] => 0
[certinfo] => Array
(
)

[redirect_url] =>
)


CURL TEST WITH ?ups=1

CURL Test Page
This page is intended for testing CURL behaviour. You should be accessing this page via CURLTESTER.PHP running on YOUR server.

You submitted the following fields and data:
Array
(
[field1] => This is a test
[statuskey] => ready
)
Data validation
Good
Other Info
Your server IP address is: 209.17.114.78.
Your system identifies itself as: Zen Cart(tm) - CURL TEST


IPN CHECK

http://birthdaysextreme.net/ipncheck.php
IPN CHECK

IPNCHECK.PHP - Version 1.3.9

CURL RESPONSE RECEIVED - Communications OKAYIPN TESTING - Response Received via CURL -- COMMUNICATIONS OKAY

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.