v7.5 Upgrade Error - "primaryFilterClassNameMap"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • esforim
    Active Community Member
    • Jan 2020
    • 2204

    v7.5 Upgrade Error - "primaryFilterClassNameMap"

    Getting this error when I try to upgrade. Not sure how to fix if anyone have same issue.

    Code:
    ERROR: Upgrade Error: Error: Attempt to assign property "primaryFilterClassNameMap" on null
    Looking at it, it seem to be related to the Global Filter I recently create from devcrm Tutorial: https://www.youtube.com/watch?v=BYllS-6_xdE

    Looking at Documents it seem to be correct: https://docs.espocrm.com/development...erclassnamemap

    Code:
    {
    "primaryFilterClassNameMap": {
    "myCustomFilter": "Espo\\Custom\\Classes\\Select\\MyEntityType\\Prim aryFilters\\MyCustomFilter"
    }
    }
  • esforim
    Active Community Member
    • Jan 2020
    • 2204

    #2
    Look like the after upgrade script also checking this for some reason:

    $primaryFilterClassNameMap = (object) $data1['primaryFilterClassNameMap'];

    Comment


    • esforim
      esforim commented
      Editing a comment
      Guess I wait a few week and see other people, hopefully there is a solution.

    • rabii
      rabii commented
      Editing a comment
      that code just update the metadata and merge core selectDefs and custom selectDefs. from the error you are getting this is not an issue with the upgrade, i guess there is an issue with your class namespace. double check the selectDefs of your entity and make sure that the primaryFilterClassNameMap is properly set.
  • yuri
    Member
    • Mar 2014
    • 8440

    #3
    Should work now.
    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

    • esforim
      Active Community Member
      • Jan 2020
      • 2204

      #4
      Hi @rabii,

      Was working fine in v7.4.6, I followed devcrm tutorial for it. I also try to do a quick fix by deleting the custom folder, removing these edit as file well but it doesn't work!

      But that doesn't matter! This thread does not matter! Because of this: https://forum.espocrm.com/forum/inst...3686#post93686

      Yuri did his magic and create v7.5.1 and I just upgraded. Now time to play and ignore forum

      No Error 500 on auto-refresh after upgrade and that is a good sign.
      Last edited by esforim; 06-14-2023, 05:41 AM.

      Comment

      Working...