I recently upgraded to 4.5.0 and we can't update any Opportunity. We will get a "Bad server response" message. Other entities are fine.
Here's a copy of the log. Could some one help us? Thank you.
[2017-03-17 05:31:37] Espo.ERROR: Uncaught Exception TypeError: "Argument 1 passed to Espo\Modules\RealEstate\Repositories\Opportunity:: beforeSave() must be an instance of Espo\Modules\RealEstate\Repositories\Entity, instance of Espo\Modules\RealEstate\Entities\Opportunity given, called in /home1/gordonwe/public_html/gwcrm/application/Espo/ORM/Repositories/RDB.php on line 139" at /home1/gordonwe/public_html/gwcrm/application/Espo/Modules/RealEstate/Repositories/Opportunity.php line 27 {"exception":"[object] (TypeError: TypeError: Argument 1 passed to Espo\\Modules\\RealEstate\\Repositories\\Opportuni ty::beforeSave() must be an instance of Espo\\Modules\\RealEstate\\Repositories\\Entity, instance of Espo\\Modules\\RealEstate\\Entities\\Opportunity given, called in /home1/gordonwe/public_html/gwcrm/application/Espo/ORM/Repositories/RDB.php on line 139 and defined in /home1/gordonwe/public_html/gwcrm/application/Espo/Modules/RealEstate/Repositories/Opportunity.php:27\nStack trace:\n#0 /home1/gordonwe/public_html/gwcrm/application/Espo/ORM/Repositories/RDB.php(139): Espo\\Modules\\RealEstate\\Repositories\\Opportuni ty->beforeSave(Object(Espo\\Modules\\RealEstate\\Enti ties\\Opportunity), Array)\n#1 /home1/gordonwe/public_html/gwcrm/application/Espo/Core/ORM/Repositories/RDB.php(289): Espo\\ORM\\Repositories\\RDB->save(Object(Espo\\Modules\\RealEstate\\Entities\\ Opportunity), Array)\n#2 /home1/gordonwe/public_html/gwcrm/application/Espo/Services/Record.php(343): Espo\\Core\\ORM\\Repositories\\RDB->save(Object(Espo\\Modules\\RealEstate\\Entities\\ Opportunity))\n#3 /home1/gordonwe/public_html/gwcrm/application/Espo/Services/Record.php(617): Espo\\Services\\Record->storeEntity(Object(Espo\\Modules\\RealEstate\\Ent ities\\Opportunity))\n#4 /home1/gordonwe/public_html/gwcrm/application/Espo/Core/Controllers/Record.php(115): Espo\\Services\\Record->updateEntity('58bccbfbbb63d14...', Array)\n#5 /home1/gordonwe/public_html/gwcrm/application/Espo/Core/Controllers/Record.php(81): Espo\\Core\\Controllers\\Record->actionUpdate(Array, Array, Object(Slim\\Http\\Request))\n#6 /home1/gordonwe/public_html/gwcrm/application/Espo/Core/ControllerManager.php(116): Espo\\Core\\Controllers\\Record->actionPatch(Array, Array, Object(Slim\\Http\\Request))\n#7 /home1/gordonwe/public_html/gwcrm/application/Espo/Core/Application.php(226): Espo\\Core\\ControllerManager->process('Opportunity', 'patch', Array, Array, Object(Slim\\Http\\Request))\n#8 [internal function]: Espo\\Core\\Application->Espo\\Core\\{closure}(NULL)\n#9 /home1/gordonwe/public_html/gwcrm/vendor/slim/slim/Slim/Slim.php(1175): call_user_func(Object(Closure), NULL)\n#10 /home1/gordonwe/public_html/gwcrm/vendor/slim/slim/Slim/Slim.php(1315): Slim\\Slim->applyHook('slim.before.dis...')\n#11 /home1/gordonwe/public_html/gwcrm/vendor/slim/slim/Slim/Middleware/Flash.php(85): Slim\\Slim->call()\n#12 /home1/gordonwe/public_html/gwcrm/vendor/slim/slim/Slim/Middleware/MethodOverride.php(92): Slim\\Middleware\\Flash->call()\n#13 /home1/gordonwe/public_html/gwcrm/application/Espo/Core/Utils/Api/Auth.php(105): Slim\\Middleware\\MethodOverride->call()\n#14 /home1/gordonwe/public_html/gwcrm/application/Espo/Core/Utils/Api/Slim.php(125): Espo\\Core\\Utils\\Api\\Auth->call()\n#15 /home1/gordonwe/public_html/gwcrm/application/Espo/Core/Application.php(88): Espo\\Core\\Utils\\Api\\Slim->run()\n#16 /home1/gordonwe/public_html/gwcrm/api/v1/index.php(33): Espo\\Core\\Application->run()\n#17 {main})"} []
Here's a copy of the log. Could some one help us? Thank you.
[2017-03-17 05:31:37] Espo.ERROR: Uncaught Exception TypeError: "Argument 1 passed to Espo\Modules\RealEstate\Repositories\Opportunity:: beforeSave() must be an instance of Espo\Modules\RealEstate\Repositories\Entity, instance of Espo\Modules\RealEstate\Entities\Opportunity given, called in /home1/gordonwe/public_html/gwcrm/application/Espo/ORM/Repositories/RDB.php on line 139" at /home1/gordonwe/public_html/gwcrm/application/Espo/Modules/RealEstate/Repositories/Opportunity.php line 27 {"exception":"[object] (TypeError: TypeError: Argument 1 passed to Espo\\Modules\\RealEstate\\Repositories\\Opportuni ty::beforeSave() must be an instance of Espo\\Modules\\RealEstate\\Repositories\\Entity, instance of Espo\\Modules\\RealEstate\\Entities\\Opportunity given, called in /home1/gordonwe/public_html/gwcrm/application/Espo/ORM/Repositories/RDB.php on line 139 and defined in /home1/gordonwe/public_html/gwcrm/application/Espo/Modules/RealEstate/Repositories/Opportunity.php:27\nStack trace:\n#0 /home1/gordonwe/public_html/gwcrm/application/Espo/ORM/Repositories/RDB.php(139): Espo\\Modules\\RealEstate\\Repositories\\Opportuni ty->beforeSave(Object(Espo\\Modules\\RealEstate\\Enti ties\\Opportunity), Array)\n#1 /home1/gordonwe/public_html/gwcrm/application/Espo/Core/ORM/Repositories/RDB.php(289): Espo\\ORM\\Repositories\\RDB->save(Object(Espo\\Modules\\RealEstate\\Entities\\ Opportunity), Array)\n#2 /home1/gordonwe/public_html/gwcrm/application/Espo/Services/Record.php(343): Espo\\Core\\ORM\\Repositories\\RDB->save(Object(Espo\\Modules\\RealEstate\\Entities\\ Opportunity))\n#3 /home1/gordonwe/public_html/gwcrm/application/Espo/Services/Record.php(617): Espo\\Services\\Record->storeEntity(Object(Espo\\Modules\\RealEstate\\Ent ities\\Opportunity))\n#4 /home1/gordonwe/public_html/gwcrm/application/Espo/Core/Controllers/Record.php(115): Espo\\Services\\Record->updateEntity('58bccbfbbb63d14...', Array)\n#5 /home1/gordonwe/public_html/gwcrm/application/Espo/Core/Controllers/Record.php(81): Espo\\Core\\Controllers\\Record->actionUpdate(Array, Array, Object(Slim\\Http\\Request))\n#6 /home1/gordonwe/public_html/gwcrm/application/Espo/Core/ControllerManager.php(116): Espo\\Core\\Controllers\\Record->actionPatch(Array, Array, Object(Slim\\Http\\Request))\n#7 /home1/gordonwe/public_html/gwcrm/application/Espo/Core/Application.php(226): Espo\\Core\\ControllerManager->process('Opportunity', 'patch', Array, Array, Object(Slim\\Http\\Request))\n#8 [internal function]: Espo\\Core\\Application->Espo\\Core\\{closure}(NULL)\n#9 /home1/gordonwe/public_html/gwcrm/vendor/slim/slim/Slim/Slim.php(1175): call_user_func(Object(Closure), NULL)\n#10 /home1/gordonwe/public_html/gwcrm/vendor/slim/slim/Slim/Slim.php(1315): Slim\\Slim->applyHook('slim.before.dis...')\n#11 /home1/gordonwe/public_html/gwcrm/vendor/slim/slim/Slim/Middleware/Flash.php(85): Slim\\Slim->call()\n#12 /home1/gordonwe/public_html/gwcrm/vendor/slim/slim/Slim/Middleware/MethodOverride.php(92): Slim\\Middleware\\Flash->call()\n#13 /home1/gordonwe/public_html/gwcrm/application/Espo/Core/Utils/Api/Auth.php(105): Slim\\Middleware\\MethodOverride->call()\n#14 /home1/gordonwe/public_html/gwcrm/application/Espo/Core/Utils/Api/Slim.php(125): Espo\\Core\\Utils\\Api\\Auth->call()\n#15 /home1/gordonwe/public_html/gwcrm/application/Espo/Core/Application.php(88): Espo\\Core\\Utils\\Api\\Slim->run()\n#16 /home1/gordonwe/public_html/gwcrm/api/v1/index.php(33): Espo\\Core\\Application->run()\n#17 {main})"} []
Comment