Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

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,



Edited by george-davis
Link to comment
Share on other sites

  • 3 weeks later...

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')) {



$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.

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.

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...