Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PayPal modules after USPS fix


Judith.Precision

Recommended Posts

So, with the recent changes required for getting the USPS shipping module working correctly, I am now having problems with my PayPal modules.

 

I stepped through the updates (v 6.x) for USPS Methods, including the USPS Methods 6.1c modified for osc 2.3 and now, when going to the payment portion, I get the following errors.

 

Warning: include() [function.include]: Failed opening 'rc2a/catalog/includes/classes/http_client.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/imprint/public_html/storefront/includes/modules/shipping/usps.php on line 982

 

Fatal error: Class 'httpClient' not found in /home/imprint/public_html/storefront/includes/modules/shipping/usps.php on line 984

 

Not sure where to look for this one.

 

Judith

Link to comment
Share on other sites

The problem is caused by Paypal substituting their own files for part of osCommerce. Some files are not getting properly included in the Paypal checkout process. As a quick-and-dirty fix, add the following code to the top of every file in ext/modules/payment/paypal/:

 

include_once(../../../../includes/classes/http_client.php)

 

Not the best solution, but it should work.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

@@Judith.Precision Locate the following in the includes/modules/shipping/usps.php file

$http = new httpClient();

and place this above it

  if (!class_exists('httpClient')) {
	 include('includes/classes/http_client.php');
  }

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

@@Jack_mcs - I actually found:

 

if (!class_exists('httpClient')) {

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

}

 

above

 

$http = new httpClient();

 

So I commented it out and added the code snippet you provided, since I recognized that the path in the 'original' was part of the error I kept getting.

 

@@kymation - It may not be the best solution, but it works and that's good enough for me. :)

 

Thank you both! :)

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