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 »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Problems with Events - Calendar causes non-recoverable error
Pages: [1]

Author Topic: Problems with Events - Calendar causes non-recoverable error  (Read 1008 times)

rflemin

  • I post occasionally
  • **
  • Posts: 73
  • Karma: 2
    • DCRCA (DC Recovery Community Alliance)
  • CiviCRM version: 3.3
  • CMS version: Drupal 6.26
  • MySQL version: 5.1.26
  • PHP version: 5.2.6
Problems with Events - Calendar causes non-recoverable error
August 30, 2010, 01:44:20 pm
This is probably an underlying configuration problem. When I try to create a New Event, I get down to the pop-up calendar, set the month (but the days don't match the dates); when I click on the day, I get
Sorry. A non-recoverable error has occurred.
DB Error: constraint violation
Error Details
Database Error Code: Cannot add or update a child row: a foreign key constraint fails (`dcrca`.`civicrm_acl_cache`, CONSTRAINT `FK_civicrm_acl_cache_contact_id` FOREIGN KEY (`contact_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE CASCADE), 1452
Additional Details:

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

       
Code: [Select]
=> -3
    [message] => DB Error: constraint violation
    [mode] => 16
    [debug_info] => INSERT INTO civicrm_acl_cache (contact_id , acl_id ) VALUES ( 1 ,  2 )  [nativecode=1452 ** Cannot add or update a child row: a foreign key constraint fails (`dcrca`.`civicrm_acl_cache`, CONSTRAINT `FK_civicrm_acl_cache_contact_id` FOREIGN KEY (`contact_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE CASCADE)]
    [type] => DB_Error
    [user_info] => INSERT INTO civicrm_acl_cache (contact_id , acl_id ) VALUES ( 1 ,  2 )  [nativecode=1452 ** Cannot add or update a child row: a foreign key constraint fails (`dcrca`.`civicrm_acl_cache`, CONSTRAINT `FK_civicrm_acl_cache_contact_id` FOREIGN KEY (`contact_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_acl_cache (contact_id , acl_id ) VALUES ( 1 ,  2 )  [nativecode=1452 ** Cannot add or update a child row: a foreign key constraint fails (`dcrca`.`civicrm_acl_cache`, CONSTRAINT `FK_civicrm_acl_cache_contact_id` FOREIGN KEY (`contact_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE CASCADE)]"]
)

Now, for background, this is a new install on a server that previously held a CiviCRM installation. I had hoped to use the same db entries (Contact list, Event Types, etc.) but they don't show up. Anybody got any idea what is wrong and how I can fix it (and preferably reuse my existing MySQL tables and their data). Thanks for any help, I know just enough to be dangerous....mostly to myself.

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: Problems with Events - Calendar causes non-recoverable error
August 30, 2010, 02:44:08 pm

log out and log back in

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

rflemin

  • I post occasionally
  • **
  • Posts: 73
  • Karma: 2
    • DCRCA (DC Recovery Community Alliance)
  • CiviCRM version: 3.3
  • CMS version: Drupal 6.26
  • MySQL version: 5.1.26
  • PHP version: 5.2.6
Re: Problems with Events - Calendar causes non-recoverable error
August 31, 2010, 11:12:17 am
 That worked! Who knew? So simple! Thanks much!
Now, can you tell me why my new copy of CiviCRM can't find the Contacts, Events, etc. generated by the old one? I'm giving it the same MySQL locations, passwords, etc. as the old one, but no data shows up in CiviCRM. And it's not just CiviCRM, I can't find the old user list for Drupal, either. Any help much appreciated. I'll also ask on the Drupal forums. Thanks again!
PS - can you tell me what wysiwyg editor CiviCRM Forums uses? I like it lots better than ckeditor.
« Last Edit: August 31, 2010, 11:18:10 am by rflemin »

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: Problems with Events - Calendar causes non-recoverable error
August 31, 2010, 11:24:50 am

seems like your best bet would be to hire someone from http://civicrm.org/professional/

check the simple machines forum to see what editor they use (and/or do a view source and track it down)

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Problems with Events - Calendar causes non-recoverable error

This forum was archived on 2017-11-26.