![]() |
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. |
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)); |
All times are GMT -8. The time now is 09:07 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.