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) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 2.2 Release Testing »
  • Error trying to create event in CiviCRM 2.2alpha2
Pages: [1]

Author Topic: Error trying to create event in CiviCRM 2.2alpha2  (Read 2345 times)

backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Error trying to create event in CiviCRM 2.2alpha2
January 21, 2009, 08:08:22 am
I'm getting the following error trying to create an event in CiviCRM 2.2alpha2 on Drupal 6.9:

    Sorry. A non-recoverable error has occurred.

    DB Error: constraint violation

    Database Error Code: Cannot add or update a child row: a foreign key constraint fails (`specedciv/civicrm_log`, CONSTRAINT `FK_civicrm_log_modified_id` FOREIGN KEY (`modified_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE CASCADE), 1452

    Return to home page.

Error Details:

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

       
Code: [Select]
=> -3
    [message] => DB Error: constraint violation
    [mode] => 16
    [debug_info] => INSERT INTO civicrm_log (entity_table , entity_id , modified_id , modified_date ) VALUES ('civicrm_event' ,  2 ,  1 ,  20090121 )  [nativecode=1452 ** Cannot add or update a child row: a foreign key constraint fails (`specedciv/civicrm_log`, CONSTRAINT `FK_civicrm_log_modified_id` FOREIGN KEY (`modified_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE CASCADE)]
    [type] => DB_Error
    [user_info] => INSERT INTO civicrm_log (entity_table , entity_id , modified_id , modified_date ) VALUES ('civicrm_event' ,  2 ,  1 ,  20090121 )  [nativecode=1452 ** Cannot add or update a child row: a foreign key constraint fails (`specedciv/civicrm_log`, CONSTRAINT `FK_civicrm_log_modified_id` FOREIGN KEY (`modified_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE CASCADE)]
    [to_string] => [db_error: message="DB Error: constraint violation" code=-3 mode=callback callback=CRM_Core_Error::handle prefix="" info="INSERT INTO civicrm_log (entity_table , entity_id , modified_id , modified_date ) VALUES ('civicrm_event' ,  2 ,  1 ,  20090121 )  [nativecode=1452 ** Cannot add or update a child row: a foreign key constraint fails (`specedciv/civicrm_log`, CONSTRAINT `FK_civicrm_log_modified_id` FOREIGN KEY (`modified_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE CASCADE)]"]
)


Any suggestions?

-backdrifting

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Error trying to create event in CiviCRM 2.2alpha2
January 22, 2009, 02:01:43 am
hi,

It might be some session related issue.
log out -> log in and try to create new event.

And if it persists, It would be good if you provide steps to replicate.

thanks
kiran
You Are Designed To Choose... Defined By Choice.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 2.2 Release Testing »
  • Error trying to create event in CiviCRM 2.2alpha2

This forum was archived on 2017-11-26.