Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

USPSMethods 2.4 - Error


Recommended Posts

Hallo Everybody -

I have installed the USPSMethods 2.4 contribution and when I go to try the shipping module I get this error:

 

Warning: feof(): supplied resource is not a valid stream resource in /home/pbarutta/texent.com/htdocs/catalog/includes/classes/http_client.php on line 385

 

Warning: fgets(): supplied resource is not a valid stream resource in /home/pbarutta/texent.com/htdocs/catalog/includes/classes/http_client.php on line 386

 

I have no clue on what is wrong with this, anyone has ?

 

Thanks.

Link to comment
Share on other sites

OK, I found where problem comes from (I don't know how to fix it yet :D )

 

Within catalog/includes/modules/shippping/usps.php

 

this portion generates the troubles, take it out and it works fine:

 

if($transit){

$transitreq = 'USERID="' . MODULE_SHIPPING_USPS_USERID .

'" PASSWORD="' . MODULE_SHIPPING_USPS_PASSWORD . '">' .

'<OriginZip>' . STORE_ORIGIN_ZIP . '</OriginZip>' .

'<DestinationZip>' . $dest_zip . '</DestinationZip>';

 

switch ($key) {

case 'Express': $transreq[$key] = 'API=ExpressMail&XML=' .

urlencode( '<ExpressMailRequest ' . $transitreq . '</ExpressMailRequest>');

break;

case 'Priority': $transreq[$key] = 'API=PriorityMail&XML=' .

urlencode( '<PriorityMailRequest ' . $transitreq . '</PriorityMailRequest>');

break;

case 'Parcel': $transreq[$key] = 'API=StandardB&XML=' .

urlencode( '<StandardBRequest ' . $transitreq . '</StandardBRequest>');

break;

default: $transreq[$key] = '';

break;

}

}

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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...