Zen Cart Logo
Forums / Addon Shipping Modules / USPS Module upgrade not working on our site

USPS Module upgrade not working on our site

Views: 1,865

Results 1 to 13 of 13
5 Aug 2013, 3:05 PM
#1
bachmannstore avatar

bachmannstore

New Zenner

Join Date:
May 2011
Posts:
9
Plugin Contributions:
0

USPS Module upgrade not working on our site

Hello,

We are expericing a problem with the latest USPS module upgrade. We have been using Zen Cart for 5 years and have installed several of these rate upgrades without any problems in the past, but this one is not working for us.

The debug screen gives this information:

-2147219085Rate_Respond.;SOLServerRates.RateV4_RespondInvalid XML Element content is incomplete according to the DTD/Schema.
line= 0 pos= 17551000440

View Source:
USPS build: 2013-07-28 Server: production Quote Request Rate Type: Online USPS Options (weight, time): Display weight USPS Domestic Transit Time Calculation Mode: OLD Cart Weight: 0.0045 Maximum: 50 Tare Rates: Small/Medium: 0:0.03 Large: 10:0 Handling method: Order Handling fee Domestic: $4.00 Handling fee Domestic: $5.00 Decimals: 2 Total Weight: 0.0345 Pounds: 0 Ounces: 1 Length: 8.625 Width: 5.375 Height: 1.625 ZipOrigination: 19124 ZipDestination: 19124 City: philadelphia State: Pennsylvania Order Total: $5.40 RESPONSE FROM USPS: ================================== -2147219085Rate_Respond.;SOLServerRates.RateV4_Respond Invalid XML Element content is incomplete according to the DTD/Schema. line= 0 pos= 17551000440

We are running 1.38a, HTTP Server: Apache/2.2.3 (CentOS), PHP Version: 5.1.6 (Zend: 2.1.0) PHP Memory Limit: 32M, Database: MySQL 5.0.45.

We just want to use USPS first class package and USPS Priority for International shipping. We use a the zone shipping module for our domestic shipping.

Here are my settings ( I omitted my web tools user ID from this post, but it is valid)

USPS Version Date
2013-07-28

Enable USPS Shipping
True

Enter the USPS Web Tools User ID

Which server to use
production

Quote Sort Order
Price-LowToHigh

Handling Fee - US
4

Handling Fee - International
5

Handling Per Order or Per Box
Order

Decimal Settings
2

Tax Class
--none--

Tax Basis
Shipping

Shipping Zone
--none--

Sort Order
0

All Packages are Machinable?
False

USPS Options
Display weight

USPS Domestic Transit Time Calculation Mode
OLD

USPS minimum Length
8.625

USPS minimum Width
5.375

USPS minimum Height
1.625

Enable USPS First-Class filter for US shipping
False

Shipping Methods (Domestic and International)
0, .21875, 0.00, 0, .8125, 0.00, 0, .8125, 0.00, 0, 70, 0.00, 0, 70, 0.00, 0, 70, 0.00, 0, 70, 0.00, 0, 70, 0.00, 0, 70, 0.00, 0, 70, 0.00, 0, 70, 0.00, 0, 70, 0.00, 0, 15, 0.00, 0, 20, 0.00, 0, 25, 0.00, 0, 70, 0.00, 0, 70, 0.00, 0, 70, 0.00, 0, 70, 0.00, 0, .21875, 0.00, 0, 4, 0.00, First-Class Package International ServiceTM**, 0, 4, 0.00, Priority Mail InternationalRM, 0, 66, 0.00, 0, 4, 0.00, 0, 4, 0.00, 0, 20, 0.00, 0, 20, 0.00, 0, 66, 0.00, 0, 4, 0.00, 0, 20, 0.00, 0, 70, 0.00, 0, 70, 0.00

Extra Services (Domestic)
Certified MailRM, N, USPS TrackingTM, N, Insurance, N, Adult Signature Restricted Delivery, N, Registered without Insurance, N, Registered MailTM, N, Collect on Delivery, N, Return Receipt for Merchandise, N, Return Receipt, N, Certificate of Mailing, N, Priority Mail Express Insurance, N, Delivery ConfirmationTM, N, Signature ConfirmationTM, N

Extra Services (International)
Registered Mail, N, Insurance, N, Return Receipt, N, Electronic USPS Delivery Confirmation International, Y, Certificate of Mailing, N

Retail pricing or Online pricing?
Online

Debug Mode
Screen

We have turned off the module until we can get this resolved because it prevents anyone from checking out using our other shipping methods. Any help would be greatly appreciated.

Regards,

Larry

5 Aug 2013, 3:12 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: USPS Module upgrade not working on our site

Could you switch the Debug to Logs ... then try a quote on the checkout_shipping and then look in your directory /cache and Zip the current (most recent) debug logs that start with:
myDEBUG-
SHIP_usps_Debug_

and post the Zip here as an attachment ...

5 Aug 2013, 3:19 PM
#3
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,799
Plugin Contributions:
15

Re: USPS Module upgrade not working on our site

bachmannstore:

We are running 1.38a, HTTP Server: Apache/2.2.3 (CentOS), PHP Version: 5.1.6 (Zend: 2.1.0) PHP Memory Limit: 32M, Database: MySQL 5.0.45.

You probably don't want to hear this but.... Everything you are running on this server is old and subject to hacking, takeover, or worse.

Also, this might be part of your upgrade problem. Ajeh can better tell you if any code in the new USPS is invalid with these old server settings.

5 Aug 2013, 3:31 PM
#4
bachmannstore avatar

bachmannstore

New Zenner

Join Date:
May 2011
Posts:
9
Plugin Contributions:
0

Re: USPS Module upgrade not working on our site

dbltoe,

Thanks. We are planning an upgrade, but we are tesing another copy to make sure everthing works before we implement it.

Larry

5 Aug 2013, 3:50 PM
#5
bachmannstore avatar

bachmannstore

New Zenner

Join Date:
May 2011
Posts:
9
Plugin Contributions:
0

Re: USPS Module upgrade not working on our site

Ajeh,

Here is the log file. When I use this setting, the screen goes completely white and locks up.

Regards,

Larry

5 Aug 2013, 5:23 PM
#6
bachmannstore avatar

bachmannstore

New Zenner

Join Date:
May 2011
Posts:
9
Plugin Contributions:
0

Re: USPS Module upgrade not working on our site

Ajeh,

This file may be more useful. I kept the module active for a little while to gather more information.

Regards,

Larry

6 Aug 2013, 2:08 PM
#7
bachmannstore avatar

bachmannstore

New Zenner

Join Date:
May 2011
Posts:
9
Plugin Contributions:
0

Re: USPS Module upgrade not working on our site

Ajeh,

We are working on an 1.39h upgrade. (We don't want the required password changes of 1.5.) We have to upgrade our server programs to meet the minimum requirements. Will upgrading to 1.39h solve our problem with this module?

Thanks,

Larry

6 Aug 2013, 2:43 PM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: USPS Module upgrade not working on our site

In your v1.3.8a, there is a file:
/extras/curltest.php

Could you run that file:
your_domain.com/your_subdirectory_if_any/extras/curltest.php

and see what comes up?

6 Aug 2013, 3:02 PM
#9
bachmannstore avatar

bachmannstore

New Zenner

Join Date:
May 2011
Posts:
9
Plugin Contributions:
0

Re: USPS Module upgrade not working on our site

Ajeh,

Here is what the browser returned:

28 connect() timed out!

Array
(
[url] => "http://www.zen-cart.com/testcurl.php"
[http_code] => 0
[header_size] => 0
[request_size] => 0
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 0
[namelookup_time] => 0.025689
[connect_time] => 0
[pretransfer_time] => 0
[size_upload] => 0
[size_download] => 0
[speed_download] => 0
[speed_upload] => 0
[download_content_length] => 0
[upload_content_length] => 0
[starttransfer_time] => 0
[redirect_time] => 0
)

Regards,

Larry

6 Aug 2013, 3:07 PM
#10
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: USPS Module upgrade not working on our site

That sounds to me like CURL is not working on your site for v1.3.8a and that means ... you are doomed ... :blink:

If you run the same file on your v1.3.9h, do you get different results?

NOTE: on the failed CURL for your v1.3.8a, if that is what the issue is about, you need your Hosting provider to fix your site so that you can use CURL ...

6 Aug 2013, 3:19 PM
#11
bachmannstore avatar

bachmannstore

New Zenner

Join Date:
May 2011
Posts:
9
Plugin Contributions:
0

Re: USPS Module upgrade not working on our site

I will get our webmaster to investigate more, but we use the Payflow Pro gateway module and we are not having any problems collecting payment. This module requires curl???????????

6 Aug 2013, 3:22 PM
#12
bachmannstore avatar

bachmannstore

New Zenner

Join Date:
May 2011
Posts:
9
Plugin Contributions:
0

Re: USPS Module upgrade not working on our site

Also,

I had to reupload the extras folder because I removed it per the security recommendations. Does the curltest.php file require any special permissions?

6 Aug 2013, 4:09 PM
#13
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: USPS Module upgrade not working on our site

No you should just be able to run it if it is there ...