CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Relationship type error on contact creation
Pages: [1]

Author Topic: Relationship type error on contact creation  (Read 921 times)

jakedeo

  • I’m new here
  • *
  • Posts: 9
  • Karma: 2
Relationship type error on contact creation
May 06, 2010, 09:42:08 pm
After upgrading (3.1.4) and migrating a Drupal / Civi install to a new *nix server, when creating contacts we were getting this error:

"You seem to have deleted the relatioship type 'Employee of'"

Note that the typo 'relatioship' is in the code, not my post.

Anyhow, even though this error occurs, both the record of the individual as well as the organization and the relationship between them is created. I checked the relationship config area as well as the database and nothing looked amiss in either place... I compared these to another Civi install I have on another site which throws no such error.

So, considering this doesn't seem to actually be causing any problems in the system I simply commented out lines 269 - 271 of CRM/Contact/BAO/Contact/Utils.php. It looks like this now:

Code: [Select]
$relTypeId = CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_RelationshipType', 'Employee of', 'id', 'name_a_b'  );
            /* if ( ! $relTypeId ) {
                CRM_Core_Error::fatal( ts( "You seem to have deleted the relatioship type 'Employee of'" ) );
            } */

This of course gets rid of the error but I am curious to know if anyone can say whether or not this will cause any other issues, or if the error is a sign of some other issue that's going on in the database. I am not sure why that statement would return true unless the relationship really did not exist in the database. Any ideas or anyone else who has run into a similar issue? There was not a single result when searching the web for this. Thanks!

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Relationship type error on contact creation
May 06, 2010, 11:32:29 pm
Could u confirm that your civicrm install should have 'Employee of' relationship type,
since It is very important and lot more functionality is depend on it.

you might want to check standard values for this relationship type from our public demo site : http://drupal.demo.civicrm.org/civicrm/admin/reltype&reset=1

Quote
"You seem to have deleted the relatioship type 'Employee of'"

Note that the typo 'relatioship' is in the code, not my post.

-fixed.

thanks,
kiran
You Are Designed To Choose... Defined By Choice.

b

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
Re: Relationship type error on contact creation
June 02, 2010, 07:45:41 am
We had the same problem with civicrm 3.0.3 and the the relatioship type 'Employee of'" the same like in the demo. The solution of jakedeo fix this problem. Thanks

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Relationship type error on contact creation

This forum was archived on 2017-11-26.