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)
This commit is contained in:
@@ -122,7 +122,7 @@ class Installer extends Controller
|
|||||||
$info->multibyte = new stdclass();
|
$info->multibyte = new stdclass();
|
||||||
$info->soap = new stdclass();
|
$info->soap = new stdclass();
|
||||||
$info->ldap = new stdclass();
|
$info->ldap = new stdclass();
|
||||||
$info->mcrypt = new stdclass();
|
$info->mcrypt = new stdclass();
|
||||||
$info->memory = new stdclass();
|
$info->memory = new stdclass();
|
||||||
|
|
||||||
$info->php->version = phpversion();
|
$info->php->version = phpversion();
|
||||||
@@ -328,7 +328,7 @@ class Installer extends Controller
|
|||||||
public function testConnection ()
|
public function testConnection ()
|
||||||
{
|
{
|
||||||
$this->setResponseType( 'json' );
|
$this->setResponseType( 'json' );
|
||||||
if ($_REQUEST['db_engine'] == 'mysql') {
|
if (isset($_REQUEST["db_engine"]) && $_REQUEST["db_engine"] == "mysql") {
|
||||||
return $this->testMySQLconnection();
|
return $this->testMySQLconnection();
|
||||||
} else {
|
} else {
|
||||||
return $this->testMSSQLconnection();
|
return $this->testMSSQLconnection();
|
||||||
@@ -945,6 +945,8 @@ class Installer extends Controller
|
|||||||
public function createMSSQLWorkspace ()
|
public function createMSSQLWorkspace ()
|
||||||
{
|
{
|
||||||
ini_set( 'max_execution_time', '0' );
|
ini_set( 'max_execution_time', '0' );
|
||||||
|
|
||||||
|
$info = new stdClass();
|
||||||
$info->result = false;
|
$info->result = false;
|
||||||
$info->message = '';
|
$info->message = '';
|
||||||
|
|
||||||
@@ -1229,8 +1231,10 @@ class Installer extends Controller
|
|||||||
|
|
||||||
private function testMSSQLconnection ()
|
private function testMSSQLconnection ()
|
||||||
{
|
{
|
||||||
|
$info = new stdClass();
|
||||||
$info->result = false;
|
$info->result = false;
|
||||||
$info->message = '';
|
$info->message = '';
|
||||||
|
|
||||||
if (! function_exists( "mssql_connect" )) {
|
if (! function_exists( "mssql_connect" )) {
|
||||||
$info->message = G::LoadTranslation('ID_PHP_MSSQL_NOT_INSTALLED');
|
$info->message = G::LoadTranslation('ID_PHP_MSSQL_NOT_INSTALLED');
|
||||||
return $info;
|
return $info;
|
||||||
|
|||||||
Reference in New Issue
Block a user