Judith.Precision Posted August 7, 2013 Posted August 7, 2013 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 Quote
♥kymation Posted August 7, 2013 Posted August 7, 2013 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 Quote See my profile for a list of my addons and ways to get support.
Jack_mcs Posted August 7, 2013 Posted August 7, 2013 @@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'); } Quote 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
Judith.Precision Posted August 8, 2013 Author Posted August 8, 2013 @@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! :) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.