´m trying to use the UPS Shipping Module (UPS OnLine Tools) but there is happening nothing, I have already my UPS access code, my ups user ID and PassWord (also I´m using the UPS test PW).
First of all there are 4 steps for the shopping in the check out, in the first step it asks for shipping information and I select one of them and then press next buttom and nothing happens then (Limbo), I´ve checked the weight in my products (they are OK), what can be wrong?
My PHP System Info
PHP built On: Linux linhostjava02.prod.mesa1.secureserver.net 2.4.21-27.ELsmp #1 SMP Wed Dec 1 21:59:02 EST 2004 i686
Database Version: 4.0.24-max-log
PHP Version: 4.3.11
Web Server: Apache/1.3.31 (Unix) mod_tsunami/2.0 mod_jk2/2.0.4 FrontPage/5.0.2.2634 mod_ssl/2.8.19 OpenSSL/0.9.7a
WebServer to PHP interface: cgi-fcgi
Version Version: Mambo 4.5.1a Stable [Three For Rum *mambo-phpShop EDITION*] 05/10/2004 16:12 GMT
User Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Relevant PHP Settings: Safe Mode: Off
Open basedir: None
Display Errors: On
Short Open Tags: On
File Uploads: On
Magic Quotes: On
Register Globals: On
Output Buffering: Off
Session save path: /tmp
Session auto start: 0
XML enabled: Yes
Zlib enabled: No
Disabled Functions: None
WYSIWYG Editor: HTMLArea3 XTD
So let me know if you can do something for me, thank you in advance
;D
Hello,
is your server somehow behind a firewall?
Does your PHP have cURL?
ciao, Soeren
Hi Soeren,
Sure they have a firewall the site is hosted in godaddy, and I can´t see if the PHP have cURL, how can I see it?....
Hello,
you can see your PHP Info by using this URI on your Backend:
Quote
/administrator/index2.php?option=com_admin&task=sysinfo
and then click on "PHP Info".
ciao, Soeren
I am using godaddy too, having the same problem it will eventually time out and give error 110. Soeren you can look at my php congiguration http://www.seventhstreetimports.com/test.php
I really appreciate what you are doing with Mambo-PHPshop. I will send you a tithe as soon as I get paid!
Also feel free to set up an account and see the error message for yourself as we are not live yet
Jack
Hello Jackl,
your PHP configuration is ok, cu rl is enabled.
what do you mean with Error 110? UPS Error codes have 6 digits...
ciao, Soeren
Thanks Soeren,
I am getting
"socket error:110
Internal Error processing the Request to UPS.com"
I have an username/password/xml access key!!!
I appreciate your help!
I may have an answer. I talked to godaddy and they emailed me a script, apparently they have a proxy server and told me to insert this
curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, TRUE);
curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
curl_setopt ($ch, CURLOPT_PROXY, http://64.202.165.130:3128);
curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
I'm not sure exactly what to do here but i know my next step is getting phpshop talking to paypal. Is thier a global config file to add this info too??
Best Regards,
JackL
Hello,
I'm glad that your provider mailed you this information. This is exactly what is needed here.
Actually the file /classes/shipping/ups.php contains this section:
curl_setopt($CR, CURLOPT_URL, $protocol."://".$host.$path);
curl_setopt($CR, CURLOPT_POST, 1);
curl_setopt($CR, CURLOPT_FAILONERROR, true);
curl_setopt($CR, CURLOPT_POSTFIELDS, $xmlPost);
curl_setopt($CR, CURLOPT_RETURNTRANSFER, 1);
There you can add this information (right below the last line of the code snippet):
curl_setopt ($CR, CURLOPT_HTTPPROXYTUNNEL, TRUE);
curl_setopt ($CR, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
curl_setopt ($CR, CURLOPT_PROXY, "http://64.202.165.130:3128");
Save and try.
ciao, Soeren
Worked like a charm!
As soon as i get paid so will you my friend!
hi and thanks for Virtuemart. My friend helped me set my new site (on GoDaddy)up with joomla and virtuemart. I am
in the U.S. and trying to set up UPS and am on the Shipping Module Configuration: ups.php
and got stuck. So I called UPS, set up an account, then I went to ups.com and registered but
I don't know what online tools to get and whether to get the html or xml version. I checked everywhere
but the demos only took me this far. I just want to be able to ship my wine UPS or have them come to
the store and pick it up. Can someone point me in the right direction? Thanks again.
You need the XML version of UPS Online Tools: UPS Rates and Services Selection
Try this link, it will prompt you to register: http://www.ups.com/e_comm_access/laServ?loc=en_US&CURRENT_PAGE=WELCOME&OPTION=TOOL_DOC&TOOL_ID=RateXML
(http://www.ups.com/e_comm_access/laServ?loc=en_US&CURRENT_PAGE=WELCOME&OPTION=TOOL_DOC&TOOL_ID=RateXML)
Hello,
I have installed joomla e commerce edition 1.1.10 and virtue mart 1.06 for my online store. However, when using the ups shipping module, there is error in connection,
Warning: fsockopen() [function.fsockopen]: no SSL support in this build in /home/camadigi/public_html/camera/administrator/components/com_virtuemart/classes/shipping/ups.php on line 216
Warning: fsockopen() [function.fsockopen]: unable to connect to www.ups.com:443 in /home/camadigi/public_html/camera/administrator/components/com_virtuemart/classes/shipping/ups.php on line 216
Fatal error: Call to a member function on a non-object in /home/camadigi/public_html/camera/administrator/components/com_virtuemart/classes/shipping/ups.php on line 264
so I checked with the possible fix adnd I found the following suggestion from this forum:
"I may have an answer. I talked to godaddy and they emailed me a script, apparently they have a proxy server and told me to insert this
curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, TRUE);
curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
curl_setopt ($ch, CURLOPT_PROXY, http://64.202.165.130:3128);
curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE)"
Then I have the following error as
Parse error: syntax error, unexpected ':' in /home/camadigi/public_html/camera/administrator/components/com_virtuemart/classes/shipping/ups.php on line 172
line 172 refers to
curl_setopt ($ch, CURLOPT_PROXY, http://64.202.165.130:3128);
Any idea how to fix it?
Regards
phyaw
Hello,
As I did not get any advice to my posting, I tried to investigate further myself.
As a matter of fact, the suggested four lines of coding is only for shared hosting.
If you have your own server, there is no need to add the four lines.
However, you need to have SSL installed in your domain as UPS module XML required SSL (check the requirement from UPS web site).
Then, you need to make sure you build the Curl, CurlSSL support for your php module when you access your webhost manager of your server. You can find it under the apache update.
Now I have a working UPS module.
Best
phylaw
not a coder! can anyone help get my UPS module working and check out not to hang,...seems I have the GoDaddy issue too
I am having the same issue from a site I migrated from another host to GoDaddy. The site was working flawlessly until the migration to GoDaddy. Unfortunately, the above suggestions are not working, and currently, GoDaddy is clueless as to what I am referring to, but to their credit, they are looking into it.
Here's the response from GoDaddy. I'm unsure of what and where the below code should be placed but will at first assume it should replace the previously suggested code within ups.php. Any help is appreciated.
QuoteBelow is a PHP script that uses CURL to connect securely to a remote system (http://www.paypal.com), obtain data from that system and then creates a Web page based on that data.
Note: On our shared hosting, any CURL applications that make secure HTTP connections (HTTPS over port 443) need to pass through a proxy server. The address for this proxy server is proxy.shr.secureserver.net and connections must specify the use of port 3128. The code below already includes this information.
<?
$URL="https://www.paypal.com";
if (isset($_GET["site"])) { $URL = $_GET["site"]; }
$ch = curl_init();
echo "URL = $URL <br>\n";
curl_setopt($ch, CURLOPT_VERBOSE, 1);
//curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, TRUE);
curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
curl_setopt ($ch, CURLOPT_PROXY,"http://proxy.shr.secureserver.net:3128");
curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt ($ch, CURLOPT_URL, $URL);
curl_setopt ($ch, CURLOPT_TIMEOUT, 120);
$result = curl_exec ($ch);
echo "<hr><br>\n";
echo 'Errors: ' . curl_errno($ch) . ' ' . curl_error($ch) . '<br><br>';
echo "<hr><br>\n";
curl_close ($ch);
print "result - $result";
echo "<hr><br>\n";
?>
http://help.godaddy.com/article.php?article_id=289&
I have tried a multitude of options. Neither work. My latest attempt follows.
curl_setopt ($CR, CURLOPT_HTTPPROXYTUNNEL, TRUE);
curl_setopt ($CR, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
curl_setopt ($CR, CURLOPT_PROXY, "proxy.shr.secureserver.net:3128");
Sorry I don't have any solution just dropped by to say GoDaddy is to restrictive and troublesome, better to use another host.
Great all-around hosting. Great overall support. Love the fact they speak REAL American English. But, I am beginning to realize its downside with a major drawback!
Any hosting that you recommend and/or use?
I use Dreamhost for my regular sites they have their ups and downs but I am OK with it, for my store I use Media Temple, you could take a look what users are saying http://www.webhostingunleashed.com
Hello,
I ran into this problem when developing a new payment processor. For godaddy, and maybe other hosting providers, you need to include the port in the https url.
This change
$URL="https://www.paypal.com";
to
$URL="https://www.paypal.com:443";
and it should work.
Cheers,
Spencer
I was also having this problem but the IP didn't work so here is the proper code that got it working for me.
curl_setopt ($CR, CURLOPT_HTTPPROXYTUNNEL, TRUE);
curl_setopt ($CR, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
curl_setopt ($CR, CURLOPT_PROXY, "proxy.shr.secureserver.net:3128");
The IP that was in the orginal code either is no longer valid, or didn't point to the proper proxy server.
;D CHEERS! Worked for me!
Hello all,
I am new to Virtuemart with Joomla 1.5, and i need help.
I have Joomla 1.5 installed and configured, PHP cURL enabled, Virtuemart 1.1 installed and set, but i am receiving "invalid license" error with UPS Shipping.
Here is error code:
Error: UPS was not able to process the Shipping Rate Request.. Error Code: 250003, Error Description: Invalid Access License number
Please help me, i am running out of time :(
Quote from: Soeren on May 30, 2005, 15:06:42 PM
Hello,
I'm glad that your provider mailed you this information. This is exactly what is needed here.
Actually the file /classes/shipping/ups.php contains this section:
curl_setopt($CR, CURLOPT_URL, $protocol."://".$host.$path);
curl_setopt($CR, CURLOPT_POST, 1);
curl_setopt($CR, CURLOPT_FAILONERROR, true);
curl_setopt($CR, CURLOPT_POSTFIELDS, $xmlPost);
curl_setopt($CR, CURLOPT_RETURNTRANSFER, 1);
There you can add this information (right below the last line of the code snippet):
curl_setopt ($CR, CURLOPT_HTTPPROXYTUNNEL, TRUE);
curl_setopt ($CR, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
curl_setopt ($CR, CURLOPT_PROXY, "http://64.202.165.130:3128");
Save and try.
ciao, Soeren
I'm considering setting up Virtumart on my site instead of a separate OSCommerce site. The UPS shipping is the main problem. My Joomla site is hosted at Godaddy as well, do you know if these snippets will work for any shared hosting account, or is the IP just for this specific account?