I've successfully set several overrides in civicrm.setting.php according to https://docs.civicrm.org/sysadmin/en/latest/customize/settings/. However, both Recatpcha and the USPS Address standardization tool break the site. Setting USPS provider line does work.

I'm doing this on a WP multisite on CiviCRM 5.20.0.

// Set USPS standardization 
$civicrm_setting['CiviCRM Preferences']['address_standardization_provider'] = USPS; 
$civicrm_setting['CiviCRM Preferences']['address_standardization_userid'] = ***; 
$civicrm_setting['CiviCRM Preferences']['address_standardization_url'] = 'http://production.shippingapis.com/shippingapi.dll';

// Misc
$civicrm_setting['CiviCRM Preferences']['recaptchaPublicKey'] = ***;
$civicrm_setting['CiviCRM Preferences']['recaptchaPrivateKey'] =***;
  • What do you mean by "break the site" is there an error message? Feb 5 '20 at 6:59
  • WSOD, it was a syntax error. Putting as answer.
    – Andy Burns
    Feb 5 '20 at 14:40

My syntax was wrong I needed to use tick marks around the values.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.