Announcement

Collapse
No announcement yet.

Invalid argument supplied for foreach in converter during rebuild

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

  • 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}}}} []

  • #2
    I recommend you to investigate this. I think you have problems with your some custom metadata file.

    Comment


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