When I upgrade to 4.8.4 I have this error when saving an entity new record
I've attached my Hook file, Please tanya help me find out the problem
Code:
^[ [2017-11-14 16:56:00] Espo.WARNING: E_WARNING: array_diff(): Argument #1 is not an array {"code":2,"message":"array_diff(): Argument #1 is not an array","file":"/var/www/espo/application/Espo/Core/HookManager.php","line":171,"context":{"hookDirs":["custom/Espo/Custom/Hooks"],"hookData":{"AccountOpening":{"afterSave":{"9":["\\Espo\\Custom\\Hooks\\AccountOpening\\AccountOpening"]}}},"hookDir":"custom/Espo/Custom/Hooks","fileList":{"AccountOpening":["AccountOpening.php","MissingHandler.php"],"CashTransfers":["CashTransfers.php"],"Document":["Document.php"],"0":"MissingHandler.php","WorkLog":["WorkLog.php"]},"hookFiles":["AccountOpening.php","MissingHandler.php"],"scopeName":"AccountOpening","hookScopeDirPath":"custom/Espo/Custom/Hooks/AccountOpening","normalizedScopeName":"AccountOpening","scopeHooks":[],"hookFile":"MissingHandler.php","hookFilePath":"custom/Espo/Custom/Hooks/AccountOpening/MissingHandler.php","className":"\\Espo\\Custom\\Hooks\\AccountOpening\\MissingHandler","classMethods":null,"hookMethods":["afterSave"],"hookName":"afterSave","entityHookData":[]}} [] [2017-11-14 16:56:00] Espo.WARNING: E_WARNING: Invalid argument supplied for foreach() {"code":2,"message":"Invalid argument supplied for foreach()","file":"/var/www/espo/application/Espo/Core/HookManager.php","line":173,"context":{"hookDirs":["custom/Espo/Custom/Hooks"],"hookData":{"AccountOpening":{"afterSave":{"9":["\\Espo\\Custom\\Hooks\\AccountOpening\\AccountOpening"]}}},"hookDir":"custom/Espo/Custom/Hooks","fileList":{"AccountOpening":["AccountOpening.php","MissingHandler.php"],"CashTransfers":["CashTransfers.php"],"Document":["Document.php"],"0":"MissingHandler.php","WorkLog":["WorkLog.php"]},"hookFiles":["AccountOpening.php","MissingHandler.php"],"scopeName":"AccountOpening","hookScopeDirPath":"custom/Espo/Custom/Hooks/AccountOpening","normalizedScopeName":"AccountOpening","scopeHooks":[],"hookFile":"MissingHandler.php","hookFilePath":"custom/Espo/Custom/Hooks/AccountOpening/MissingHandler.php","className":"\\Espo\\Custom\\Hooks\\AccountOpening\\MissingHandler","classMethods":null,"hookMethods":null,"hookName":"afterSave","entityHookData":[]}} [] [2017-11-14 16:56:00] Espo.WARNING: E_WARNING: Invalid argument supplied for foreach() {"code":2,"message":"Invalid argument supplied for foreach()","file":"/var/www/espo/application/Espo/Core/HookManager.php","line":166,"context":{"hookDirs":["custom/Espo/Custom/Hooks"],"hookData":{"AccountOpening":{"afterSave":{"9":["\\Espo\\Custom\\Hooks\\AccountOpening\\AccountOpening"]}},"CashTransfers":{"afterSave":{"9":["\\Espo\\Custom\\Hooks\\CashTransfers\\CashTransfers"]}},"Document":{"afterSave":{"9":["\\Espo\\Custom\\Hooks\\Document\\Document"]},"returnChildrenAccountOpening":{"9":["\\Espo\\Custom\\Hooks\\Document\\Document"]},"relateToDocument":{"9":["\\Espo\\Custom\\Hooks\\Document\\Document"]}}},"hookDir":"custom/Espo/Custom/Hooks","fileList":{"AccountOpening":["AccountOpening.php","MissingHandler.php"],"CashTransfers":["CashTransfers.php"],"Document":["Document.php"],"0":"MissingHandler.php","WorkLog":["WorkLog.php"]},"hookFiles":"MissingHandler.php","scopeName":0,"hookScopeDirPath":"custom/Espo/Custom/Hooks","normalizedScopeName":"Case","scopeHooks":[],"hookFile":"Document.php","hookFilePath":"custom/Espo/Custom/Hooks/Document/Document.php","className":"\\Espo\\Custom\\Hooks\\Document\\Document","classMethods":["afterSave","returnChildrenAccountOpening","relateToDocument","__construct","getDependencyList","inject"],"hookMethods":["afterSave","returnChildrenAccountOpening","relateToDocument"],"hookName":"relateToDocument","entityHookData":[]}} [] [2017-11-14 16:56:00] Espo.WARNING: E_WARNING: Declaration of Espo\Modules\Advanced\Core\Workflow\Conditions\Equals::compareComplex($entity, $condition) should be compatible with Espo\Modules\Advanced\Core\Workflow\Conditions\Base::compareComplex() {"code":2,"message":"Declaration of Espo\\Modules\\Advanced\\Core\\Workflow\\Conditions\\Equals::compareComplex($entity, $condition) should be compatible with Espo\\Modules\\Advanced\\Core\\Workflow\\Conditions\\Base::compareComplex()","file":"/var/www/espo/application/Espo/Modules/Advanced/Core/Workflow/Conditions/Equals.php","line":0,"context":{"file":"/var/www/espo/vendor/composer/../../application/Espo/Modules/Advanced/Core/Workflow/Conditions/Equals.php"}} [] [2017-11-14 16:56:00] Espo.ERROR: Uncaught Exception TypeError: "Argument 1 passed to Espo\Core\Utils\Metadata::__construct() must be an instance of Espo\Core\Utils\File\Manager, instance of Espo\Core\Utils\Config given, called in /var/www/espo/custom/Espo/Custom/Hooks/MissingHandler.php on line 28" at /var/www/espo/application/Espo/Core/Utils/Metadata.php line 80 {"exception":"[object] (TypeError(code: 0): Argument 1 passed to Espo\\Core\\Utils\\Metadata::__construct() must be an instance of Espo\\Core\\Utils\\File\\Manager, instance of Espo\\Core\\Utils\\Config given, called in /var/www/espo/custom/Espo/Custom/Hooks/MissingHandler.php on line 28 at /var/www/espo/application/Espo/Core/Utils/Metadata.php:80)"} []
I've attached my Hook file, Please tanya help me find out the problem
Comment