mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +02:00
Reduce timeout on Soap and corrected error message.
This commit is contained in:
@@ -561,18 +561,20 @@ class e_marketplace_adapter_wsdl extends e_marketplace_adapter_abstract
|
|||||||
'exception' => true,
|
'exception' => true,
|
||||||
"uri" => "http://server.soap.e107.inc.com/",
|
"uri" => "http://server.soap.e107.inc.com/",
|
||||||
'cache_wsdl' => WSDL_CACHE_NONE,
|
'cache_wsdl' => WSDL_CACHE_NONE,
|
||||||
'connection_timeout' => 60,
|
'connection_timeout' => 7,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
//libxml_disable_entity_loader(false);
|
||||||
$this->client = new SoapClient($this->serviceUrl, $options);
|
$this->client = new SoapClient($this->serviceUrl, $options);
|
||||||
}
|
}
|
||||||
catch (Exception $e)
|
catch (Exception $e)
|
||||||
{
|
{
|
||||||
e107::getMessage()->addError(TPVLAN_90);
|
$message = deftrue('LAN_ERROR_CONNECTION', "Unable to connect for updates. Please check firewall and/or internet connection.");
|
||||||
e107::getMessage()->addDebug($e->getMessage());
|
e107::getMessage()->addInfo($message);
|
||||||
|
e107::getMessage()->addDebug($e->getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -519,3 +519,5 @@ define("LAN_ITEM", "Item");
|
|||||||
define("LAN_LOCK", "Lock");
|
define("LAN_LOCK", "Lock");
|
||||||
define("LAN_SYSTEM_USER", "System user");
|
define("LAN_SYSTEM_USER", "System user");
|
||||||
define("LAN_ENGINE", "Engine");
|
define("LAN_ENGINE", "Engine");
|
||||||
|
|
||||||
|
define("LAN_ERROR_CONNECTION","Unable to connect for updates. Please check firewall and/or internet connection.");
|
||||||
|
@@ -124,4 +124,4 @@ define("TPVLAN_86","Could not change site theme.");
|
|||||||
define("TPVLAN_88","Converter");
|
define("TPVLAN_88","Converter");
|
||||||
define("TPVLAN_89", "Apply dashboard preferences to all administrators");
|
define("TPVLAN_89", "Apply dashboard preferences to all administrators");
|
||||||
|
|
||||||
define("TPVLAN_90","Unable to connect. Please check firewall and/or internet connection.");
|
|
||||||
|
Reference in New Issue
Block a user