fubu Posted July 28, 2003 Posted July 28, 2003 Hi, I've installed Aust post 1.7.1. I'm getting warnings up the top of the page, could someone please help? Thanks in advance! Warning: file(http://drc.edeliver.com.au/ratecalc.asp?Pickup_Postcode=2000&Destination_Postcode=2136&Country=US&Weight=3300&Service_Type=Air&Height=100&Width=100&Length=100&Quantity=1) [function.file]: failed to create stream: HTTP request failed! ??!?t? in C:Program FilesAbyss Web Serverhtdocscatalogincludesmodulesshippingauspostair.php on line 67 Warning: Invalid argument supplied for foreach() in C:Program FilesAbyss Web Serverhtdocscatalogincludesmodulesshippingauspostair.php on line 68 Quote
TB Posted July 28, 2003 Posted July 28, 2003 Normally this only happens when your server can't connect to the Austpost server. You will see the same screen if you're testing on a local server that isn't connected to the internet. Does it consitantly give you this error, or just some of the time? Quote "The price of success is perseverance. The price of failure comes much cheaper."
fubu Posted July 28, 2003 Author Posted July 28, 2003 I'm testing this on localhost which have internet access. When I stick the problem URL (http://drc.edeliver.com.au/ratecalc.asp?Pickup_Postcode=2000&Destination_Postcode=2136&Country=US&Weight=3300&Service_Type=Air&Height=100&Width=100&Length=100&Quantity=1) reported into the web browser, I get the following: charge=60 days=10 err_msg=OK so it should work but somehow isn't. Quote
ScottiouS Posted January 21, 2004 Posted January 21, 2004 Hey fubu, I'm not too sure if this will help your particular problem but it may help others... I came accross the same error and it was caused because a customer from Canada put their post code in with a space ie. P6C 6B6. This caused an error as the auspostair.php script doesn't account for spaces. so you would either need to put a note on the account signup screen or put a little extra script in the auspostair.php :) Quote
ScottiouS Posted January 21, 2004 Posted January 21, 2004 For interests sake I added a line to the auspostair.php : After this line # 66 $url = "http://drc.edeliver.com.au/ratecalc.asp?Pickup_Postcode=$frompcode&Destination_Postcode=$topcode&Country=$dest_country&Weight=$sweight&Service_Type=Air&Height=100&Width=100&Length=100&Quantity=1"; Added this line $url = str_replace(' ', "", $url); //removing whitepsace Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.