bwaits Posted March 27, 2008 Posted March 27, 2008 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 Quote
jfkafka Posted March 29, 2008 Posted March 29, 2008 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 Quote
jfkafka Posted March 29, 2008 Posted March 29, 2008 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 Quote
chadleyb Posted April 20, 2012 Posted April 20, 2012 I have the same problem, but when I make the fix in the USPS I get a problem with a duplicate class definition. Any ideas? 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.