Jump to content

UPS php error codes


Guest

Recommended Posts

Do not be confused with my other thread if you saw it. I was incorrect as to what was happening and now have the exact error occuring. Hopefully someone can assist me with this now.

The below error happens after about 5 minutes of waiting. What you see below loops and loops and loops until I hit stop on the browser.

This prevents anyone from buying anything at my store because the module module fails. If you have any insight please let me know. The site is at www.sportbikeunltd.com/store

Warning: fopen(http://www.ups.com/using/services/rave/qcostcgi.cgi?accept_UPS_license_agreement=yes&10_action=3&13_product=CP&14_origCountry=US&15_origPostal=95050&19_destPostal=94086&22_destCountry=US&23_weight=&47_rateChart=Regular+Daily+Pickup&48_container=&49_residential=1): failed to open stream: no suitable wrapper could be found in /home/******/sportbikeunltd.com/store/modules/shipping/UPS/ups.php on line 175

Warning: feof(): supplied argument is not a valid stream resource in /home/.******/sportbikeunltd.com/store/modules/shipping/UPS/ups.php on line 176

Warning: fgets(): supplied argument is not a valid stream resource in /home/******/sportbikeunltd.com/store/modules/shipping/UPS/ups.php on line 177

Thanks in advance.

Link to comment
Share on other sites

In case someone finds this searching. My problem was with my host. Dreamhost.com they do not support fopen PHP command and the scripthad to be rewritten to use CURL. If that means nothing to you i am sorry I had to have a friend assist me.

Link to comment
Share on other sites

  • 1 month later...
Guest nickyg622

In case someone finds this searching. My problem was with my host. Dreamhost.com they do not support fopen PHP command and the scripthad to be rewritten to use CURL. If that means nothing to you i am sorry I had to have a friend assist me.

I am also with Dreamhost, and haven't been able to use UPS shipping for the same reason. Do you think you could post your updated UPS files?

Link to comment
Share on other sites

  • 4 weeks later...
Guest nickyg622

I fixed this for DreamHost by using curl instead of fopen in the UPS module. I'm not really a programmer, but so far this seems to work. See the attached file - replace your /modules/shipping/UPS/ups.php file with this one and it should work on DreamHost.

ups.txt

Link to comment
Share on other sites

  • 5 months later...

I fixed this for DreamHost by using curl instead of fopen in the UPS module. I'm not really a programmer, but so far this seems to work. See the attached file - replace your /modules/shipping/UPS/ups.php file with this one and it should work on DreamHost.

Yes ! It is the PHP configuration of the hosting provider.

I changed the file ups.php and now the shipping by UPS option works great !

Many, many thanks

All the best !!!

Link to comment
Share on other sites

  • 2 months later...
Guest Michael Leonard

Hi.. i used the file and it worked but when someone submits an order it says, there is no shipping method setup for your country.. but the persons profile has them as living in the USA..

??

Any ideas?

Link to comment
Share on other sites

  • 2 months later...
Guest anakin827

Hi.. i used the file and it worked but when someone submits an order it says, there is no shipping method setup for your country.. but the persons profile has them as living in the USA..

??

Any ideas?

I did the same thing. I replaced the file, but am getting the same error that my country isn't supported and it's listed as the US.

Any help??? My site is down because of this error.

Link to comment
Share on other sites

  • 3 weeks later...
Guest Kristina

I fixed this for DreamHost by using curl instead of fopen in the UPS module. I'm not really a programmer, but so far this seems to work. See the attached file - replace your /modules/shipping/UPS/ups.php file with this one and it should work on DreamHost.

This worked great for me! Please thank your friend and if your friend is a CubeCart member... this would be a great mod to post. Lots of people looking for answers to this issue. Luckily I figured out my host had changed it so the fopen command was no longer available fairly quickly as I'd already heard about people having trouble with their blog scripts, etc as hosts are shutting down the option to use fopen.

I think we will be seeing a lot more people with this issue soon.

Kristina

Link to comment
Share on other sites

Guest murkington

AWESOME! nickyg622, thanks so much for posting that txt file. It worked great for me and I am using us mailing addresses :rolleyes:

*dances happily* :D

Link to comment
Share on other sites

  • 3 weeks later...

Thanks so much for this attachment. I am setting up a store on GoDaddy and I was having this same issue with the UPS shipping module. I downloaded the above file and changed it to ups.php and uploaded it to the server replacing my old file and UPS now works and calculates correctly. Thanks a bunch!

Link to comment
Share on other sites

  • 11 months later...

I fixed this for DreamHost by using curl instead of fopen in the UPS module. I'm not really a programmer, but so far this seems to work. See the attached file - replace your /modules/shipping/UPS/ups.php file with this one and it should work on DreamHost.

Thanks BIG Bunches for that cURL code! Problem solved!

Peace ~Tim

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...