Announcement

Collapse
No announcement yet.

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

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.

  • #2
    It will be fixed in the next release.

    Comment


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

      Comment

      Working...
      X