From 85296ff8ff2d854488733ac0e290b5ffb631f9bf Mon Sep 17 00:00:00 2001 From: Ronald Quenta Date: Fri, 11 Aug 2017 17:36:23 -0400 Subject: [PATCH 1/4] HOR-3663 --- gulliver/bin/tasks/pakeGulliver.php | 79 +++++++++++++++-------------- thirdparty/pear/Archive/Tar.php | 2 - 2 files changed, 42 insertions(+), 39 deletions(-) diff --git a/gulliver/bin/tasks/pakeGulliver.php b/gulliver/bin/tasks/pakeGulliver.php index 9c885069c..1fec95e85 100644 --- a/gulliver/bin/tasks/pakeGulliver.php +++ b/gulliver/bin/tasks/pakeGulliver.php @@ -491,52 +491,57 @@ function addTarFolder($tar, $pathBase, $pluginHome) { } } -function run_pack_plugin($task, $args) { - ini_set('display_errors', 'on'); - ini_set('error_reporting', E_ERROR); +function run_pack_plugin($task, $args) +{ + ini_set('display_errors', 'on'); + ini_set('error_reporting', E_ERROR); - // the environment for poedit always is Development - define('G_ENVIRONMENT', G_DEV_ENV); + // the environment for poedit always is Development + define('G_ENVIRONMENT', G_DEV_ENV); - //the plugin name in the first argument - if( ! isset($args[0]) ) { - printf("Error: %s\n", pakeColor::colorize('you must specify a valid name for the plugin', 'ERROR')); - exit(0); - } - $pluginName = $args[0]; + //the plugin name in the first argument + if (!isset($args[0])) { + printf("Error: %s\n", pakeColor::colorize('you must specify a valid name for the plugin', 'ERROR')); + exit(0); + } + $pluginName = $args[0]; - $pluginDirectory = PATH_PLUGINS . $pluginName; - $pluginOutDirectory = PATH_OUTTRUNK . 'plugins' . PATH_SEP . $pluginName; - $pluginHome = PATH_OUTTRUNK . 'plugins' . PATH_SEP . $pluginName; + $pluginHome = PATH_OUTTRUNK . 'plugins' . PATH_SEP . $pluginName; - //verify if plugin exists, - $pluginClassFilename = PATH_PLUGINS . $pluginName . PATH_SEP . 'class.' . $pluginName . '.php'; - $pluginFilename = PATH_PLUGINS . $pluginName . '.php'; - if( ! is_file($pluginClassFilename) ) { - printf("The plugin %s does not exist in this file %s \n", pakeColor::colorize($pluginName, 'ERROR'), pakeColor::colorize($pluginClassFilename, 'INFO')); - die(); - } + //verify if plugin exists, + $pluginClassFilename = PATH_PLUGINS . $pluginName . PATH_SEP . 'class.' . $pluginName . '.php'; + $pluginFilename = PATH_PLUGINS . $pluginName . '.php'; + if (!is_file($pluginClassFilename)) { + printf("The plugin %s does not exist in this file %s \n", pakeColor::colorize($pluginName, 'ERROR'), pakeColor::colorize($pluginClassFilename, 'INFO')); + die(); + } - require_once ($pluginFilename); + if (!file_exists($pluginFilename)) { + printf("Error: %s\n", pakeColor::colorize('you must specify a valid name for the plugin', 'ERROR')); + exit(0); + } - $oPluginRegistry = PluginRegistry::loadSingleton(); - $pluginDetail = $oPluginRegistry->getPluginDetails($pluginName . '.php'); - $fileTar = $pluginHome . PATH_SEP . $pluginName . '-' . $pluginDetail->iVersion . '.tar'; + if (preg_match_all('/->iVersion(.*)=(.*);/i', file_get_contents($pluginFilename), $result)) { + $version = trim($result[2][0], ' "'); + } else { + $version = 1; + } + $fileTar = $pluginHome . PATH_SEP . $pluginName . '-' . $version . '.tar'; - $tar = new Archive_Tar($fileTar); - $tar->_compress = false; + $tar = new Archive_Tar($fileTar); + $tar->_compress = false; - $pathBase = $pluginHome . PATH_SEP . $pluginName . PATH_SEP; - $tar->createModify($pluginHome . PATH_SEP . $pluginName . '.php', '', $pluginHome); - addTarFolder($tar, $pathBase, $pluginHome); - $aFiles = $tar->listContent(); + $pathBase = $pluginHome . PATH_SEP . $pluginName . PATH_SEP; + $tar->createModify($pluginHome . PATH_SEP . $pluginName . '.php', '', $pluginHome); + addTarFolder($tar, $pathBase, $pluginHome); + $aFiles = $tar->listContent(); - foreach( $aFiles as $key => $val ) { - printf(" %6d %s \n", $val['size'], pakeColor::colorize($val['filename'], 'INFO')); - } - printf("File created in %s \n", pakeColor::colorize($fileTar, 'INFO')); - $filesize = sprintf("%5.2f", filesize($fileTar) / 1024); - printf("Filesize %s Kb \n", pakeColor::colorize($filesize, 'INFO')); + foreach ($aFiles as $key => $val) { + printf(" %6d %s \n", $val['size'], pakeColor::colorize($val['filename'], 'INFO')); + } + printf("File created in %s \n", pakeColor::colorize($fileTar, 'INFO')); + $filesize = sprintf("%5.2f", filesize($fileTar) / 1024); + printf("Filesize %s Kb \n", pakeColor::colorize($filesize, 'INFO')); } function run_new_plugin($task, $args) { diff --git a/thirdparty/pear/Archive/Tar.php b/thirdparty/pear/Archive/Tar.php index 8197d94aa..2dd69cf98 100644 --- a/thirdparty/pear/Archive/Tar.php +++ b/thirdparty/pear/Archive/Tar.php @@ -39,8 +39,6 @@ * @link http://pear.php.net/package/Archive_Tar */ -require_once 'PEAR.php'; - define('ARCHIVE_TAR_ATT_SEPARATOR', 90001); define('ARCHIVE_TAR_END_BLOCK', pack("a512", '')); From b556051254d3c08a6766ab75f3cf6b9d8ff4be8d Mon Sep 17 00:00:00 2001 From: Ronald Quenta Date: Mon, 14 Aug 2017 15:58:34 -0400 Subject: [PATCH 2/4] check other comands --- gulliver/bin/gulliver.php | 8 +- gulliver/bin/tasks/pakeGulliver.php | 32 ++--- .../ProcessMaker/Plugins/PluginRegistry.php | 88 ++++--------- workflow/engine/src/ProcessMaker/Util/Cnn.php | 122 ++++++++++++++++++ 4 files changed, 170 insertions(+), 80 deletions(-) create mode 100644 workflow/engine/src/ProcessMaker/Util/Cnn.php diff --git a/gulliver/bin/gulliver.php b/gulliver/bin/gulliver.php index b251c4555..6f06dadc2 100644 --- a/gulliver/bin/gulliver.php +++ b/gulliver/bin/gulliver.php @@ -1,6 +1,12 @@ make(Kernel::class)->bootstrap(); + +error_reporting(error_reporting() & ~E_DEPRECATED & ~E_STRICT); if (!PATH_THIRDPARTY) { die("You must launch gulliver command line with the gulliver script\n"); diff --git a/gulliver/bin/tasks/pakeGulliver.php b/gulliver/bin/tasks/pakeGulliver.php index 1fec95e85..1d05f678a 100644 --- a/gulliver/bin/tasks/pakeGulliver.php +++ b/gulliver/bin/tasks/pakeGulliver.php @@ -2223,23 +2223,23 @@ function run_check_standard_code ( $task, $options) { function run_update_plugin_attributes($task, $args) { try { - //Verify data if (!isset($args[0])) { throw new Exception("Error: You must specify the name of a plugin"); } - //Set variables $pluginName = $args[0]; - - //Update plugin attributes - $pmPluginRegistry = PluginRegistry::loadSingleton(); - - $pmPluginRegistry->updatePluginAttributesInAllWorkspaces($pluginName); + define('SYS_SYS', uniqid()); + foreach (PmSystem::listWorkspaces() as $value) { + \ProcessMaker\Util\Cnn::connect($value->name); + //Update plugin attributes + $pmPluginRegistry = PluginRegistry::newInstance(); + $pmPluginRegistry->updatePluginAttributesInAllWorkspaces($value->name, $pluginName); + } echo "Done!\n"; } catch (Exception $e) { - error_log( $e->getMessage() . "\n" ); + error_log($e->getMessage() . "\n"); } } @@ -2247,7 +2247,7 @@ function run_check_plugin_disabled_code($task, $args) { try { //Set variables - $option = (isset($args[0]))? trim($args[0]) : ""; + $option = (isset($args[0])) ? trim($args[0]) : ""; $option2 = strtoupper($option); switch ($option2) { @@ -2273,10 +2273,10 @@ function run_check_plugin_disabled_code($task, $args) if (is_file(PATH_PLUGINS . $pluginName . ".php") && is_dir(PATH_PLUGINS . $pluginName)) { if (preg_match( - '/^.*class\s+' . $pluginName . 'Plugin\s+extends\s+(\w*)\s*\{.*$/i', - str_replace(["\n", "\r", "\t"], ' ', file_get_contents(PATH_PLUGINS . $pluginName . '.php')), - $arrayMatch - ) + '/^.*class\s+' . $pluginName . 'Plugin\s+extends\s+(\w*)\s*\{.*$/i', + str_replace(["\n", "\r", "\t"], ' ', file_get_contents(PATH_PLUGINS . $pluginName . '.php')), + $arrayMatch + ) ) { $pluginParentClassName = $arrayMatch[1]; @@ -2325,13 +2325,13 @@ function run_check_plugin_disabled_code($task, $args) $arrayFoundDisabledCode = array_merge($cs->checkDisabledCode("FILE", PATH_PLUGINS . $pluginName . ".php"), $cs->checkDisabledCode("PATH", PATH_PLUGINS . $pluginName)); if (!empty($arrayFoundDisabledCode)) { - $strFoundDisabledCode .= (($strFoundDisabledCode != "")? "\n\n" : "") . "> " . $pluginName; + $strFoundDisabledCode .= (($strFoundDisabledCode != "") ? "\n\n" : "") . "> " . $pluginName; foreach ($arrayFoundDisabledCode as $key2 => $value2) { $strCodeAndLine = ""; foreach ($value2 as $key3 => $value3) { - $strCodeAndLine .= (($strCodeAndLine != "")? ", " : "") . $key3 . " (Lines " . implode(", ", $value3) . ")"; + $strCodeAndLine .= (($strCodeAndLine != "") ? ", " : "") . $key3 . " (Lines " . implode(", ", $value3) . ")"; } $strFoundDisabledCode .= "\n- " . str_replace(PATH_PLUGINS, "", $key2) . ": " . $strCodeAndLine; @@ -2350,7 +2350,7 @@ function run_check_plugin_disabled_code($task, $args) echo "Done!\n"; } catch (Exception $e) { - error_log( $e->getMessage() . "\n" ); + error_log($e->getMessage() . "\n"); } } diff --git a/workflow/engine/src/ProcessMaker/Plugins/PluginRegistry.php b/workflow/engine/src/ProcessMaker/Plugins/PluginRegistry.php index 9d1891927..91a48aeb7 100644 --- a/workflow/engine/src/ProcessMaker/Plugins/PluginRegistry.php +++ b/workflow/engine/src/ProcessMaker/Plugins/PluginRegistry.php @@ -129,6 +129,21 @@ class PluginRegistry $this->_aPluginDetails[$Namespace] = $detail; } + /** + * Unregister the plugin in the class + * @param string $Namespace Name Plugin + * @return PluginDetail + */ + public function unregisterPlugin($Namespace) + { + $detail = null; + if (isset($this->_aPluginDetails[$Namespace])) { + $detail = $this->_aPluginDetails[$Namespace]; + unset($this->_aPluginDetails[$Namespace]); + } + return $detail; + } + /** * Get setup Plugins * @return int @@ -1371,14 +1386,13 @@ class PluginRegistry /** * Update the plugin attributes in all workspaces + * @param string $Workspace Name workspace * @param string $Namespace Name of Plugin * @throws Exception */ - public function updatePluginAttributesInAllWorkspaces($Namespace) + public function updatePluginAttributesInAllWorkspaces($Workspace, $Namespace) { try { - G::LoadClass("wsTools"); - //Set variables $pluginFileName = $Namespace . ".php"; @@ -1387,69 +1401,17 @@ class PluginRegistry throw new Exception("Error: The plugin not exists"); } - //Update plugin attributes + //remove old data plugin + $pmPluginRegistry = PluginRegistry::loadSingleton(); + $pluginDetails = $pmPluginRegistry->unregisterPlugin($Namespace); + + //Load plugin attributes require_once(PATH_PLUGINS . $pluginFileName); - $pmPluginRegistry = PluginRegistry::loadSingleton(); - - $pluginDetails = $pmPluginRegistry->getPluginDetails($pluginFileName); - - if (is_array($pluginDetails->getWorkspaces()) && - count($pluginDetails->getWorkspaces()) > 0 - ) { - $arrayWorkspace = array(); - - foreach (PmSystem::listWorkspaces() as $value) { - $workspaceTools = $value; - - $arrayWorkspace[] = $workspaceTools->name; - } - //Workspaces to update - $arrayWorkspaceAux = array_diff($arrayWorkspace, $pluginDetails->getWorkspaces()); - $strWorkspaceNoWritable = ""; - - $arrayWorkspace = array(); - - foreach ($arrayWorkspaceAux as $value) { - $workspace = $value; - - $workspacePathDataSite = PATH_DATA . "sites" . PATH_SEP . $workspace . PATH_SEP; - - if (file_exists($workspacePathDataSite . "plugin.singleton")) { - $pmPluginRegistry = PluginRegistry::loadSingleton(); - - if (isset($pmPluginRegistry->_aPluginDetails[$Namespace])) { - if (!is_writable($workspacePathDataSite . "plugin.singleton")) { - $strWorkspaceNoWritable .= (($strWorkspaceNoWritable != "") ? ", " : "") . $workspace; - } - - $arrayWorkspace[] = $workspace; - } - } - } - - //Verify data - if ($strWorkspaceNoWritable != "") { - throw new Exception( - 'Error: The workspaces ' . - $strWorkspaceNoWritable . - ' has problems of permissions of write in file "plugin.singleton", solve this problem' - ); - } - - //Update plugin attributes - foreach ($arrayWorkspace as $value) { - $workspace = $value; - - $workspacePathDataSite = PATH_DATA . "sites" . PATH_SEP . $workspace . PATH_SEP; - - $pmPluginRegistry = PluginRegistry::loadSingleton(); - - $pmPluginRegistry->disablePlugin($Namespace); - - $pmPluginRegistry->savePlugin($Namespace); - } + if (is_array($pluginDetails->getWorkspaces()) && !in_array($Workspace, $pluginDetails->getWorkspaces())) { + $pmPluginRegistry->disablePlugin($Namespace); } + $pmPluginRegistry->savePlugin($Namespace); } catch (Exception $e) { throw $e; } diff --git a/workflow/engine/src/ProcessMaker/Util/Cnn.php b/workflow/engine/src/ProcessMaker/Util/Cnn.php new file mode 100644 index 000000000..bf13cd3f5 --- /dev/null +++ b/workflow/engine/src/ProcessMaker/Util/Cnn.php @@ -0,0 +1,122 @@ +Workspace = $Workspace; + Propel::initConfiguration($cnn->buildParams()); + } + + /** + * Loads the parameters required to connect to each workspace database + * @return array + */ + public function buildParams() + { + if ($this->readFileDBWorkspace()) { + return $this->prepareDataSources(); + } + return []; + } + + /** + * Reads the workspace db.php file + * @return bool + */ + private function readFileDBWorkspace() + { + if (file_exists(PATH_DB . $this->Workspace . PATH_SEP . 'db.php')) { + $this->DBFile = file_get_contents(PATH_DB . $this->Workspace . PATH_SEP . 'db.php'); + return true; + } + return false; + } + + /** + * Prepares data resources + * @return array + */ + private function prepareDataSources() + { + $phpCode = preg_replace( + '/define\s*\(\s*[\x22\x27](.*)[\x22\x27]\s*,\s*(\x22.*\x22|\x27.*\x27)\s*\)\s*;/i', + '$$1 = $2;', + $this->DBFile + ); + $phpCode = str_replace([''], '', $phpCode); + + eval($phpCode); + + $dataSources = []; + $dataSources['datasources'] = array( + 'workflow' => array( + 'connection' => $this->buildDsnString( + $DB_ADAPTER, + $DB_HOST, + $DB_NAME, + $DB_USER, + urlencode($DB_PASS) + ), + 'adapter' => "mysql" + ), + 'rbac' => array( + 'connection' => $this->buildDsnString( + $DB_ADAPTER, + $DB_RBAC_HOST, + $DB_RBAC_NAME, + $DB_RBAC_USER, + urlencode($DB_RBAC_PASS) + ), + 'adapter' => "mysql" + ), + 'report' => array( + 'connection' => $this->buildDsnString( + $DB_ADAPTER, + $DB_REPORT_HOST, + $DB_REPORT_NAME, + $DB_REPORT_USER, + urlencode($DB_REPORT_PASS) + ), + 'adapter' => "mysql" + ) + ); + return $dataSources; + } + + /** + * Builds the DSN string to be used by PROPEL + * @param string $Adapter + * @param string $Host + * @param string $Name + * @param string $User + * @param string $Pass + * @return string + */ + private function buildDsnString($Adapter, $Host, $Name, $User, $Pass) + { + $Dsn = $Adapter . "://" . $User . ":" . $Pass . "@" . $Host . "/" . $Name; + switch ($Adapter) { + case 'mysql': + $Dsn .= '?encoding=utf8'; + break; + } + return $Dsn; + } +} From 8a080ae2787a0b6407e3f2e73c43e9cfe4b51522 Mon Sep 17 00:00:00 2001 From: Ronald Quenta Date: Mon, 14 Aug 2017 16:49:53 -0400 Subject: [PATCH 3/4] camel case --- storage/logs/processmaker-2017-08-14.log | 5 +++ .../ProcessMaker/Plugins/PluginRegistry.php | 26 +++++++------- workflow/engine/src/ProcessMaker/Util/Cnn.php | 36 +++++++++---------- 3 files changed, 36 insertions(+), 31 deletions(-) create mode 100644 storage/logs/processmaker-2017-08-14.log diff --git a/storage/logs/processmaker-2017-08-14.log b/storage/logs/processmaker-2017-08-14.log new file mode 100644 index 000000000..89c711a90 --- /dev/null +++ b/storage/logs/processmaker-2017-08-14.log @@ -0,0 +1,5 @@ +[2017-08-14 19:51:02] production.ERROR: exception 'pakeException' with message 'Task "create-plugin" is not defined.' in /home/ronald/Projets/html/3.2.2/thirdparty/pake/pakeApp.class.php:167 +Stack trace: +#0 /home/ronald/Projets/html/3.2.2/gulliver/bin/gulliver.php(39): pakeApp->run(NULL, NULL, false) +#1 /home/ronald/Projets/html/3.2-current/gulliver/bin/gulliver(64): include('/home/ronald/Pr...') +#2 {main} diff --git a/workflow/engine/src/ProcessMaker/Plugins/PluginRegistry.php b/workflow/engine/src/ProcessMaker/Plugins/PluginRegistry.php index 91a48aeb7..39f924f2f 100644 --- a/workflow/engine/src/ProcessMaker/Plugins/PluginRegistry.php +++ b/workflow/engine/src/ProcessMaker/Plugins/PluginRegistry.php @@ -131,15 +131,15 @@ class PluginRegistry /** * Unregister the plugin in the class - * @param string $Namespace Name Plugin + * @param string $namespace Name Plugin * @return PluginDetail */ - public function unregisterPlugin($Namespace) + public function unregisterPlugin($namespace) { $detail = null; - if (isset($this->_aPluginDetails[$Namespace])) { - $detail = $this->_aPluginDetails[$Namespace]; - unset($this->_aPluginDetails[$Namespace]); + if (isset($this->_aPluginDetails[$namespace])) { + $detail = $this->_aPluginDetails[$namespace]; + unset($this->_aPluginDetails[$namespace]); } return $detail; } @@ -1386,15 +1386,15 @@ class PluginRegistry /** * Update the plugin attributes in all workspaces - * @param string $Workspace Name workspace - * @param string $Namespace Name of Plugin + * @param string $workspace Name workspace + * @param string $namespace Name of Plugin * @throws Exception */ - public function updatePluginAttributesInAllWorkspaces($Workspace, $Namespace) + public function updatePluginAttributesInAllWorkspaces($workspace, $namespace) { try { //Set variables - $pluginFileName = $Namespace . ".php"; + $pluginFileName = $namespace . ".php"; //Verify data if (!file_exists(PATH_PLUGINS . $pluginFileName)) { @@ -1403,15 +1403,15 @@ class PluginRegistry //remove old data plugin $pmPluginRegistry = PluginRegistry::loadSingleton(); - $pluginDetails = $pmPluginRegistry->unregisterPlugin($Namespace); + $pluginDetails = $pmPluginRegistry->unregisterPlugin($namespace); //Load plugin attributes require_once(PATH_PLUGINS . $pluginFileName); - if (is_array($pluginDetails->getWorkspaces()) && !in_array($Workspace, $pluginDetails->getWorkspaces())) { - $pmPluginRegistry->disablePlugin($Namespace); + if (is_array($pluginDetails->getWorkspaces()) && !in_array($workspace, $pluginDetails->getWorkspaces())) { + $pmPluginRegistry->disablePlugin($namespace); } - $pmPluginRegistry->savePlugin($Namespace); + $pmPluginRegistry->savePlugin($namespace); } catch (Exception $e) { throw $e; } diff --git a/workflow/engine/src/ProcessMaker/Util/Cnn.php b/workflow/engine/src/ProcessMaker/Util/Cnn.php index bf13cd3f5..ca08710b9 100644 --- a/workflow/engine/src/ProcessMaker/Util/Cnn.php +++ b/workflow/engine/src/ProcessMaker/Util/Cnn.php @@ -10,17 +10,17 @@ use Propel; */ class Cnn { - private $DBFile; - private $Workspace; + private $dbFile; + private $workspace; /** * Establishes connection for the workspace - * @param string $Workspace Name workspace + * @param string $workspace Name workspace */ - public static function connect($Workspace) + public static function connect($workspace) { $cnn = new static(); - $cnn->Workspace = $Workspace; + $cnn->workspace = $workspace; Propel::initConfiguration($cnn->buildParams()); } @@ -42,8 +42,8 @@ class Cnn */ private function readFileDBWorkspace() { - if (file_exists(PATH_DB . $this->Workspace . PATH_SEP . 'db.php')) { - $this->DBFile = file_get_contents(PATH_DB . $this->Workspace . PATH_SEP . 'db.php'); + if (file_exists(PATH_DB . $this->workspace . PATH_SEP . 'db.php')) { + $this->dbFile = file_get_contents(PATH_DB . $this->workspace . PATH_SEP . 'db.php'); return true; } return false; @@ -58,7 +58,7 @@ class Cnn $phpCode = preg_replace( '/define\s*\(\s*[\x22\x27](.*)[\x22\x27]\s*,\s*(\x22.*\x22|\x27.*\x27)\s*\)\s*;/i', '$$1 = $2;', - $this->DBFile + $this->dbFile ); $phpCode = str_replace([''], '', $phpCode); @@ -102,21 +102,21 @@ class Cnn /** * Builds the DSN string to be used by PROPEL - * @param string $Adapter - * @param string $Host - * @param string $Name - * @param string $User - * @param string $Pass + * @param string $adapter + * @param string $host + * @param string $name + * @param string $user + * @param string $pass * @return string */ - private function buildDsnString($Adapter, $Host, $Name, $User, $Pass) + private function buildDsnString($adapter, $host, $name, $user, $pass) { - $Dsn = $Adapter . "://" . $User . ":" . $Pass . "@" . $Host . "/" . $Name; - switch ($Adapter) { + $dns = $adapter . "://" . $user . ":" . $pass . "@" . $host . "/" . $name; + switch ($adapter) { case 'mysql': - $Dsn .= '?encoding=utf8'; + $dns .= '?encoding=utf8'; break; } - return $Dsn; + return $dns; } } From 0670fc3ac97a2df242fc0093cefc9f4d120520a1 Mon Sep 17 00:00:00 2001 From: Ronald Quenta Date: Mon, 14 Aug 2017 17:00:41 -0400 Subject: [PATCH 4/4] remove folder storage --- gulliver/bin/tasks/pakeGulliver.php | 1 + storage/logs/processmaker-2017-08-14.log | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) delete mode 100644 storage/logs/processmaker-2017-08-14.log diff --git a/gulliver/bin/tasks/pakeGulliver.php b/gulliver/bin/tasks/pakeGulliver.php index 1d05f678a..f624f959e 100644 --- a/gulliver/bin/tasks/pakeGulliver.php +++ b/gulliver/bin/tasks/pakeGulliver.php @@ -2229,6 +2229,7 @@ function run_update_plugin_attributes($task, $args) } //Set variables $pluginName = $args[0]; + // virtual SYS_SYS for cache define('SYS_SYS', uniqid()); foreach (PmSystem::listWorkspaces() as $value) { \ProcessMaker\Util\Cnn::connect($value->name); diff --git a/storage/logs/processmaker-2017-08-14.log b/storage/logs/processmaker-2017-08-14.log deleted file mode 100644 index 89c711a90..000000000 --- a/storage/logs/processmaker-2017-08-14.log +++ /dev/null @@ -1,5 +0,0 @@ -[2017-08-14 19:51:02] production.ERROR: exception 'pakeException' with message 'Task "create-plugin" is not defined.' in /home/ronald/Projets/html/3.2.2/thirdparty/pake/pakeApp.class.php:167 -Stack trace: -#0 /home/ronald/Projets/html/3.2.2/gulliver/bin/gulliver.php(39): pakeApp->run(NULL, NULL, false) -#1 /home/ronald/Projets/html/3.2-current/gulliver/bin/gulliver(64): include('/home/ronald/Pr...') -#2 {main}