Invalid argument supplied for foreach in converter during rebuild

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tothewine
    Active Community Member
    • Jan 2018
    • 373

    Invalid argument supplied for foreach in converter during rebuild

    I get a dozen or so of these in rebuild... not sure if it's an intended error.

    [2019-11-11 09:52:47] Espo.WARNING: E_WARNING: Invalid argument supplied for foreach() {"code":2,"message":"Invalid argument supplied for foreach()","file":"/home/mecgroup/public_html/crm/application/Espo/Core/Utils/Database/Orm/Converter.php","line":315,"context":{"entityName": "workflow","entityMetadata":{"serviceActions": {"Pr oduct":{"SincronizzazioneProdotti":{"serviceName": "CustomizedServices","methodName":"Importazion ePro dotti"}}}},"unmergedFields":["name"],"outputMeta":{"id":{"type":"id","dbType":"varc har "},"name":{"type":"varchar","notStorable":true },"d eleted":{"type":"bool","default":false}}}} []
  • yuri
    Member
    • Mar 2014
    • 8453

    #2
    I recommend you to investigate this. I think you have problems with your some custom metadata file.
    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

    • tothewine
      Active Community Member
      • Jan 2018
      • 373

      #3
      The json file must be with first letter uppercase? I have /custom/Espo/Custom/Resources/metadata/entityDefs/workflow.json

      I changed name to first letter uppercase.

      Is the content correct ?

      PHP Code:
      
      {
        "serviceActions": {
          "Product": {
            "SincronizzazioneProdotti": {
              "serviceName": "CustomizedServices",
              "methodName": "ImportazioneProdotti"
            }
          }
        }
      } 
      
      Last edited by tothewine; 11-11-2019, 10:35 AM.

      Comment

      Working...