Upgrade error with civigrant - order of dependencies matters
- Install an older version of civi. Let's say 5.39 but I don't think it matters too much.
- Enable the CiviGrant component.
- Don't install search kit.
- Upgrade. You'll see a message about "extension error" that looks like this. So far not a problem, but note the order of dependencies listed. The average person will now attempt to install
Form Core
first. - NO! You must install search kit first. Otherwise you get
API error: API (SearchDisplay, create) does not exist (join the API team and implement it!) on SearchDisplay.create
.
Note that this is slightly different from #3036 (closed) (PR https://github.com/civicrm/civicrm-core/pull/22623) which dealt with interdependence between form builder and search kit, and the order there doesn't matter.