mirror of
https://github.com/e107inc/e107.git
synced 2025-08-26 07:44:49 +02:00
#1977 - Catch error with e_marketplace
This commit is contained in:
@@ -503,7 +503,18 @@ class e_marketplace_adapter_wsdl extends e_marketplace_adapter_abstract
|
||||
'connection_timeout' => 60,
|
||||
);
|
||||
|
||||
$this->client = new SoapClient($this->serviceUrl, $options);
|
||||
|
||||
try
|
||||
{
|
||||
$this->client = new SoapClient($this->serviceUrl, $options);
|
||||
}
|
||||
catch (Exception $e)
|
||||
{
|
||||
e107::getMessage()->addError("Unable to connect. Please check firewall and/or internet connection.");
|
||||
e107::getMessage()->addDebug($e->getMessage());
|
||||
}
|
||||
|
||||
|
||||
|
||||
if(function_exists('xdebug_disable'))
|
||||
{
|
||||
|
Reference in New Issue
Block a user