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 »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • DB Error: constraint violation when creating a New Individual on Multisite
Pages: [1]

Author Topic: DB Error: constraint violation when creating a New Individual on Multisite  (Read 1220 times)

MickC

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 3.3
  • CMS version: Drupal 6.20
  • MySQL version: 5.0
  • PHP version: 5.0
DB Error: constraint violation when creating a New Individual on Multisite
February 20, 2011, 02:45:50 am
I'm getting a "Sorry. A non-recoverable error has occurred." when trying to create a new Individual on the 2nd site of a multisite installation.  Note that the first site is not getting the error.  Anyone else had this issue?  Any help would be appreciated.  Error details:

Database Error Code: Cannot add or update a child row: a foreign key constraint fails (`....civicrm_subscription_history`, CONSTRAINT `FK_civicrm_subscription_history_group_id` FOREIGN KEY (`group_id`) REFERENCES `civicrm_group` (`id`) ON DELETE CASCADE), 1452

I've put more code in the attached file (sorry, post won't let me add as code).


   
 
 

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • DB Error: constraint violation when creating a New Individual on Multisite

This forum was archived on 2017-11-26.