After updating CiviCRM from 3.1.5 to 3.2. I get this error.

Comments

dsuguy’s picture

It appears that in civicrm/api/v2 that they have split the code that deals with relationships into two files (Relationship.php and RelationshipType.php)

The function civicrm_relationship_types_get() is in the RelationshipType.php file and that file is not called in the Civi Relate module code.

I believe if you edit the Civi Relate module code around line 19 to add require_once('api/v2/RelationshipType.php
So that lines 15 through 21 look like the following then it should work. Please note that I have not tried this yet...but it makes sense that it would work.

function civi_relate_prep() {
  civicrm_initialize();
  require_once('api/v2/UFGroup.php');
  require_once('api/v2/UFJoin.php');
  require_once('api/v2/Relationship.php');
  require_once('api/v2/RelationshipType.php');
}
dsuguy’s picture

Status: Active » Fixed

Just tried the code and it worked.

skolesnyk’s picture

Yep, it works. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

hperrett’s picture

Fabulous! Thanks a lot was trying to figure out why the module wasn't working.

fathershawn’s picture

Sorry I missed this! But Release 2.0 is updated to fix this.