Skip to end of metadata
Go to start of metadata
CiviCRM Documentation

This page refers to outdated version of CiviCRM. Check current version of documentation.

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

It looks like you may not have loaded civicrm_data.mysql (or civicrm_generated.mysql), which is one of the install steps. Please review the install docs at 2. Install.

[Source. ]

Labels
  • None
  1. May 02, 2008

    Howdy... I'm running into the same error upon confirming Membership selection for a new member.  The page should go to PayPal, but instead I get this DB error.  --- It seems to be caused by entering an email-address that already exists in the table.  So... if a user is already a member, and tries to join again... they get this error.  -- I'm new to this, but is there an error handler where I can set up a error page with a message like "We already have a member on file with this e-mail address"

    1. May 03, 2008

      please use the forums for support requests


Creative Commons License
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-Share Alike 3.0 United States Licence.