From 86a07bc158c5bbff74d08e97633c64ddd8c3553c Mon Sep 17 00:00:00 2001 From: Victor Saisa Lopez Date: Wed, 29 Oct 2014 11:56:51 -0400 Subject: [PATCH] PM-810 "Al realizar la instalacion de ProcessMaker no existe..." SOLVED Issue: Al realizar la instalacion de ProcessMaker no existe la validacion en los campos (Host Name,Port) Cause: - Indice db_engine no se define en $_REQUEST - Definicion incorrecta de objeto Solution: - Se ha agregado validacion para ver si existe el indice db_engine - Se ha definido de manera correcta el objeto (stdClass) --- workflow/engine/controllers/installer.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/workflow/engine/controllers/installer.php b/workflow/engine/controllers/installer.php index 35610322e..6ae340f59 100755 --- a/workflow/engine/controllers/installer.php +++ b/workflow/engine/controllers/installer.php @@ -122,7 +122,7 @@ class Installer extends Controller $info->multibyte = new stdclass(); $info->soap = new stdclass(); $info->ldap = new stdclass(); - $info->mcrypt = new stdclass(); + $info->mcrypt = new stdclass(); $info->memory = new stdclass(); $info->php->version = phpversion(); @@ -328,7 +328,7 @@ class Installer extends Controller public function testConnection () { $this->setResponseType( 'json' ); - if ($_REQUEST['db_engine'] == 'mysql') { + if (isset($_REQUEST["db_engine"]) && $_REQUEST["db_engine"] == "mysql") { return $this->testMySQLconnection(); } else { return $this->testMSSQLconnection(); @@ -945,6 +945,8 @@ class Installer extends Controller public function createMSSQLWorkspace () { ini_set( 'max_execution_time', '0' ); + + $info = new stdClass(); $info->result = false; $info->message = ''; @@ -1229,8 +1231,10 @@ class Installer extends Controller private function testMSSQLconnection () { + $info = new stdClass(); $info->result = false; $info->message = ''; + if (! function_exists( "mssql_connect" )) { $info->message = G::LoadTranslation('ID_PHP_MSSQL_NOT_INSTALLED'); return $info;