CiviCRM_API3_Exception: DB Constraint Violation
Created by: laryn
I'm not sure why, but I'm getting this fatal error on a particular site after recent upgrades to CivICRM:
CiviCRM_API3_Exception: DB Constraint Violation - region_id should possibly be marked as mandatory for Country,get API. If so, please raise a bug report. in civicrm_api3() (line 134 of /app/modules/civicrm/api/api.php).
Strangely, it seems to be originating in civicrm.install
where the CiviCRM version is checked and reported on the Backdrop Status Report page. More strangely, I've only noticed it on one site so far (even on the same server as another site without the problem).
If I remove the $vc->fetch();
line, it seems to work fine on the sites I've tested it on. Does that seem reasonable?