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 CiviEvent (Moderator: Yashodha Chaku) »
  • Price Sets
Pages: [1]

Author Topic: Price Sets  (Read 1387 times)

senojeel

  • I post occasionally
  • **
  • Posts: 70
  • Karma: 1
Price Sets
July 10, 2007, 07:58:30 am
I was just playing with price sets and I got the following error when trying to delete one:


Code: [Select]
unrecoverable error
    Sorry. A non-recoverable error has occurred.

    Database Error Code: Cannot delete or update a parent row: a foreign key constraint fails, 1217

    Return to CiviCRM menu.

Error Details:

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

    [code] => -3
    [message] => DB Error: constraint violation
    [mode] => 16
    [debug_info] => DELETE FROM civicrm_price_set  WHERE (  civicrm_price_set.id = 1 )  [nativecode=1217 ** Cannot delete or update a parent row: a foreign key constraint fails]
    [type] => db_error
    [user_info] => DELETE FROM civicrm_price_set  WHERE (  civicrm_price_set.id = 1 )  [nativecode=1217 ** Cannot delete or update a parent row: a foreign key constraint fails]
    [to_string] => [db_error: message="DB Error: constraint violation" code=-3 mode=callback callback=CRM_Core_Error::handle prefix="" info="DELETE FROM civicrm_price_set  WHERE (  civicrm_price_set.id = 1 )  [nativecode=1217 ** Cannot delete or update a parent row: a foreign key constraint fails]"]
)

I successfully deleted other price sets just before that one. 

By the way, using 1.8 alpha.[/code]

idealso

  • Guest
Re: Price Sets
July 10, 2007, 12:35:50 pm
The failure is when you try to delete a price set used by an event in the past.  This is now fixed in subversion.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Price Sets

This forum was archived on 2017-11-26.