v5.2.4 - Use of saveEntity($user) throws Uncaught Exception TypeError

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • youri
    Junior Member
    • Apr 2018
    • 6

    v5.2.4 - Use of saveEntity($user) throws Uncaught Exception TypeError

    With LDAP authentication active and working properly under version 5.1.2, if a LDAP user logged in for the first time into EspoCRM account creation worked fine.
    Since upgrading from 5.1.2 to 5.2.4 EspoCRM throws an error and cannot properly use "saveEntity($user)".

    Code:
    [2018-06-08 07:37:00] Espo.ERROR: Uncaught Exception TypeError:
    "Argument 2 passed to Espo\Core\Acl::__construct() must be an instance of Espo\Entities\User, null given,
    called in /var/www/espo-5.2.4-test/application/Espo/Core/Container.php on line 255"
    at /var/www/espo-5.2.4-test/application/Espo/Core/Acl.php line 41 {"exception":"[object]
    (TypeError(code: 0): Argument 2 passed to Espo\\Core\\Acl::__construct() must be an instance of Espo\\Entities\\User, null given,
    called in /var/www/espo-5.2.4-test/application/Espo/Core/Container.php on line 255
    at /var/www/espo-5.2.4-test/application/Espo/Core/Acl.php:41)"} []
    The user is still created, but not all settings are saved.

    We run EspoCRM on Debian 9.3 with nginx/1.10.3 and PHP 7.0.27-0+deb9u1.
  • tarasm
    Super Moderator
    • Mar 2014
    • 573

    #2
    It will be fixed in the next release.
    Job Offers and Requests

    Comment

    • youri
      Junior Member
      • Apr 2018
      • 6

      #3
      Thank you, we applied your fix manually and it works again.

      Comment

      Working...