Announcement

Collapse
No announcement yet.

v7.5 Upgrade Error - "primaryFilterClassNameMap"

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

  • 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"
    }
    }

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

  • #3
    Should work now.

    Comment


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