| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
X-Cart SoapClient Class Not Found Issue | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
X-Cart SoapClient Class Not Found Issue
I am try to connect to soapclient using the following line:
$client = new SoapClient($swipezoom_config['url'], array("trace" => 0, "exceptions" => 0, "cache_wsdl" => 0)); I am getting the following error: [05-Aug-2015 08:28:52 Europe/Berlin] PHP Fatal error: Class 'XLite\Module\Swipezoom\InternationalShipping\View \Checkout\SoapClient' not found in D:\xampp\htdocs\xcart\var\run\classes\XLite\Module \Swipezoom\InternationalShipping\View\Checkout\Shi ppingAddress.php on line 79 [05-Aug-2015 08:28:52] Error (code: 1): Class 'XLite\Module\Swipezoom\InternationalShipping\View \Checkout\SoapClient' not found Server API: apache2handler; Request method: GET; URI: /xcart/?target=checkout&action=update_profile&email=&same _address=1; Backtrace: #0 Includes\ErrorHandler::logInfo() called at [D:\xampp\htdocs\xcart\Includes\ErrorHandler.php:33 2] #1 Includes\ErrorHandler::handleError() called at [D:\xampp\htdocs\xcart\Includes\ErrorHandler.php:31 7] #2 Includes\ErrorHandler::shutdown() Please let me know how to get the SoapClient working? We can see in the error that due to namespace its treating the SoapClient class to exists on the same folder, but thats not the case. So how to resolve this considering SoapClient is enabled in my localhost, I have already checked it.
__________________
Regards, Aneel Sarwar X-Cart version: 5.2.10 Windows: 7 Modules: Free version modules |
|||||||||
#2
|
|||||||||
|
|||||||||
Re: X-Cart SoapClient Class Not Found Issue
I found the solution. I needed to remove namespace when calling new SoapClient. So I made the following change:
$client = new \SoapClient($swipezoom_config['url'], array("trace" => 0, "exceptions" => 0, "cache_wsdl" => 0));
__________________
Regards, Aneel Sarwar X-Cart version: 5.2.10 Windows: 7 Modules: Free version modules |
|||||||||
|
|||
X-Cart forums © 2001-2020
|