After updating to 5.35.1 addressess couldn't be saved
Overview
When we tried to save an address we got a: "server could not be found" error.
Reproduction steps
- Go to a contact.
- Change it's address
- Click save.
Current behaviour
An error is produced and the changes to the address are not saved.
Expected behaviour
Changes should be saved and confirmation should be given to the user.
Environment information
- CiviCRM: 5.31(?) -> 5.35.1
- PHP: 7.2
- CMS: Drupal 7.73
Comments
Could be a thing that's only applicable to our set up.
Changing
$address = CRM_Core_BAO_Address::legacyCreate($params, TRUE)
into
$address = CRM_Core_BAO_Address::create($params, TRUE);
in: CRM/Contact/Form/Inline/Address.php @ line 172
Solved it