Bad Server response when I save an entity

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • saled
    Junior Member
    • May 2018
    • 11

    Bad Server response when I save an entity

    Hi,

    I've created an entity Art.
    Then I want to edit it to change le label.
    I've change it to "Œvres" (in french). When I click on Save, I have a Bad server response.
    I cancel, and edit again : the new label has been saved.

    I try to save again : OK.

    I'm on Espo V 5.1.2
    windows serveur 2012 R2
    php 7.2.4

    Here is the log :

    [2018-05-28 08:24:39] Espo.ERROR: Uncaught Exception TypeError: "Argument 1 passed to Espo\ORM\EntityManager::setMetadata() must be of the type array, integer given, called in C:\wamp64\www\EspoCRM-5.1.2\application\Espo\ORM\EntityManager.php on line 76" at C:\wamp64\www\EspoCRM-5.1.2\application\Espo\ORM\EntityManager.php line 194 {"exception":"[object] (TypeError(code: 0): Argument 1 passed to Espo\\ORM\\EntityManager::setMetadata() must be of the type array, integer given, called in C:\\wamp64\\www\\EspoCRM-5.1.2\\application\\Espo\\ORM\\EntityManager.php on line 76 at C:\\wamp64\\www\\EspoCRM-5.1.2\\application\\Espo\\ORM\\EntityManager.php:1 94)"} []
    [2018-05-28 08:27:49] Espo.ERROR: Uncaught Exception TypeError: "Argument 1 passed to Espo\ORM\EntityManager::setMetadata() must be of the type array, integer given, called in C:\wamp64\www\EspoCRM-5.1.2\application\Espo\ORM\EntityManager.php on line 76" at C:\wamp64\www\EspoCRM-5.1.2\application\Espo\ORM\EntityManager.php line 194 {"exception":"[object] (TypeError(code: 0): Argument 1 passed to Espo\\ORM\\EntityManager::setMetadata() must be of the type array, integer given, called in C:\\wamp64\\www\\EspoCRM-5.1.2\\application\\Espo\\ORM\\EntityManager.php on line 76 at C:\\wamp64\\www\\EspoCRM-5.1.2\\application\\Espo\\ORM\\EntityManager.php:1 94)"} []
    [2018-05-28 08:28:00] Espo.ERROR: Uncaught Exception TypeError: "Argument 1 passed to Espo\ORM\EntityManager::setMetadata() must be of the type array, integer given, called in C:\wamp64\www\EspoCRM-5.1.2\application\Espo\ORM\EntityManager.php on line 76" at C:\wamp64\www\EspoCRM-5.1.2\application\Espo\ORM\EntityManager.php line 194 {"exception":"[object] (TypeError(code: 0): Argument 1 passed to Espo\\ORM\\EntityManager::setMetadata() must be of the type array, integer given, called in C:\\wamp64\\www\\EspoCRM-5.1.2\\application\\Espo\\ORM\\EntityManager.php on line 76 at C:\\wamp64\\www\\EspoCRM-5.1.2\\application\\Espo\\ORM\\EntityManager.php:1 94)"} []
    [2018-05-28 08:38:12] Espo.ERROR: Uncaught Exception TypeError: "Argument 1 passed to Espo\ORM\EntityManager::setMetadata() must be of the type array, integer given, called in C:\wamp64\www\EspoCRM-5.1.2\application\Espo\ORM\EntityManager.php on line 76" at C:\wamp64\www\EspoCRM-5.1.2\application\Espo\ORM\EntityManager.php line 194 {"exception":"[object] (TypeError(code: 0): Argument 1 passed to Espo\\ORM\\EntityManager::setMetadata() must be of the type array, integer given, called in C:\\wamp64\\www\\EspoCRM-5.1.2\\application\\Espo\\ORM\\EntityManager.php on line 76 at C:\\wamp64\\www\\EspoCRM-5.1.2\\application\\Espo\\ORM\\EntityManager.php:1 94)"} []
    [2018-05-28 08:38:12] Espo.ERROR: Uncaught Exception TypeError: "Argument 1 passed to Espo\ORM\EntityManager::setMetadata() must be of the type array, integer given, called in C:\wamp64\www\EspoCRM-5.1.2\application\Espo\ORM\EntityManager.php on line 76" at C:\wamp64\www\EspoCRM-5.1.2\application\Espo\ORM\EntityManager.php line 194 {"exception":"[object] (TypeError(code: 0): Argument 1 passed to Espo\\ORM\\EntityManager::setMetadata() must be of the type array, integer given, called in C:\\wamp64\\www\\EspoCRM-5.1.2\\application\\Espo\\ORM\\EntityManager.php on line 76 at C:\\wamp64\\www\\EspoCRM-5.1.2\\application\\Espo\\ORM\\EntityManager.php:1 94)"} []
    [2018-05-28 08:38:28] Espo.WARNING: E_WARNING: Invalid argument supplied for foreach() {"code":2,"message":"Invalid argument supplied for foreach()","file":"C:\\wamp64\\www\\EspoCRM-5.1.2\\application\\Espo\\Core\\Utils\\Database\\O rm\\Converter.php","line":150,"context":{"entityDe fs":1,"ormMetadata":[]}} []
    [2018-05-28 08:38:28] Espo.WARNING: E_WARNING: get_class() expects parameter 1 to be object, null given {"code":2,"message":"get_class() expects parameter 1 to be object, null given","file":"C:\\wamp64\\www\\EspoCRM-5.1.2\\application\\Espo\\ORM\\Repositories\\RDB.p hp","line":68,"context":{"entityType":"AuthToken ", "entityManager":"[object] (Espo\\Core\\ORM\\EntityManager: {})","entityFactory":"[object] (Espo\\ORM\\EntityFactory: {})"}} []
    [2018-05-28 08:38:28] Espo.WARNING: E_WARNING: Invalid argument supplied for foreach() {"code":2,"message":"Invalid argument supplied for foreach()","file":"C:\\wamp64\\www\\EspoCRM-5.1.2\\application\\Espo\\Core\\ORM\\Repositories\ \RDB.php","line":129,"context":{"params":[],"entityType":"AuthToken","metadata":"[object] (Espo\\Core\\Utils\\Metadata: {})","defs":1}} []
    [2018-05-28 08:38:28] Espo.ERROR: Uncaught Exception TypeError: "Argument 1 passed to Espo\ORM\DB\Mapper::select() must be an instance of Espo\ORM\IEntity, null given, called in C:\wamp64\www\EspoCRM-5.1.2\application\Espo\ORM\Repositories\RDB.php on line 201" at C:\wamp64\www\EspoCRM-5.1.2\application\Espo\ORM\DB\Mapper.php line 103 {"exception":"[object] (TypeError(code: 0): Argument 1 passed to Espo\\ORM\\DB\\Mapper::select() must be an instance of Espo\\ORM\\IEntity, null given, called in C:\\wamp64\\www\\EspoCRM-5.1.2\\application\\Espo\\ORM\\Repositories\\RDB.p hp on line 201 at C:\\wamp64\\www\\EspoCRM-5.1.2\\application\\Espo\\ORM\\DB\\Mapper.php:103) "} []
    [2018-05-28 08:38:47] Espo.ERROR: Uncaught Exception TypeError: "Argument 1 passed to Espo\ORM\EntityManager::setMetadata() must be of the type array, integer given, called in C:\wamp64\www\EspoCRM-5.1.2\application\Espo\ORM\EntityManager.php on line 76" at C:\wamp64\www\EspoCRM-5.1.2\application\Espo\ORM\EntityManager.php line 194 {"exception":"[object] (TypeError(code: 0): Argument 1 passed to Espo\\ORM\\EntityManager::setMetadata() must be of the type array, integer given, called in C:\\wamp64\\www\\EspoCRM-5.1.2\\application\\Espo\\ORM\\EntityManager.php on line 76 at C:\\wamp64\\www\\EspoCRM-5.1.2\\application\\Espo\\ORM\\EntityManager.php:1 94)"} []
    [2018-05-28 08:39:28] Espo.WARNING: E_WARNING: mkdir(): File exists {"code":2,"message":"mkdir(): File exists","file":"C:\\wamp64\\www\\EspoCRM-5.1.2\\application\\Espo\\Core\\Utils\\File\\Manag er.php","line":396,"context":{"path":"data/cache/application","permission":"509","recursive":true," fullPath":"data/cache/application","defaultPermissions":{"dir":"0775","f ile":"0664","user":"","group":""}}} []
    [2018-05-28 08:39:30] Espo.ERROR: Uncaught Exception TypeError: "Argument 1 passed to Espo\ORM\EntityManager::setMetadata() must be of the type array, integer given, called in C:\wamp64\www\EspoCRM-5.1.2\application\Espo\ORM\EntityManager.php on line 76" at C:\wamp64\www\EspoCRM-5.1.2\application\Espo\ORM\EntityManager.php line 194 {"exception":"[object] (TypeError(code: 0): Argument 1 passed to Espo\\ORM\\EntityManager::setMetadata() must be of the type array, integer given, called in C:\\wamp64\\www\\EspoCRM-5.1.2\\application\\Espo\\ORM\\EntityManager.php on line 76 at C:\\wamp64\\www\\EspoCRM-5.1.2\\application\\Espo\\ORM\\EntityManager.php:1 94)"} []
    [2018-05-28 08:49:02] Espo.WARNING: E_WARNING: Invalid argument supplied for foreach() {"code":2,"message":"Invalid argument supplied for foreach()","file":"C:\\wamp64\\www\\EspoCRM-5.1.2\\application\\Espo\\Core\\Application.php"," line":293,"context":{"autoload":"[object] (Espo\\Core\\Utils\\Autoload: {})","autoloadList":1,"namespacesPath":"vendor/composer/autoload_namespaces.php","existingNamespaces":["tests","Slim","Psr\\Log","PHPExcel","Identico n", "Espo\\Custom","Doctrine\\DBAL","Doctrine\\Com mon \\Lexer","Doctrine\\Common\\Inflector","Doctrine \\Common\\Collections","Doctrine\\Common\\Cache" ,"Doctrine\\Common\\Annotations","Doctrine\\Com mo n","Cron",""],"classLoader":"[object] (Composer\\Autoload\\ClassLoader: {})","vendorDir":"C:\\wamp64\\www\\EspoCRM-5.1.2\\vendor","baseDir":"C:\\wamp64\\www\\EspoCRM-5.1.2"}} []
    [2018-05-28 08:49:03] Espo.ERROR: Uncaught Exception TypeError: "Argument 1 passed to Espo\ORM\EntityManager::setMetadata() must be of the type array, integer given, called in C:\wamp64\www\EspoCRM-5.1.2\application\Espo\ORM\EntityManager.php on line 76" at C:\wamp64\www\EspoCRM-5.1.2\application\Espo\ORM\EntityManager.php line 194 {"exception":"[object] (TypeError(code: 0): Argument 1 passed to Espo\\ORM\\EntityManager::setMetadata() must be of the type array, integer given, called in C:\\wamp64\\www\\EspoCRM-5.1.2\\application\\Espo\\ORM\\EntityManager.php on line 76 at C:\\wamp64\\www\\EspoCRM-5.1.2\\application\\Espo\\ORM\\EntityManager.php:1 94)"} []
    Last edited by saled; 05-28-2018, 09:28 AM.
  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    can not reproduced it on the newest version.
    could you reproduce this error again?
    and after upgrade?

    Comment

    Working...