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 »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • New 1.7 beta 9327 issue
Pages: [1]

Author Topic: New 1.7 beta 9327 issue  (Read 2764 times)

twowheeler

  • I post occasionally
  • **
  • Posts: 115
  • Karma: 11
    • Harrisburg Christian Performing Arts Center
  • CiviCRM version: 4.3.4
  • CMS version: Drupal 7.22
  • MySQL version: 5.1
  • PHP version: 5.3
New 1.7 beta 9327 issue
April 29, 2007, 12:28:18 am
I have the latest civicrm installed on drupal and it is mostly working great.  However I get errors while trying to delete the sample data records.  Sometimes it works, but most of the time when I try to delete a contact this error occurs.

     Sorry. A non-recoverable error has occurred.

    Database Error Code: Cannot delete or update a parent row: a foreign key constraint fails (`yfcdb/civicrm_membership`, CONSTRAINT `FK_civicrm_membership_contact_id` FOREIGN KEY (`contact_id`) REFERENCES `civicrm_contact` (`id`)), 1451

    Return to CiviCRM menu.

Error Details:

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

       
Code: [Select]
=> -1
    [message] => DB Error: unknown error
    [mode] => 16
    [debug_info] => DELETE FROM civicrm_contact  WHERE (  civicrm_contact.id = 26 )  [nativecode=1451 ** Cannot delete or update a parent row: a foreign key constraint fails (`yfcdb/civicrm_membership`, CONSTRAINT `FK_civicrm_membership_contact_id` FOREIGN KEY (`contact_id`) REFERENCES `civicrm_contact` (`id`))]
    [type] => DB_Error
    [user_info] => DELETE FROM civicrm_contact  WHERE (  civicrm_contact.id = 26 )  [nativecode=1451 ** Cannot delete or update a parent row: a foreign key constraint fails (`yfcdb/civicrm_membership`, CONSTRAINT `FK_civicrm_membership_contact_id` FOREIGN KEY (`contact_id`) REFERENCES `civicrm_contact` (`id`))]
    [to_string] => [db_error: message="DB Error: unknown error" code=-1 mode=callback callback=CRM_Core_Error::handle prefix="" info="DELETE FROM civicrm_contact  WHERE (  civicrm_contact.id = 26 )  [nativecode=1451 ** Cannot delete or update a parent row: a foreign key constraint fails (`yfcdb/civicrm_membership`, CONSTRAINT `FK_civicrm_membership_contact_id` FOREIGN KEY (`contact_id`) REFERENCES `civicrm_contact` (`id`))]"]
)


This is running on a new ubuntu server, if that matters, with software as follows -

PHP 5.1.6 (cli) (built: Apr 25 2007 14:27:06)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

mysql  Ver 14.12 Distrib 5.0.24a, for pc-linux-gnu (i486) using readline 5.1

drupal version 5.1

civicrm-1.7.beta.9327-drupal-php5.tar.gz

Everything else looks great.  Thanks.


Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: New 1.7 beta 9327 issue
April 29, 2007, 12:34:07 am

Can u please enable the CiviMember component (in Administer CiviCRM >> Global Settings >> Enable Components)

You get the below error because the sample data has sample data for CiviMember but the component is not enabled, hence the FK constraint error

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

twowheeler

  • I post occasionally
  • **
  • Posts: 115
  • Karma: 11
    • Harrisburg Christian Performing Arts Center
  • CiviCRM version: 4.3.4
  • CMS version: Drupal 7.22
  • MySQL version: 5.1
  • PHP version: 5.3
Re: New 1.7 beta 9327 issue
April 29, 2007, 02:09:06 am
That did it.  Thank you.


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • New 1.7 beta 9327 issue

This forum was archived on 2017-11-26.