WPCV / wpcv-woo-civi-integration

A WordPress plugin that creates CiviCRM Contributions, Memberships and Participants from WordCommerce Orders and keeps WordCommerce Customer Accounts in sync with CiviCRM Contact data.
GNU Affero General Public License v3.0
4 stars 8 forks source link

Avoid fatal errors when calling API3 #54

Closed christianwach closed 11 months ago

christianwach commented 11 months ago

Calling civicrm_api3() outside of try/catch block throws a fatal error. Calling civicrm_api() with the 'version'=> 3 param set does not - and therefore allows code execution to continue. PR fixes these situations until migration to API4 calls is made.