Jump to content
Sign in to follow this  
george-davis

receiving Fatal Error PP Express only; Debit & CCs work OK

Recommended Posts

hi, i had someone install the PP payment option on my website, and have found that they didn't do their due diligence by testing both the CC side and the PP express side.

 

I have been receiving the following error and find that something is getting hung in the ups.php file at line 265.

 

has anyone received this error? i called PP and their techies cannot seem to figure it out.

 

any help would be appreciated !

 

here is the error; Fatal error: Class 'httpClient' not found in /home/xxxxxxx/public_html/myshop/includes/modules/shipping/ups.php on line 265

 

if needed i can post the scripts.

 

(btw: i searched for this error and made it thru 15 pages... then i noticed that there are over 130 pages to this thead)

 

thanks in advance,

 

george

Edited by george-davis

Share this post


Link to post
Share on other sites

Found a solution to the error message:

 

Fatal error: Class 'httpClient' not found in /home/xxxxxx/public_HTML/catalog/includes/modules/shipping/ups.php on line 265

 

Find this at line 265:

 

$http = new httpClient();

if ($http->Connect('www.ups.com', 80)) {

$http->addHeader('Host', 'www.ups.com');

$http->addHeader('User-Agent', 'osCommerce');

$http->addHeader('Connection', 'Close');

 

And replace with this:

 

if (!class_exists('httpClient')) {

include('includes/classes/http_client.php');

}

$http = new httpClient();

if ($http->Connect('www.ups.com', 80)) {

$http->addHeader('Host', 'www.ups.com');

$http->addHeader('User-Agent', 'osCommerce');

$http->addHeader('Connection', 'Close');

 

I am using 2.2rc2a and this worked on my site.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×