Sales pack removed -> Invalid argument in Core/Utils/Database/Orm/Converter.php

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rinorway
    Senior Member
    • Feb 2016
    • 179

    Sales pack removed -> Invalid argument in Core/Utils/Database/Orm/Converter.php

    After first disabling the Sales pack extension, then removing it, my log fills up with this.


    Code:
    21846:[2020-11-24 12:28:05]
    Espo.WARNING: E_WARNING: Invalid argument supplied for foreach()
    {"code":2,"message":"Invalid argument supplied for foreach()","file":"/var/www/crm/application/Espo/Core/Utils/Database/Orm/Converter.php","line":311,
    "context":{"entityName": "ProductBrand","entityMetadata":{"collection": {"sortBy":"name","asc":true,"textFilterFields":["name"],"fullTextSearch":false,"orderBy":"name","order ":" asc"}},"unmergedFields":["name"],"outputMeta":{"id":{"type":"id","dbType":"varchar "},"name":{"type":"varchar","notStorable":true },"deleted":{"type":"bool","default":false}}}} []

    Checking for any reference to ProductBrand I only see it is in the
    application/Espo/Modules/Advanced/Resources/metadata/entityDefs/BpmnFlowchart.json, and nowhere else.

    What is generating this error?

    Running 6.0.6 with latest advanced pack.
  • rinorway
    Senior Member
    • Feb 2016
    • 179

    #2
    Maybe good to add : route to this was :
    - buy advanced pack (classic, with all modules like salespack)
    - upgrade and get licences for all 4 extensions for free (so advanced pack was split off)
    - upgrade only advanced pack, remove unused Sales pack

    Checked templates and removed "Quote" from templates
    Checked all entities for leftovers
    Rebuilt, Cleared cache

    Last edited by rinorway; 11-26-2020, 06:20 PM.

    Comment

    • rinorway
      Senior Member
      • Feb 2016
      • 179

      #3
      /var/www/lcrm/custom/Espo/Custom/Resources/metadata/clientDefs and
      /var/www/lcrm/custom/Espo/Custom/Resources/metadata/entityDefs

      Still kept customisations, that's why.

      Comment

      Working...