I'm struggling to find out what is causing the following error message, when I try to create a new database via the xmlapi function $createdb = $xmlapi->api1_query($cpaneluser, "Mysql", "adddb", array($databasename)):
Fatal error: Uncaught exception 'Exception' with message 'curl_exec threw error "couldn't connect to host" for https://67.205.89.239:2083/xml-api/...lapi_apiversion=1&arg-0=sistemas_brancadeneve' in /home/sistemas/public_html/swl-admin/app/controllers/xmlapi.php:848 Stack trace: #0 /home/sistemas/public_html/swl-admin/app/controllers/xmlapi.php(746): xmlapi->curl_query('https://67.205....', 'cpanel_xmlapi_u...', 'Authorization: ...') #1 /home/sistemas/public_html/swl-admin/app/controllers/xmlapi.php(970): xmlapi->xmlapi_query('cpanel', Array) #2 /home/sistemas/public_html/swl-admin/app/controllers/clientes_controller.php(801): xmlapi->api1_query('sistemas', 'Mysql', 'adddb', Array) #3 /home/sistemas/public_html/swl-admin/system/system.php(106): Clientes->replicar() #4 /home/sistemas/public_html/swl-admin/index.php(23): System->run() #5 {main} thrown in /home/sistemas/public_html/swl-admin/app/controllers/xmlapi.php on line 848
The code was working perfectly until two weeks ago, and nothing has changed in the code to produce this error message.
In the xmlapi code for the url, the security token (cpsessxxx) is not present, but since the variable $ENV{'cp_security_token'} is null, I thing that the problem is something else.
It will be great if someone can help me with this.
Thanks in advance.
Mário Sandro.
Fatal error: Uncaught exception 'Exception' with message 'curl_exec threw error "couldn't connect to host" for https://67.205.89.239:2083/xml-api/...lapi_apiversion=1&arg-0=sistemas_brancadeneve' in /home/sistemas/public_html/swl-admin/app/controllers/xmlapi.php:848 Stack trace: #0 /home/sistemas/public_html/swl-admin/app/controllers/xmlapi.php(746): xmlapi->curl_query('https://67.205....', 'cpanel_xmlapi_u...', 'Authorization: ...') #1 /home/sistemas/public_html/swl-admin/app/controllers/xmlapi.php(970): xmlapi->xmlapi_query('cpanel', Array) #2 /home/sistemas/public_html/swl-admin/app/controllers/clientes_controller.php(801): xmlapi->api1_query('sistemas', 'Mysql', 'adddb', Array) #3 /home/sistemas/public_html/swl-admin/system/system.php(106): Clientes->replicar() #4 /home/sistemas/public_html/swl-admin/index.php(23): System->run() #5 {main} thrown in /home/sistemas/public_html/swl-admin/app/controllers/xmlapi.php on line 848
The code was working perfectly until two weeks ago, and nothing has changed in the code to produce this error message.
In the xmlapi code for the url, the security token (cpsessxxx) is not present, but since the variable $ENV{'cp_security_token'} is null, I thing that the problem is something else.
It will be great if someone can help me with this.
Thanks in advance.
Mário Sandro.