I just created a UPS online account and now am trying to test to see if the rate quote works correctly but the receiving quotes part is just not going anywhere. I got all the account info I need, but it's been on the cart/checkout page for about 15 minutes now.
Any idea on what could be the problem?
Not receiving UPS shipping quotes
|
|
You could read this thread: http://www.ubercart.org/forum/support/1756/usps_webtools
I'm using UPS not USPS. I read this post: http://www.ubercart.org/forum/support/449/ups_information_quesiton and checked everything they mentioned. Changing from Testing to Production helped a little, but now I get this: "There were problems getting a shipping quote. Please verify the delivery and product information and try again.
If this does not resolve the issue, please call in to complete your order."
Sorry, I misread. I haven't gotten around to adding UPS to my site yet, so I can't help you there.
This is the detailed error message I get:
<?xml version="1.0" encoding="UTF-8"?>
<RatingServiceSelectionRequest xml:lang="en-US">
<Request>
<TransactionReference>
<CustomerContext>Complex Rate Request</CustomerContext>
<XpciVersion>1.0001</XpciVersion>
</TransactionReference>
<RequestAction>Rate</RequestAction>
<RequestOption>rate</RequestOption>
</Request>
<PickupType>
<Code>06</Code>
</PickupType>
<Shipment>
<Shipper>
<ShipperNumber>XXXXX</ShipperNumber>
<Address>
<City>Beltsville</City>
<StateProvinceCode>MD</StateProvinceCode>
<PostalCode>20705</PostalCode>
<CountryCode>US</CountryCode>
</Address>
</Shipper>
<ShipTo>
<Address>
<StateProvinceCode></StateProvinceCode>
<PostalCode>20001</PostalCode>
<CountryCode>US</CountryCode>
</Address>
</ShipTo>
<ShipFrom>
<Address>
<StateProvinceCode>MD</StateProvinceCode>
<PostalCode>20705</PostalCode>
<CountryCode>US</CountryCode>
</Address>
</ShipFrom>
<ShipmentWeight>
<UnitOfMeasurement>
<Code>LBS</Code>
</UnitOfMeasurement>
<Weight>20</Weight>
</ShipmentWeight>
<Service>
<Code>03</Code>
<Description>UPS Ground</Description>
</Service>
<Package><PackagingType><Code>25</Code></PackagingType><PackageWeight><UnitOfMeasurement><Code>LBS</Code><Description>Pounds</Description></UnitOfMeasurement><Weight>20</Weight></PackageWeight><PackageServiceOptions><InsuredValue><CurrencyCode>USD</CurrencyCode><MonetaryValue>99.99</MonetaryValue></InsuredValue></PackageServiceOptions></Package></Shipment>
</RatingServiceSelectionRequest> There ought to be a <RatingServiceSelectionResponse> after that containing the error details. Without that, I'm just guessing, but it looks like you don't have a state code in the delivery address. As long as all of your authentication keys are right, that's the only thing wrong I see.
Well it turns out all my configurations were fine, but the problem was with the host - Godaddy. I exported my database and installed it on another host and it worked just fine. Then to be sure, I copied that database back to the godaddy version and it didn't work. Godaddy runs php 4.3.11, could this be an issue?
Godaddy support said to look at this link: http://help.godaddy.com/article.php?article_id=289&topic_id
The UPS module doesn't use CURL, but I bet GoDaddy's proxy server is the problem. I don't have any idea what I can do about that though.
...
Oho! There's a comment in drupal_http_request() under the section about https:
<?php
// Note: Only works for PHP 4.3 compiled with OpenSSL.
?>On your GoDaddy site, go to admin/logs/status/php and search for '--with-openssl' on the page. I'll be surprised if it's there.
It's there. Under OpenSSL it says enabled and lists the version.
Hello,
i will appreciate it if you can get the link to register a ups account for pick up i really need it to get my packages out of the united state.
Jacobs
I had my site running perfectly well (including the UPS module) on one host and moved it to GoDaddy in hopes that their server would be faster (it is faster than my previous host). Except now checking for shipping quotes does not work with UPS - although it does work for USPS.
Any Ideas?
Thank you!
Has SSH been configured right on the GoDaddy server? UPS is pretty picky about that.
Thank you for the reply. Today an SSL certificate was installed on my account. I also have the securepages module working properly.
I just checked the 'calculate shipping cost' and I am still not getting quotes from UPS.
perhaps it takes awhile for SSL to register?
SSL does not have a time until it registers - it is automatic, as long as your web service is connecting from an https:// version of your site.
Can you get the Debug information from your UPS quote request? (Check the box under your quote settings in admin/store/settings)
Okay, I have the "Display debug information to administrators." checked off.
When I attempt to check out and select an address the "Receiving quotes" progress just keeps going... i've waited several minutes.
Is there another place to check the debug information?
thanks again for all the help! greatly appreciated!
Hmmm okay, can you test using the Firefox browser? Download the extension called "Firebug" and hit the "Get quotes" button. You should see, in the Console for Firebug (you'll need to hit F12 to bring Firebug up) some POST variables and their responses. Try posting here whatever messages Firebug receives. I'm not sure at this point what the issue could be, sounds like the SSL issue that was mentioned before to be honest - either that or possibly a PHP version (simplexml) issue...
Okay, per your advice I downloaded Firebug and checked the POST data for checkout/shipping/quote:
Headers Data:
Request Headers
Host www.visionandhope.org
User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14
Accept text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language en-us
Accept-Encoding gzip,deflate
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive 300
Connection close
Content-Type application/x-www-form-urlencoded
X-Requested-With XMLHttpRequest
Referer https://www.visionandhope.org/cart/checkout
Content-Length 629
Cookie SESScc755b1b98759a464bea40686f3e0085=b05b5c43eeaf4e0cf6f659c4e96e67af
Pragma no-cache
Cache-Control no-cache
Post Data:
details[address_select] 0
details[city] Los Angeles
details[company]
details[country] 840
details[first_name] Arash
details[last_name] Abcdef
details[phone]
details[postal_code] 90025
details[street1] 2025 Sawtelle Blvd
details[street2]
details[zone] 12
products 6%5EAK%5EAK1%5E%5E1%5E0%5E4%5E1%5Ea%3A4%3A%7Bs%3A10%3A%22attributes%22%3Ba%3A1%3A%7Bi%3A2%3Bs%3A1%3A%228%22%3B%7Ds%3A5%3A%22model%22%3Bb%3A0%3Bs%3A6%3A%22module%22%3Bs%3A10%3A%22uc_product%22%3Bs%3A9%3A%22shippable%22%3Bs%3A1%3A%221%22%3B%7D
uid 1
Response:
Loading...
Furthermore after some time I get a syntax error
Hmm, well I thought that the details[] array would be converted to be in the same POST string as the products data - not sure why that's not the case here. At least, that's how it works for the USPS module.
The only thing I can really think of that might cause it to work on one host and not the other would be your PHP version. Do you know what version you are using? If it's less than 4.4 I would see about upgrading. If you can update to PHP 5.2.5 you will be in even better shape. (PHP5 at least).
My PHP version appears to be 5.2.5
Also GoDaddy is showing my SSl Status as Active. I have what they are calling a "Premium" SSL.
System Info below...
System info
Drupal
Version 5.7
Configuration file sites/default/settings.php
Cron Last run 37 min 52 sec ago
File system path files
More information about the drupal installation can be found here.
Web server
Type Apache
Version Unknown
Operating system Linux
PHP interface cgi-fcgi
URL https://www.visionandhope.org
PHP
Version 5.2.5
Magic quotes GPC On
Magic quotes runtime Off
Memory limit 32M
Register globals Off
Safe mode Off
Session cache limiter none
Session cookie domain .visionandhope.org
Session name SESScc755b1b98759a464bea40686f3e0085
Session save handler user
Upload max filesize 32M
Extensions
CURL version 7.10.6
GD version bundled (2.0.34 compatible)
FreeType support Enabled
JPG support Enabled
PNG support Enabled
Multibyte support Enabled
XML support Enabled
Zip support Enabled
Zlib support Enabled
Database server
Host p50mysql157.secureserver.net
Name visionandhope
Type MySQL
Version 5.0.45
Charset utf8
Collation utf8_general_ci
Permissions
Create temporary tables Disallowed
Lock tables Disallowed
Table prefix
arrrgg
I noticed magic_quotes_gpc is on in your config; it is Off on mine. I don't think that would cause this issue, especially since it's not one of those config options Drupal seems to care about. Interesting, nonetheless. The only other thing is that I noticed PHP is being run as CGI? And not an Apache module... I doubt that has anything to do with it, either - just something that caught my eye.
In either event it just seems that your UPS request is not getting posted correctly. Might require some digging into the code or writing a custom module that just does some basic testing with POST. I'm not sure what else the problem could be caused by - sorry! Lyle, if you have any input...?
What kind of syntax error? Where's it coming from? Have you turned on the debug output in the shipping quote settings?
Yes, I have turned on the debug option in the shipping quote... but it gets stuck with the Receiving quotes and never progresses to the next screen that shows the errors... Unless there is another way of checking for errors using the debug option??
Using Firebug, i get the following error after a period of time shipping quote is running:
// $Id: jquery.js,v 1.6 2006/12/23 21:46:35 dries Exp $
2eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('l(1l 1x.6=="Q"){1x.Q=1x.Q;u 6=q(a,c){l(a&&1l a=="q"&&6.C.21&&!a.1G&&a[0]==Q)v 6(Y).21(a);a=a||Y;l(a.3n)v 6(6.1Q(a,[]));l(c&&c.3n)v 6(c).1X(a);l(1x==7)v 1m 6(a,c);l(1l a=="24"){u m=/^[^<]*(<.+>)[^>]*$/.3c(a);l(m)a=6.3F([m[1]])}7.2a(a.14==2o||a.D&&a!=1x&&!a.1G&&a[0]!=Q&&a[0].1G?6.1Q(a,[]):6.1X(a,c));u C=15[15.D-1];l(C&&1l C=="q")7.V(C);v 7};l(1l $!="Q")6.3W$=$;u $=6;6.C=6.8h={3n:"1.0.4",66:q(){v 7.D},1S:q(2R){v 2R==Q?6.1Q(7,[]):7[2R]},2a:q(64){7.D=0;[].1q.17(7,64);v 7},V:q(C,1h){v 6.V(7,C,1h)},8k:q(1j){u 2h=-1;7.V(q(i){l(7==1j)2h=i});v 2h},1r:q(1I,11,B){v 1I.14!=3X||11!=Q?7.V(q(){l(11==Q)J(u E 1z 1I)6.1r(B?7.1o:7,E,1I[E]);G 6.1r(B?7.1o:7,1I,11)}):6[B||"1r"](7[0],1I)},1a:q(1I,11){v 7.1r(1I,11,"3j")},2D:q(e){e=e||7;u t="";J(u j=0;j0:W},2V:q(1h,23,2T,C){u 4F=7.66()>1;u a=6.3F(1h);v 7.V(q(){u 1j=7;l(23&&7.2t.2d()=="8p"&&a[0].2t.2d()!="8q"){u 25=7.51("25");l(!25.D){1j=Y.5Y("25");7.49(1j)}G 1j=25[0]}J(u i=(2T<0?a.D-1:0);i!=(2T<0?2T:a.D);i+=2T){C.17(1j,[4F?a[i].3I(P):a[i]])}})},2i:q(a,1h){u C=1h&&1h[1h.D-1];u 2m=1h&&1h[1h.D-2];l(C&&C.14!=1A)C=L;l(2m&&2m.14!=1A)2m=L;l(!C){l(!7.2n)7.2n=[];7.2n.1q(7.1S());7.2a(a)}G{u 20=7.1S();7.2a(a);l(2m&&a.D||!2m)7.V(2m||C).2a(20);G 7.2a(20).V(C)}v 7}};6.1y=6.C.1y=q(){u 1T=15[0],a=1;l(15.D==1){1T=7;a=0}u E;1V(E=15[a++])J(u i 1z E)1T[i]=E[i];v 1T};6.1y({5R:q(){6.68=P;6.V(6.2c.5J,q(i,n){6.C[i]=q(a){u R=6.2C(7,n);l(a&&1l a=="24")R=6.18(a,R).r;v 7.2i(R,15)}});6.V(6.2c.2w,q(i,n){6.C[i]=q(){u a=15;v 7.V(q(){J(u j=0;j",""];G l(!s.1f("<6t")||!s.1f("<25"))1W=[1,"<23>",""];G l(!s.1f("<3Q"))1W=[2,"<23>",""];G l(!s.1f("<6v")||!s.1f("<6w"))1W=[3,"<23><25><3Q>",""];2b.31=1W[1]+s+1W[2];1V(1W[0]--)2b=2b.26;1C=2b.2x}l(1C.D!=Q&&((6.T.2l&&1l 1C==\'q\')||!1C.1G))J(u n=0;n<1C.D;n++)r.1q(1C[n]);G r.1q(1C.1G?1C:Y.81(1C.7Z()))}v r},2z:{"":"m[2]== \'*\'||a.2t.2d()==m[2].2d()","#":"a.48(\'35\')&&a.48(\'35\')==m[2]",":":{5G:"im[3]-0",5V:"m[3]-0==i",5F:"m[3]-0==i",2j:"i==0",1R:"i==r.D-1",5f:"i%2==0",5g:"i%2","5V-3z":"6.1B(a,m[3]).1c","2j-3z":"6.1B(a,0).1c","1R-3z":"6.1B(a,0).1R","6A-3z":"6.1B(a).D==1",5L:"a.2x.D",5P:"!a.2x.D",5I:"6.C.2D.17([a]).1f(m[3])>=0",6C:"a.B!=\'1Y\'&&6.1a(a,\'1b\')!=\'1O\'&&6.1a(a,\'4p\')!=\'1Y\'",1Y:"a.B==\'1Y\'||6.1a(a,\'1b\')==\'1O\'||6.1a(a,\'4p\')==\'1Y\'",6D:"!a.2O",2O:"a.2O",2U:"a.2U",4o:"a.4o || 6.1r(a, \'4o\')",2D:"a.B==\'2D\'",4n:"a.B==\'4n\'",5T:"a.B==\'5T\'",4G:"a.B==\'4G\'",5W:"a.B==\'5W\'",4x:"a.B==\'4x\'",4V:"a.B==\'4V\'",4v:"a.B==\'4v\'",4j:"a.B==\'4j\'",4W:"/4W|3E|6H|4j/i.1U(a.2t)"},".":"6.1e.3k(a,m[2])","@":{"=":"z==m[4]","!=":"z!=m[4]","^=":"z && !z.1f(m[4])","$=":"z && z.2Z(z.D - m[4].D,m[4].D)==m[4]","*=":"z && z.1f(m[4])>=0","":"z"},"[":"6.1X(m[2],a).D"},3u:["\\\\.\\\\.|/\\\\.\\\\.","a.1i",">|/","6.1B(a.26)","\\\\+","6.1B(a).3s","~",q(a){u s=6.1B(a);v s.n>=0?s.5o(s.n+1):[]}],1X:q(t,1u){l(1u&&1u.1G==Q)1u=L;1u=1u||Y;l(t.14!=3X)v[t];l(!t.1f("//")){1u=1u.47;t=t.2Z(2,t.D)}G l(!t.1f("/")){1u=1u.47;t=t.2Z(1,t.D);l(t.1f("/")>=1)t=t.2Z(t.1f("/"),t.D)}u R=[1u];u 1N=[];u 1R=L;1V(t.D>0&&1R!=t){u r=[];1R=t;t=6.2Q(t).1E(/^\\/\\//i,"");u 3t=W;J(u i=0;i<6.3u.D;i+=2){l(3t)5e;u 2p=1m 3V("^("+6.3u[i]+")");u m=2p.3c(t);l(m){r=R=6.2C(R,6.3u[i+1]);t=6.2Q(t.1E(2p,""));3t=P}}l(!3t){l(!t.1f(",")||!t.1f("|")){l(R[0]==1u)R.3S();1N=6.1Q(1N,R);r=R=[1u];t=" "+t.2Z(1,t.D)}G{u 4H=/^([#.]?)([a-5c-9\\\\*3W-]*)/i;u m=4H.3c(t);l(m[1]=="#"){u 3R=Y.5b(m[2]);r=R=3R?[3R]:[];t=t.1E(4H,"")}G{l(!m[2]||m[1]==".")m[2]="*";J(u i=0;i<\\/1Z>");u 1Z=Y.5b("59");l(1Z)1Z.2H=q(){l(7.38!="1t")v;7.1i.3v(7);6.21()};1Z=L}G l(6.T.2l){6.3L=4d(q(){l(Y.38=="6d"||Y.38=="1t"){5j(6.3L);6.3L=L;6.21()}},10)}6.F.29(1x,"2Y",6.21)};l(6.T.1n)6(1x).4D(q(){u F=6.F,1k=F.1k;J(u B 1z 1k){u 3N=1k[B],i=3N.D;l(i>0)6m l(B!=\'4D\')F.28(3N[i-1],B);1V(--i)}});6.C.1y({4M:6.C.1s,1s:q(16,K){v 16?7.22({27:"1s",3J:"1s",1g:"1s"},16,K):7.4M()},4P:6.C.1p,1p:q(16,K){v 16?7.22({27:"1p",3J:"1p",1g:"1p"},16,K):7.4P()},6r:q(16,K){v 7.22({27:"1s"},16,K)},6s:q(16,K){v 7.22({27:"1p"},16,K)},6u:q(16,K){v 7.V(q(){u 4T=6(7).4s(":1Y")?"1s":"1p";6(7).22({27:4T},16,K)})},6x:q(16,K){v 7.22({1g:"1s"},16,K)},6y:q(16,K){v 7.22({1g:"1p"},16,K)},6B:q(16,2w,K){v 7.22({1g:2w},16,K)},22:q(E,16,K){v 7.1w(q(){7.2S=6.1y({},E);J(u p 1z E){u e=1m 6.2X(7,6.16(16,K),p);l(E[p].14==4Y)e.2v(e.1c(),E[p]);G e[E[p]](E)}})},1w:q(B,C){l(!C){C=B;B="2X"}v 7.V(q(){l(!7.1w)7.1w={};l(!7.1w[B])7.1w[B]=[];7.1w[B].1q(C);l(7.1w[B].D==1)C.17(7)})}});6.1y({16:q(s,o){o=o||{};l(o.14==1A)o={1t:o};u 4Z={6E:6G,6I:4I};o.2J=(s&&s.14==4Y?s:4Z[s])||53;o.3x=o.1t;o.1t=q(){6.52(7,"2X");l(o.3x&&o.3x.14==1A)o.3x.17(7)};v o},1w:{},52:q(I,B){B=B||"2X";l(I.1w&&I.1w[B]){I.1w[B].3S();u f=I.1w[B][0];l(f)f.17(I)}},2X:q(I,2A,E){u z=7;z.o={2J:2A.2J||53,1t:2A.1t,2u:2A.2u};z.U=I;u y=z.U.1o;u 44=6.1a(z.U,\'1b\');y.1b="2r";y.43="1Y";z.a=q(){l(2A.2u)2A.2u.17(I,[z.2f]);l(E=="1g")6.1r(y,"1g",z.2f);G l(5w(z.2f))y[E]=5w(z.2f)+"6V"};z.57=q(){v 3T(6.1a(z.U,E))};z.1c=q(){u r=3T(6.3j(z.U,E));v r&&r>-70?r:z.57()};z.2v=q(4C,2w){z.4e=(1m 5h()).5i();z.2f=4C;z.a();z.41=4d(q(){z.2u(4C,2w)},13)};z.1s=q(){l(!z.U.1v)z.U.1v={};z.U.1v[E]=7.1c();z.o.1s=P;z.2v(0,z.U.1v[E]);l(E!="1g")y[E]="5d"};z.1p=q(){l(!z.U.1v)z.U.1v={};z.U.1v[E]=7.1c();z.o.1p=P;z.2v(z.U.1v[E],0)};z.3h=q(){l(!z.U.1v)z.U.1v={};z.U.1v[E]=7.1c();l(44==\'1O\'){z.o.1s=P;l(E!="1g")y[E]="5d";z.2v(0,z.U.1v[E])}G{z.o.1p=P;z.2v(z.U.1v[E],0)}};z.2u=q(4l,4f){u t=(1m 5h()).5i();l(t>z.o.2J+z.4e){5j(z.41);z.41=L;z.2f=4f;z.a();z.U.2S[E]=P;u 1N=P;J(u i 1z z.U.2S)l(z.U.2S[i]!==P)1N=W;l(1N){y.43=\'\';y.1b=44;l(6.1a(z.U,\'1b\')==\'1O\')y.1b=\'2r\';l(z.o.1p)y.1b=\'1O\';l(z.o.1p||z.o.1s)J(u p 1z z.U.2S)l(p=="1g")6.1r(y,p,z.U.1v[p]);G y[p]=\'\'}l(1N&&z.o.1t&&z.o.1t.14==1A)z.o.1t.17(z.U)}G{u p=(t-7.4e)/z.o.2J;z.2f=((-5B.7r(p*5B.7v)/2)+0.5)*(4f-4l)+4l;z.a()}}}});6.C.1y({7B:q(N,1P,K){7.2Y(N,1P,K,1)},2Y:q(N,1P,K,1F){l(N.14==1A)v 7.34("2Y",N);K=K||q(){};u B="67";l(1P){l(1P.14==1A){K=1P;1P=L}G{1P=6.3g(1P);B="62"}}u 4i=7;6.3C({N:N,B:B,H:1P,1F:1F,1t:q(2F,1d){l(1d=="2k"||!1F&&1d=="5u"){4i.3D(2F.3p).4y().V(K,[2F.3p,1d,2F])}G K.17(4i,[2F.3p,1d,2F])}});v 7},7G:q(){v 6.3g(7)},4y:q(){v 7.1X(\'1Z\').V(q(){l(7.3w)6.61(7.3w);G{6.4u(7.2D||7.7K||7.31||"")}}).4m()}});l(6.T.1n&&1l 3f=="Q")3f=q(){v 1m 7O("7S.7T")};1m q(){u e="4S,5O,5M,5K,5E,5q".3B(",");J(u i=0;i-1)?"&":"?")+s.H}l(s.1k&&!6.4z++)6.F.1J("4S");u 4q=W;u M=1m 3f();M.6z(s.B,s.N,s.4U);l(s.H)M.3l("6F-6J",s.50);l(s.1F)M.3l("6K-4t-6M",6.3A[s.N]||"6O, 6R 6T 6W 3U:3U:3U 72");M.3l("X-74-75","3f");l(M.76)M.3l("77","79");l(s.46)s.46(M);l(s.1k)6.F.1J("5q",[M,s]);u 2H=q(4b){l(M&&(M.38==4||4b=="1M")){4q=P;u 1d=6.63(M)&&4b!="1M"?s.1F&&6.4K(M,s.N)?"5u":"2k":"2E";l(1d!="2E"){u 3m;37{3m=M.45("4R-4t")}3e(e){}l(s.1F&&3m)6.3A[s.N]=3m;u H=6.5k(M,s.3K);l(s.2k)s.2k(H,1d);l(s.1k)6.F.1J("5E",[M,s])}G{l(s.2E)s.2E(M,1d);l(s.1k)6.F.1J("5K",[M,s])}l(s.1k)6.F.1J("5M",[M,s]);l(s.1k&&!--6.4z)6.F.1J("5O");l(s.1t)s.1t(M,1d);M.2H=q(){};M=L}};M.2H=2H;l(s.1M>0)5Z(q(){l(M){M.7P();l(!4q)2H("1M");M=L}},s.1M);M.88(s.H);v M},4z:0,63:q(r){37{v!r.1d&&8j.8m=="4G:"||(r.1d>=4I&&r.1d<6g)||r.1d==5U||6.T.2l&&r.1d==Q}3e(e){}v W},4K:q(M,N){37{u 4X=M.45("4R-4t");v M.1d==5U||4X==6.3A[N]||6.T.2l&&M.1d==Q}3e(e){}v W},5k:q(r,B){u 4a=r.45("7b-B");u H=!B&&4a&&4a.1f("M")>=0;H=B=="M"||H?r.7w:r.3p;l(B=="1Z"){6.4u(H)}l(B=="5Q")4c("H = "+H);l(B=="3D")6("<2b>").3D(H).4y();v H},3g:q(a){u s=[];l(a.14==2o||a.3n){J(u i=0;i
Firebug is showing that the error is coming from "jquery.js (line 2)"
Around line 885 of uc_ups.module, you'll see this line:
<?php
$request = uc_ups_shipping_quote($ship_packages, $orig, $dest, $ups_service);
?>Add a line after that to print out the $request string. Now the line above will look like this:
<?php
$request = uc_ups_shipping_quote($ship_packages, $orig, $dest, $ups_service);
drupal_set_message('<pre>'.$print_r($request).'</pre>');
?>You can do the same for the $resp variable, which comes directly after the $request assignment - but that data is usually what is spat out during the Debug display. Unfortunately since it looks like your JS is choking somewhere it never gets to that point past the call to jquery.js.
So you can add that drupal_set_message line there, and then check for quotes, and reload the page - the $request that drupal sends out will be printed out as a gray message at the top of the content layer. Printing out the $response will at least let you make sure the POST is well-formed; doing the same for the $response will probably yield null if jquery is choking, which seems to be the case.
I did both of the above and I do get some output when I browse away from the page. should I post it here? i think it includes my password etc?
thanks.
Well if you did get output then that's probably a good thing - you can post it and just XXXXXX out your password and other credentials if you want.
Obviously my first point would be to make sure your Origin information is setup
I think there is a place for your address in main Drupal settings and/or the Store admin. (An obvious thing but I figured I'd ask) 
I had to slightly modify your instructions to get this to print ( drupal_set_message($request)
...
4C26718870XXXXXX visionandhope XXXXXX Complex Rate Request 1.0001 Rate rate 03 04 73XXXX
Los Angeles CA 90067 US
CA 90049 US
CA 90067 US
LBS 1.0 11 UPS Standard 02IN18.0012.002.00LBSPounds1.0USD4
4C26718870XXXXXX visionandhope XXXXXX Complex Rate Request 1.0001 Rate rate 03 04 73XXXX
Los Angeles CA 90067 US
CA 90049 US
CA 90067 US
LBS 1.0 13 UPS Next Day Air Saver 02IN18.0012.002.00LBSPounds1.0USD4
4C26718870XXXXXX visionandhope XXXXXX Complex Rate Request 1.0001 Rate rate 03 04 73XXXX
Los Angeles CA 90067 US
CA 90049 US
CA 90067 US
LBS 1.0 02 UPS 2nd Day Air 02IN18.0012.002.00LBSPounds1.0USD4
4C26718870XXXXXX visionandhope XXXXXX Complex Rate Request 1.0001 Rate rate 03 04 73XXXX
Los Angeles CA 90067 US
CA 90049 US
CA 90067 US
LBS 1.0 12 UPS 3-Day Select 02IN18.0012.002.00LBSPounds1.0USD4
Yes, I believe I do have the correct Origin information...
edit: I should also note that there is a blank bullet between each set of entries that does not show up when I past.
Yeah I'm lost at this point - perhaps Lyle knows what is going on here. I don't have experience with UPS module myself, just USPS - but I thought the data that gets sent via POST would be one long string? Is that data you are sending... is that how it's formatted in the $request? Because normally when an http request goes out as POST it's usually just one long string full of url-encoded variables. Is that not what UPS requires?
And if it is what UPS requires, which I'm sure it is, the question is: why isn't your server formatting it correctly?
try doing
<?php
drupal_set_message('<pre>'. $request .'</pre>');
?>This should let the XML tags show up on your message so you can post them here. Use <code> tags so that they'll be visible in the Input filter.
Anywho. It does look like the information is getting to the UPS module correctly. Even without the XML tags, I can see that it would be right. What is the value of the $resp variable after the drupal_http_request()? That's going to be the real key, I think.
Okay, what I'm getting from this is that UPS will not deliver quotes if the Ubercart store is not up and running behind a secure connection. Is that correct?
Getting UPS quotes is failing silently for us (while FedEx is working fine). We haven't set up the SSL goodness yet, so perhaps that's the problem. We're hitting UPS's testing servers (the site is not yet live)… it would be nice if we could at least get test quotes from a standard HTTP connection, but them's the breaks, I guess. If it looks like this is really the problem, I'll contact the powers that be about moving forward getting us behind an SSL connection.
Also, some of the long strings in the posts above are horribly breaking the layout of this page… Surely others see it as well?
Hi Lyle,
Here is the output when I insert the requested code. I will also try to see if I can get the $resp value.
*
4C267188xxxxxxxx
visionandhope
xxxxxx
Complex Rate Request
1.0001
Rate
rate
03
04
73xxxx
Los Angeles CA 90067 US
CA 90049 US
CA 90067 US
LBS
1.0
11
UPS Standard
21LBSPounds1.0USD4
*
4C267188xxxxxxxx
visionandhope
xxxxxx
Complex Rate Request
1.0001
Rate
rate
03
04
73xxxx
Los Angeles CA 90067 US
CA 90049 US
CA 90067 US
LBS
1.0
13
UPS Next Day Air Saver
21LBSPounds1.0USD4
*
4C267188xxxxxxxx
visionandhope
xxxxxx
Complex Rate Request
1.0001
Rate
rate
03
04
73xxxx
Los Angeles CA 90067 US
CA 90049 US
CA 90067 US
LBS
1.0
02
UPS 2nd Day Air
21LBSPounds1.0USD4
*
4C267188xxxxxxxx
visionandhope
xxxxxx
Complex Rate Request
1.0001
Rate
rate
03
04
73xxxx
Los Angeles CA 90067 US
CA 90049 US
CA 90067 US
LBS
1.0
12
UPS 3-Day Select
21LBSPounds1.0USD4I dont know if this makes any sense but I get this error message when I have the following:
$resp = drupal_http_request(variable_get('uc_ups_connection_address', 'https://wwwcie.ups.com/ups.app/xml/') .'Rate', array(), 'POST', $request);
drupal_set_message('<pre>'. $resp .'</pre>');Error message:
* recoverable fatal error: Object of class stdClass could not be converted to string in /home/content/v/i/s/visionandhope/html/modules/ubercart/shipping/uc_ups/uc_ups.module on line 891.
* recoverable fatal error: Object of class stdClass could not be converted to string in /home/content/v/i/s/visionandhope/html/modules/ubercart/shipping/uc_ups/uc_ups.module on line 891.
* recoverable fatal error: Object of class stdClass could not be converted to string in /home/content/v/i/s/visionandhope/html/modules/ubercart/shipping/uc_ups/uc_ups.module on line 891.
* recoverable fatal error: Object of class stdClass could not be converted to string in /home/content/v/i/s/visionandhope/html/modules/ubercart/shipping/uc_ups/uc_ups.module on line 891.You gotta use print_r($resp, TRUE) in between the <pre> tags.
Also try using htmlentities() so we can see the XML tags.
Here is what i get with the print_r($resp, TRUE)command. I will also follow up with htmlentities()
*
4C267188xxxxxxxx
visionandhope
xxxxxx
Complex Rate Request
1.0001
Rate
rate
03
04
73xxxx
Los Angeles CA 90067 US
CA 90049 US
CA 90067 US
LBS
1.0
11
UPS Standard
21LBSPounds1.0USD4
*
stdClass Object
(
[error] => 110 Connection timed out
[code] => -110
)
*
4C267188xxxxxxxx
visionandhope
xxxxxx
Complex Rate Request
1.0001
Rate
rate
03
04
7xxxxx
Los Angeles CA 90067 US
CA 90049 US
CA 90067 US
LBS
1.0
13
UPS Next Day Air Saver
21LBSPounds1.0USD4
*
stdClass Object
(
[error] => 110 Connection timed out
[code] => -110
)
*
4C267188xxxxxxxx
visionandhope
xxxxxx
Complex Rate Request
1.0001
Rate
rate
03
04
7xxxxx
Los Angeles CA 90067 US
CA 90049 US
CA 90067 US
LBS
1.0
02
UPS 2nd Day Air
21LBSPounds1.0USD4
*
stdClass Object
(
[error] => 110 Connection timed out
[code] => -110
)
*
4C267188xxxxxxxx
visionandhope
xxxxxx
Complex Rate Request
1.0001
Rate
rate
03
04
7xxxxx
Los Angeles CA 90067 US
CA 90049 US
CA 90067 US
LBS
1.0
12
UPS 3-Day Select
21LBSPounds1.0USD4
*
stdClass Object
(
[error] => 110 Connection timed out
[code] => -110
)here is what i get with:
$request = uc_ups_shipping_quote($ship_packages, $orig, $dest, $ups_service);
drupal_set_message('<pre>'. htmlentities($request) .'</pre>');
$resp = drupal_http_request(variable_get('uc_ups_connection_address', 'https://wwwcie.ups.com/ups.app/xml/') .'Rate', array(), 'POST', $request);
drupal_set_message('<pre>'. htmlentities(print_r($resp, TRUE)) .'</pre>'); *
<?xml version="1.0" encoding="UTF-8"?>
<AccessRequest xml:lang="en-US">
<AccessLicenseNumber>4C267188xxxxxxx</AccessLicenseNumber>
<UserId>visionandhope</UserId>
<Password>xxxxxx</Password>
</AccessRequest>
<?xml version="1.0" encoding="UTF-8"?>
<RatingServiceSelectionRequest xml:lang="en-US">
<Request>
<TransactionReference>
<CustomerContext>Complex Rate Request</CustomerContext>
<XpciVersion>1.0001</XpciVersion>
</TransactionReference>
<RequestAction>Rate</RequestAction>
<RequestOption>rate</RequestOption>
</Request>
<PickupType>
<Code>03</Code>
</PickupType>
<CustomerClassification>
<Code>04</Code>
</CustomerClassification>
<Shipment>
<Shipper>
<ShipperNumber>7xxxx</ShipperNumber>
<Address>
<City>Los Angeles</City>
<StateProvinceCode>CA</StateProvinceCode>
<PostalCode>90067</PostalCode>
<CountryCode>US</CountryCode>
</Address>
</Shipper>
<ShipTo>
<Address>
<StateProvinceCode>CA</StateProvinceCode>
<PostalCode>90049</PostalCode>
<CountryCode>US</CountryCode>
</Address>
</ShipTo>
<ShipFrom>
<Address>
<StateProvinceCode>CA</StateProvinceCode>
<PostalCode>90067</PostalCode>
<CountryCode>US</CountryCode>
</Address>
</ShipFrom>
<ShipmentWeight>
<UnitOfMeasurement>
<Code>LBS</Code>
</UnitOfMeasurement>
<Weight>1.0</Weight>
</ShipmentWeight>
<Service>
<Code>11</Code>
<Description>UPS Standard</Description>
</Service>
<Package><PackagingType><Code>21</Code></PackagingType><PackageWeight><UnitOfMeasurement><Code>LBS</Code><Description>Pounds</Description></UnitOfMeasurement><Weight>1.0</Weight></PackageWeight><PackageServiceOptions><InsuredValue><CurrencyCode>USD</CurrencyCode><MonetaryValue>4</MonetaryValue></InsuredValue></PackageServiceOptions></Package></Shipment>
</RatingServiceSelectionRequest>
*
stdClass Object
(
[error] => 110 Connection timed out
[code] => -110
)
*
<?xml version="1.0" encoding="UTF-8"?>
<AccessRequest xml:lang="en-US">
<AccessLicenseNumber>4C267188xxxxxxxxx</AccessLicenseNumber>
<UserId>visionandhope</UserId>
<Password>xxxxxx</Password>
</AccessRequest>
<?xml version="1.0" encoding="UTF-8"?>
<RatingServiceSelectionRequest xml:lang="en-US">
<Request>
<TransactionReference>
<CustomerContext>Complex Rate Request</CustomerContext>
<XpciVersion>1.0001</XpciVersion>
</TransactionReference>
<RequestAction>Rate</RequestAction>
<RequestOption>rate</RequestOption>
</Request>
<PickupType>
<Code>03</Code>
</PickupType>
<CustomerClassification>
<Code>04</Code>
</CustomerClassification>
<Shipment>
<Shipper>
<ShipperNumber>7xxxx</ShipperNumber>
<Address>
<City>Los Angeles</City>
<StateProvinceCode>CA</StateProvinceCode>
<PostalCode>90067</PostalCode>
<CountryCode>US</CountryCode>
</Address>
</Shipper>
<ShipTo>
<Address>
<StateProvinceCode>CA</StateProvinceCode>
<PostalCode>90049</PostalCode>
<CountryCode>US</CountryCode>
</Address>
</ShipTo>
<ShipFrom>
<Address>
<StateProvinceCode>CA</StateProvinceCode>
<PostalCode>90067</PostalCode>
<CountryCode>US</CountryCode>
</Address>
</ShipFrom>
<ShipmentWeight>
<UnitOfMeasurement>
<Code>LBS</Code>
</UnitOfMeasurement>
<Weight>1.0</Weight>
</ShipmentWeight>
<Service>
<Code>13</Code>
<Description>UPS Next Day Air Saver</Description>
</Service>
<Package><PackagingType><Code>21</Code></PackagingType><PackageWeight><UnitOfMeasurement><Code>LBS</Code><Description>Pounds</Description></UnitOfMeasurement><Weight>1.0</Weight></PackageWeight><PackageServiceOptions><InsuredValue><CurrencyCode>USD</CurrencyCode><MonetaryValue>4</MonetaryValue></InsuredValue></PackageServiceOptions></Package></Shipment>
</RatingServiceSelectionRequest>
*
stdClass Object
(
[error] => 110 Connection timed out
[code] => -110
)
*
<?xml version="1.0" encoding="UTF-8"?>
<AccessRequest xml:lang="en-US">
<AccessLicenseNumber>4C267188xxxxxx</AccessLicenseNumber>
<UserId>visionandhope</UserId>
<Password>xxxxxx</Password>
</AccessRequest>
<?xml version="1.0" encoding="UTF-8"?>
<RatingServiceSelectionRequest xml:lang="en-US">
<Request>
<TransactionReference>
<CustomerContext>Complex Rate Request</CustomerContext>
<XpciVersion>1.0001</XpciVersion>
</TransactionReference>
<RequestAction>Rate</RequestAction>
<RequestOption>rate</RequestOption>
</Request>
<PickupType>
<Code>03</Code>
</PickupType>
<CustomerClassification>
<Code>04</Code>
</CustomerClassification>
<Shipment>
<Shipper>
<ShipperNumber>7xxxxxx</ShipperNumber>
<Address>
<City>Los Angeles</City>
<StateProvinceCode>CA</StateProvinceCode>
<PostalCode>90067</PostalCode>
<CountryCode>US</CountryCode>
</Address>
</Shipper>
<ShipTo>
<Address>
<StateProvinceCode>CA</StateProvinceCode>
<PostalCode>90049</PostalCode>
<CountryCode>US</CountryCode>
</Address>
</ShipTo>
<ShipFrom>
<Address>
<StateProvinceCode>CA</StateProvinceCode>
<PostalCode>90067</PostalCode>
<CountryCode>US</CountryCode>
</Address>
</ShipFrom>
<ShipmentWeight>
<UnitOfMeasurement>
<Code>LBS</Code>
</UnitOfMeasurement>
<Weight>1.0</Weight>
</ShipmentWeight>
<Service>
<Code>02</Code>
<Description>UPS 2nd Day Air</Description>
</Service>
<Package><PackagingType><Code>21</Code></PackagingType><PackageWeight><UnitOfMeasurement><Code>LBS</Code><Description>Pounds</Description></UnitOfMeasurement><Weight>1.0</Weight></PackageWeight><PackageServiceOptions><InsuredValue><CurrencyCode>USD</CurrencyCode><MonetaryValue>4</MonetaryValue></InsuredValue></PackageServiceOptions></Package></Shipment>
</RatingServiceSelectionRequest>
*
stdClass Object
(
[error] => 110 Connection timed out
[code] => -110
)
*
<?xml version="1.0" encoding="UTF-8"?>
<AccessRequest xml:lang="en-US">
<AccessLicenseNumber>4C267188xxxxxxxx</AccessLicenseNumber>
<UserId>visionandhope</UserId>
<Password>xxxxxx</Password>
</AccessRequest>
<?xml version="1.0" encoding="UTF-8"?>
<RatingServiceSelectionRequest xml:lang="en-US">
<Request>
<TransactionReference>
<CustomerContext>Complex Rate Request</CustomerContext>
<XpciVersion>1.0001</XpciVersion>
</TransactionReference>
<RequestAction>Rate</RequestAction>
<RequestOption>rate</RequestOption>
</Request>
<PickupType>
<Code>03</Code>
</PickupType>
<CustomerClassification>
<Code>04</Code>
</CustomerClassification>
<Shipment>
<Shipper>
<ShipperNumber>xxxxxx</ShipperNumber>
<Address>
<City>Los Angeles</City>
<StateProvinceCode>CA</StateProvinceCode>
 


Joined: 10/30/2007