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) »
  • Non-recoverable errors after fresh install of 3.3.5 on Drupal
Pages: [1]

Author Topic: Non-recoverable errors after fresh install of 3.3.5 on Drupal  (Read 978 times)

brunodbo

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
Non-recoverable errors after fresh install of 3.3.5 on Drupal
February 16, 2011, 02:51:19 am
Just installed CiviCRM 3.3.5 on Drupal 6.20. Installation went fine, no problems there.

I keep getting non-recoverable errors all over the place though, once I try to actually do stuff in CiviCRM: search contacts, add contacts, configure my domain information, ...

All those pages throw (more or less) the same error:

Code: [Select]
Database Error Code: Cannot add or update a child row: a foreign key constraint fails (`dewemo_buro_civi/civicrm_acl_cache`, CONSTRAINT `FK_civicrm_acl_cache_contact_id` FOREIGN KEY (`contact_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE CASCADE), 1452
Any suggestions?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Non-recoverable errors after fresh install of 3.3.5 on Drupal
February 16, 2011, 02:55:05 am
Did you delete any contacts?

Can you post the full error message? There should be more than that.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

brunodbo

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
Re: Non-recoverable errors after fresh install of 3.3.5 on Drupal
February 16, 2011, 03:09:27 am
This is coming from a brand new, empty (as in: no contacts added yet) database.

The full error message (when searching for contacts):

Quote
Database Error Code: Cannot add or update a child row: a foreign key constraint fails (`dewemo_buro_civi/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 ] => -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 (`dewemo_buro_civi/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 (`dewemo_buro_civi/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 (`dewemo_buro_civi/civicrm_acl_cache`, CONSTRAINT `FK_civicrm_acl_cache_contact_id` FOREIGN KEY (`contact_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE CASCADE)]"]
)

Rajan Mayekar

  • I post frequently
  • ***
  • Posts: 177
  • Karma: 20
    • Rajan's Blogs
Re: Non-recoverable errors after fresh install of 3.3.5 on Drupal
February 16, 2011, 03:20:29 am
Can u check by logout and login again ( it will rebuild civicrm acl cache ).

Rajan

brunodbo

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
Re: Non-recoverable errors after fresh install of 3.3.5 on Drupal
February 16, 2011, 03:23:40 am
Aha! That did the trick. Happy face now :)

Thanks a lot.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Non-recoverable errors after fresh install of 3.3.5 on Drupal

This forum was archived on 2017-11-26.