harlow Posted February 1, 2009 Share Posted February 1, 2009 There is a payment module posted on the OSCommerce site for ACH PaymentsGateway, but it seems to have a problem that I have been unable to resolve. The module was originally posted and maintained by a user called andy5 back in 2006, but I have been unsuccessful in contacting him. The nature of the problem is that the distribution of this add-on includes an older Nusoap tree that is known to have incompatibilities with PHP5. Specifically, you get a message like this: Fatal error: Cannot redeclare class soapclient in <path to my store>/includes/classes/nusoap/lib/nusoap.php on line 7240 This seems to be a known problem, and I have tried a couple of fixes that have been proposed, but none of them seem to work. I am going to continue trying to isolate the exact problem and fix it, but meanwhile, if anyone out there is using this module successfully, or is experiencing problems like mine, I would appreciate hearing from you. Maybe we can band together and get this thing working. Cheers ;) Justin Harlow Quote Link to comment Share on other sites More sharing options...
harlow Posted February 7, 2009 Author Share Posted February 7, 2009 There is a payment module posted on the OSCommerce site for ACH PaymentsGateway, but it seems to have a problem that I have been unable to resolve. The module was originally posted and maintained by a user called andy5 back in 2006, but I have been unsuccessful in contacting him. The nature of the problem is that the distribution of this add-on includes an older Nusoap tree that is known to have incompatibilities with PHP5. Specifically, you get a message like this: Fatal error: Cannot redeclare class soapclient in <path to my store>/includes/classes/nusoap/lib/nusoap.php on line 7240 This seems to be a known problem, and I have tried a couple of fixes that have been proposed, but none of them seem to work. I am going to continue trying to isolate the exact problem and fix it, but meanwhile, if anyone out there is using this module successfully, or is experiencing problems like mine, I would appreciate hearing from you. Maybe we can band together and get this thing working. Cheers ;) Justin Harlow I think I solved my own problem, so here is what I found: In the latest versions of nusoap, the function to create a client has been renamed. The original achdCC.php at line 420 needs to be changed to the following: $client = new nusoap_client($wsdl,true); // create soap client If you don't do this, it tries to use the native soapclient in PHP5, which has different parameter types, and you get the error I originally reported. Hope this helps someone JEH Quote Link to comment Share on other sites More sharing options...
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.