Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Paypal error when calling shipping module?


bwaits

Recommended Posts

Slight issue with a clean 2.2 rc2a install

 

Customers are having issues with paypal payments. Once they choose paypal and continue, they are taken to a login screen. After logging in they see a screen that wants them to review information, ie, funds source, address and contact info, then a continue button.

 

The page that loads once they click continue is:

 

https://XXXXXXX.com/catalog/ext/modules/pay...pal/express.php?

 

the error on the page says:

 

Fatal error: Class 'httpClient' not found in /home/XXXXXXpublic_html/catalog/includes/modules/shipping/usps.php on line 269

 

 

Any ideas? The USPS module works flawlessly getting the shipping rate two pages before they leave for the paypal page.

Paypal CC module works great with the same username, password and setup info as the express module.

 

 

Thanks in advance.

-billy

Link to comment
Share on other sites

Maybe this will help ya, comes from a DrByte from Canada

 

had the same prob message

my ups.php didn't have a require statement to include the class httpclient

once i added the require well it worked for moi

 

in ups.php (i put it above class ups{ approx line 21)

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

g luck

Link to comment
Share on other sites

STOP THE PRESSES!

bad timing on the call to http_client.php (i put it at the beginning line 21 like a goof) sorry bout that, chief

that made the ADMIN modules->Shipping Modules display an error because of an inappropriate call to that http_client.php (because admin doesn't need it, it's only for performing a customer transaction, anyway ended up doing this:

 

ONLY IF you took my advice in the first place! this works for me by simply relocating the require to the place it's needed, right before creating it (approx. line 266 for me

WARNING: USE AT YOUR OWN RISK!

in admin/includes/modules/shipping/ups.php

FIND:

1. line 21

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

(CUT)

 

FIND:

$http = new httpClient(); (approx Line 267)

 

OVER TOP OF THAT:

(PASTE) require('includes/classes/http_client.php');

SAVE

(You're done)

NOTE: i debated changing 'require' to 'include' but opted to stop for errors by using require

 

hope you enjoyed the stroll through the mental process, just wanted to be clear on providing the rationale of this code change

 

warm thanks to everyone who's generously contributed to this cyber buffet...

L8r,

jk

Link to comment
Share on other sites

  • 4 years later...

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