mirror of
https://github.com/e107inc/e107.git
synced 2025-04-21 05:02:02 +02:00
Reduce timeout on Soap and corrected error message.
This commit is contained in:
parent
af7745b326
commit
fe52b0f167
@ -561,18 +561,20 @@ class e_marketplace_adapter_wsdl extends e_marketplace_adapter_abstract
|
||||
'exception' => true,
|
||||
"uri" => "http://server.soap.e107.inc.com/",
|
||||
'cache_wsdl' => WSDL_CACHE_NONE,
|
||||
'connection_timeout' => 60,
|
||||
'connection_timeout' => 7,
|
||||
);
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
//libxml_disable_entity_loader(false);
|
||||
$this->client = new SoapClient($this->serviceUrl, $options);
|
||||
}
|
||||
catch (Exception $e)
|
||||
{
|
||||
e107::getMessage()->addError(TPVLAN_90);
|
||||
e107::getMessage()->addDebug($e->getMessage());
|
||||
$message = deftrue('LAN_ERROR_CONNECTION', "Unable to connect for updates. Please check firewall and/or internet connection.");
|
||||
e107::getMessage()->addInfo($message);
|
||||
e107::getMessage()->addDebug($e->getMessage());
|
||||
}
|
||||
|
||||
|
||||
|
@ -519,3 +519,5 @@ define("LAN_ITEM", "Item");
|
||||
define("LAN_LOCK", "Lock");
|
||||
define("LAN_SYSTEM_USER", "System user");
|
||||
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_89", "Apply dashboard preferences to all administrators");
|
||||
|
||||
define("TPVLAN_90","Unable to connect. Please check firewall and/or internet connection.");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user