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 »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • unrecoverable error
Pages: [1]

Author Topic: unrecoverable error  (Read 2737 times)

joe_omesc

  • Guest
unrecoverable error
May 21, 2007, 03:05:54 am
I get the following error after I have activated the civicrm module in drupal an clicked on the 'CiviCRM' menu item.

Any idea on what could be wrong?

---------------------
CiviCRM

unrecoverable error
    Sorry. A non-recoverable error has occurred.

    Database Error Code: Cannot add or update a child row: a foreign key constraint fails (`omc4/civicrm_contact`, CONSTRAINT `FK_civicrm_contact_domain_id` FOREIGN KEY (`domain_id`) REFERENCES `civicrm_domain` (`id`)), 1452

    Return to CiviCRM menu.

Error Details:

Array
(
    [callback] => Array
        (
            [0] => CRM_Core_Error
            [1] => handle
        )

   
Code: [Select]
=> -1
    [message] => DB Error: unknown error
    [mode] => 16
    [debug_info] => INSERT INTO civicrm_contact (domain_id , contact_type , sort_name , display_name , hash ) VALUES ( 1 , 'Individual' , 'joe@omesc.com' , 'joe@omesc.com' , 'be837849e27f1a877cdb3585c313f4e3' )  [nativecode=1452 ** Cannot add or update a child row: a foreign key constraint fails (`omc4/civicrm_contact`, CONSTRAINT `FK_civicrm_contact_domain_id` FOREIGN KEY (`domain_id`) REFERENCES `civicrm_domain` (`id`))]
    [type] => DB_Error
    [user_info] => INSERT INTO civicrm_contact (domain_id , contact_type , sort_name , display_name , hash ) VALUES ( 1 , 'Individual' , 'joe@omesc.com' , 'joe@omesc.com' , 'be837849e27f1a877cdb3585c313f4e3' )  [nativecode=1452 ** Cannot add or update a child row: a foreign key constraint fails (`omc4/civicrm_contact`, CONSTRAINT `FK_civicrm_contact_domain_id` FOREIGN KEY (`domain_id`) REFERENCES `civicrm_domain` (`id`))]
    [to_string] => [db_error: message="DB Error: unknown error" code=-1 mode=callback callback=CRM_Core_Error::handle prefix="" info="INSERT INTO civicrm_contact (domain_id , contact_type , sort_name , display_name , hash ) VALUES ( 1 , 'Individual' , 'joe@omesc.com' , 'joe@omesc.com' , 'be837849e27f1a877cdb3585c313f4e3' )  [nativecode=1452 ** Cannot add or update a child row: a foreign key constraint fails (`omc4/civicrm_contact`, CONSTRAINT `FK_civicrm_contact_domain_id` FOREIGN KEY (`domain_id`) REFERENCES `civicrm_domain` (`id`))]"]
)

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: unrecoverable error
May 21, 2007, 07:35:00 am
From the error, it looks like you may not have loaded the required "fixed data" OR "sample data with fixed data". Check this section of the install doc:

http://wiki.civicrm.org/confluence/display/CRMDOC/Install+CiviCRM+1.7+for+Drupal#InstallCiviCRM1.7forDrupal-CreateCiviCRMdatabasetablesandloadfixeddata%28e.g.phonetypes%2Cdefaultlocationtypes%2Cetc.%29andsamplecontactrecords
Protect your investment in CiviCRM by  becoming a Member!

joe_omesc

  • Guest
Re: unrecoverable error
May 21, 2007, 11:56:06 pm
You are right... my mistake... sorry about that.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • unrecoverable error

This forum was archived on 2017-11-26.