Announcement

Collapse
No announcement yet.

Error 500

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

  • Error 500

    Hi,
    I get error 500 everywhere after I checked Audited box in same field in opportunity items(I forgot which one).
    Logs form espo:
    Code:
    [2018-07-06 10:24:25] Espo.WARNING: E_WARNING: Invalid argument supplied for foreach() {"code":2,"message":"Invalid argument supplied for foreach()","file":"/var/www/gajetare.com/htdocs/espo/espocrm-latest/EspoCRM-4.8.4/application/Espo/Core/ORM/Repositories/RDB.php","line":129,"context":{"params":[],"entityType":"AuthToken","metadata":"[object] (Espo\\Core\\Utils\\Metadata: {})","defs":1}} []
    [2018-07-06 10:24:25] Espo.ERROR: E_RECOVERABLE_ERROR: Argument 1 passed to Espo\ORM\DB\Mapper::select() must be an instance of Espo\ORM\IEntity, null given, called in /var/www/gajetare.com/htdocs/espo/espocrm-latest/EspoCRM-4.8.4/application/Espo/ORM/Repositories/RDB.php on line 200 and defined {"code":4096,"message":"Argument 1 passed to Espo\\ORM\\DB\\Mapper::select() must be an instance of Espo\\ORM\\IEntity, null given, called in /var/www/gajetare.com/htdocs/espo/espocrm-latest/EspoCRM-4.8.4/application/Espo/ORM/Repositories/RDB.php on line 200 and defined","file":"/var/www/gajetare.com/htdocs/espo/espocrm-latest/EspoCRM-4.8.4/application/Espo/ORM/DB/Mapper.php","line":104,"context":[]} []
    Thank You in advance.

  • #2
    Hello,
    could you attach zipped custom/Espo/Custom/Resources/metadata/entityDefs ?

    Comment


    • #3
      I change all field "audited": true, -> audited": false in OpportunityItems.json and now works. Thank You Tanya!

      Comment


      • #4
        Could you let me know which field you set audited? I would like to reproduce the issue. Thank you.
        If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

        Comment


        • #5
          PHP Code:
          {
              
          "fields": {
                  
          "koszt": {
                      
          "type""currency",
                      
          "required"false,
                      
          "audited"true,
                      
          "readOnly"false,
                      
          "tooltip"false,
                      
          "isCustom"true 
          Attached Files

          Comment


          • #6
            What is your current version of EspoCRM and advanced Pack?
            And 'audited' parameter could be needed only, if entity has Stream

            Comment

            Working...
            X