Zen Cart Logo
Forums / Addon Shipping Modules / Canada post shipping error 110 need help!

Canada post shipping error 110 need help!

Locked

Views: 7,491

Results 1 to 20 of 22
This thread is locked. New replies are disabled.
6 Aug 2007, 12:50 PM
#1
emmasheart avatar

emmasheart

New Zenner

Join Date:
Aug 2007
Location:
Brampton, Ontario, Canada
Posts:
12
Plugin Contributions:
0

Canada post shipping error 110 need help!

Hello,

I have installed the Canada Post module and it is working fine except whenevr I use the check out I get the following error:

Canada Post
Cannot reach Canada Post Server. You may refresh this page (Press F5 on your keyboard) to try again.
110 Connection timed out
If you prefer to use Canada Post as your shipping method, please contact the Emma's Heart - An Organic Journey via Email

I have contacted my internet provider (AMFU.com) , web hosting provider, canada post and nobody knows how to get this to work.

I have opened ports 110 and 30000 on my dlink 524 router both ways and even turned the firewall off but still it won't go through and connect.

PLEASE PLEASE do you have any advice on how to get this to work?

Regards,
Craig

6 Aug 2007, 11:35 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: Canada post shipping error 110 need help!

emmasheart:

I have opened ports 110 and 30000 on my dlink 524 router both ways and even turned the firewall off but still it won't go through and connect.Port 110 is used for incoming email, and is unrelated to Canada Post traffic, which uses only port 30000 for communication.
The "110" in "110 Connection timed out" is only an error number, not a port.

  • Is the "dlink 524 router" you mentioned something that's in your home?
  • Where is your webserver located?
  • Who is your hosting company?
  • What version of PHP are you using?
  • What version of Zen Cart are you using?
  • What is the URL to your site where this error can be seen in action?
8 Aug 2007, 12:39 AM
#3
emmasheart avatar

emmasheart

New Zenner

Join Date:
Aug 2007
Location:
Brampton, Ontario, Canada
Posts:
12
Plugin Contributions:
0

Re: Canada post shipping error 110 need help!

Hi,

Dlink router is the internet sharing box that goes between the modem from Rogers Cable and my computer. It lets me share internet connection and also does wireless for my laptop. http://www.dlink.com/products/?pid=316

My webserver is Rogers High Speed in Toronto, Ontario Canada

I use AFMU PHP web hosting (http://afmu.com/) located in central United States.

I use PHP version is, I believe, 4.4.6

I use Zen Cart version 1.3.7 (latest)

The URL is http://www.emmasheart.com/shop/

Hope this helps to figure it out,
Craig

8 Aug 2007, 2:23 AM
#4
drbyte avatar

drbyte

Sensei

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

Re: Canada post shipping error 110 need help!

emmasheart:

Dlink router is the internet sharing box that goes between the modem from Rogers Cable and my computer. It lets me share internet connection and also does wireless for my laptop.You don't need to change the ports on your home router. It's the ports on the hosting company's firewall that need changing.> emmasheart:

I use AFMU PHP web hosting (http://afmu.com/) located in central United States.What did AFMU say when you asked them to open port 30000 bidirectionally in their firewall ?

8 Aug 2007, 2:26 AM
#5
emmasheart avatar

emmasheart

New Zenner

Join Date:
Aug 2007
Location:
Brampton, Ontario, Canada
Posts:
12
Plugin Contributions:
0

Re: Canada post shipping error 110 need help!

The hosting company says the ports are open and AFMU said:

The port 30000 is open in the server. Your router may be blocking the port. Please check your router configuration.

Everybody says it's somebody else's fault...:(

8 Aug 2007, 3:55 AM
#6
drbyte avatar

drbyte

Sensei

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

Re: Canada post shipping error 110 need help!

In the /includes/modules/shipping/canadapost.php file, around or about line 297 you'll find this:```
$fp = [B]@[/B]fsockopen($host, $port, $errno, $errstr, 3);

Then attempt another checkout-shipping test.
8 Aug 2007, 4:18 AM
#7
emmasheart avatar

emmasheart

New Zenner

Join Date:
Aug 2007
Location:
Brampton, Ontario, Canada
Posts:
12
Plugin Contributions:
0

Re: Canada post shipping error 110 need help!

Hi,

I did that and get this error at the top of the page:

Warning: fsockopen() [function.fsockopen]: unable to connect to sellonline.canadapost.ca:30000 (Connection timed out) in /home/emma/public_html/shop/includes/modules/shipping/canadapost.php on line 298

It messes up the page layout and fonts as well.

Craig

8 Aug 2007, 4:23 AM
#8
drbyte avatar

drbyte

Sensei

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

Re: Canada post shipping error 110 need help!

emmasheart:

Warning: fsockopen() [function.fsockopen]: unable to connect to sellonline.canadapost.ca:30000 (Connection timed out) in /home/emma/public_html/shop/includes/modules/shipping/canadapost.php on line 298

That means that the server your website is running on is unable to talk to the Canada Post server in order to get a quote.
Causes:
a) port 30000 is not open

  • it has to be open in the server's firewall
  • it has to be open in the hosting company's internet firewall
  • it has to be open for both inbound and outbound traffic
    b) webserver cannot resolve the DNS name properly

"Connection timed out" means that it made a request to connect, but got no response back.
The problem is somewhere between your site's server and the general internet.

Only your hosting company can resolve that.

8 Aug 2007, 6:46 AM
#9
pdprenty avatar

pdprenty

New Zenner

Join Date:
Sep 2006
Posts:
58
Plugin Contributions:
0

Re: Canada post shipping error 110 need help!

Ok, so this may be a stupid question (like the "are you sure it is plugged in" quesiton) but you do have a customer account and you are on the Canada Post production server right?

Sorry, I just had to ask.

Pat

8 Aug 2007, 12:24 PM
#10
emmasheart avatar

emmasheart

New Zenner

Join Date:
Aug 2007
Location:
Brampton, Ontario, Canada
Posts:
12
Plugin Contributions:
0

Re: Canada post shipping error 110 need help!

Hi,

I do have an account and the guy I spoke to said there is only one server now, there isn't a "test server" or "production server" anymore, only one server. Is he wrong?

I entered my CPC_XXXNAME on the side in the module but it didn't ask me to put my password anywhere...but I can use them to successfully log onto the Canada Post webiste login.

The Canada Post guy said that when he checked to see if he was getting responses from me he noticed that he wasn't and said the error wasn't with Canada Post. I emailed AFMU.com and they said the port 30000 is open. I checked with Rogers Internet and they said that port 110 is open and for port 30000 I had to contact the host (AFMU.COM)

AFMU.com just sent me this response when I asked them if they are sure if the port is open:

The port 30000 is not bidirectional. It will allow the connection on 30000 port. The logs shows the same;

root@saturn [~]# iptables -nL |grep 30000
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp 30000

Craig

9 Aug 2007, 6:29 AM
#11
pdprenty avatar

pdprenty

New Zenner

Join Date:
Sep 2006
Posts:
58
Plugin Contributions:
0

Re: Canada post shipping error 110 need help!

Ok, well first here are the settings I have (my shipping quotes perfectly)
Canada Post Parcel Service
Enable CanadaPost Shipping
True

Enter CanadaPost Server IP
sellonline.canadapost.ca

Enter CanadaPost Server Port
30000

Enter Selected Language-optional
en

Enter Your CanadaPost Customer ID
CPC_xxxx
Enter Turn Around Time(optional)
0

Tax Class
--none--

Tax Basis
Shipping

Shipping Zone
--none--

Use CP Handling Charge System
True

Handling Charge per box
0

Sort Order
0

*You said:I do have an account and the guy I spoke to said there is only one server now, there isn't a "test server" or "production server" anymore, only one server. Is he wrong?
*No, he is likely right, it has been a few years since I have set it up so I may be out of date on that score. I do remember there were some changes a few years ago.

You have your boxes and services set up correctly I assume?

If you want to test that everything is set up right with Canada post, you can pm me your CP_XXXX (no password required) and I will test it on my site. At least you will be able to eliminate the Canada Post set up if it works. I have mine working perfectly, so if it works for me then it will be your host, or the way your website is set up, if it doesn't work then it is Canada Post, or the way you have your Canada post settings set up.

I am still (6 months later) working on my site, so it is not public and I will be the only one to see the results. If it doesn't work then I can give you my test web site and you can try changing your Canada Post site settings until you get a valid Canada Post shipping quote. I have a lot of stock set up already with weight and dimentions.

Just an offer,
Pat

9 Aug 2007, 6:45 AM
#12
drbyte avatar

drbyte

Sensei

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

Re: Canada post shipping error 110 need help!

Try editing your CP module in Zen Cart admin, and replace sellonline.canadapost.ca with 66.110.6.131 temporarily.
What happens if you test that way?
I suspect you'll see no change, and in that case, it would seem that there's still a firewall blockage.

10 Aug 2007, 3:42 AM
#13
emmasheart avatar

emmasheart

New Zenner

Join Date:
Aug 2007
Location:
Brampton, Ontario, Canada
Posts:
12
Plugin Contributions:
0

Re: Canada post shipping error 110 need help!

Hello,

I have checked all my settings and they match the ones above.

I also tried entering the IP and nothing different happened.

I will PM my CPC to you pdprenty so you can try also.

thanks!

10 Aug 2007, 3:49 AM
#14
emmasheart avatar

emmasheart

New Zenner

Join Date:
Aug 2007
Location:
Brampton, Ontario, Canada
Posts:
12
Plugin Contributions:
0

Re: Canada post shipping error 110 need help!

Also, I disabled my McAfee firewall, windows firewall isn't on, and I disconnected my router and plugged directly into the Rogers modem and still got the same error message...

10 Aug 2007, 6:34 AM
#15
pdprenty avatar

pdprenty

New Zenner

Join Date:
Sep 2006
Posts:
58
Plugin Contributions:
0

Re: Canada post shipping error 110 need help!

I am not really up on IP's servers or hosts. Mine is great and when I have an error message about the server I let them know and they just fix their server or tell me how to fix my settings. I have even had them change my site settings once to get rid of an error I was getting that was my fault.

Anyway.... back to the subject. I tested emmasheart's CP account and I am getting accurate shipping quotes.

That means it is either:

An problem with your host/server or,

A problem with the way that your site is set up.

Since you have matched your shipping module settings to the same as mine, it will not be that, but it is possible that one of your Canada Post module files got corrupted when you ftp'd them or they are not set up right.

I would try reloading the module file includes/modules/shipping/canadapost.php again and see if that fixes it.

Sometimes the error message will give you a clue. Also do a search on this forum using the error message. Many many people on this forum have had problems with modules because of settings or files. 8 times out of 10 I can find the problem from doing a search for the error message. The other 2 times, it is from really thinking about what the message says. The error messages are quite descriptive.

hth, Pat

10 Aug 2007, 11:45 AM
#16
drbyte avatar

drbyte

Sensei

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

Re: Canada post shipping error 110 need help!

emmasheart:

Also, I disabled my McAfee firewall, windows firewall isn't on, and I disconnected my router and plugged directly into the Rogers modem and still got the same error message...

Those are all related to your home internet connection.

The "110 Connection Time Out" error is coming from your webserver ... the server at your hosting company where your online store is running. The problem is with the server's configuration. Only your hosting company can fix it.

10 Aug 2007, 12:59 PM
#17
emmasheart avatar

emmasheart

New Zenner

Join Date:
Aug 2007
Location:
Brampton, Ontario, Canada
Posts:
12
Plugin Contributions:
0

Re: Canada post shipping error 110 need help!

Hi,

I checked with Canada Post again and they said they did receive a request from pdprenty's store so my account works, but they got no requests from my store so they also suggested that it is my provider. I had emailed them and they still claim that 30000 is open. I'm going to repost in the forum and see if anyone else is using my provider successfully...

Thanks,
Craig

11 Aug 2007, 12:43 PM
#18
emmasheart avatar

emmasheart

New Zenner

Join Date:
Aug 2007
Location:
Brampton, Ontario, Canada
Posts:
12
Plugin Contributions:
0

Re: Canada post shipping error 110 need help!

Well, I finally got a TRUE answer from my provider:

Hello Craig,

We could not allow the port 30000 in the server to use. For security reason, we only allow essential ports for services like ftp,mail. If you need any further assistance, please let us know.

Thanks
Regards,
Venkat
Afmu.com Support Team

Unbelieveable - I have email after email from them telling me 30000 was open and now this...

Time to change to a new server! Thanks everyone for your help!!!!

11 Aug 2007, 12:52 PM
#19
emmasheart avatar

emmasheart

New Zenner

Join Date:
Aug 2007
Location:
Brampton, Ontario, Canada
Posts:
12
Plugin Contributions:
0

Re: Canada post shipping error 110 need help!

Now that we are looking for a new webhost, how can we be sure that they will allow port 30000 to be open before we sign up?
Ideally we want a webhost that offers a free package with purchase of domain name (or transfer fee as we already have a domain name)
Or suggestions on providers others are already using would be so appreciated.

Shanta

11 Aug 2007, 6:12 PM
#20
drbyte avatar

drbyte

Sensei

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

Re: Canada post shipping error 110 need help!

At the top of this page is a link named "hosting", where a number of hosting partners are listed. Most of these are willing to open the port you need. Just ask them before you sign up ! They're all pretty friendly.