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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • error when trying to sync civi users to drupal users.
Pages: [1]

Author Topic: error when trying to sync civi users to drupal users.  (Read 970 times)

jdowd

  • I’m new here
  • *
  • Posts: 17
  • Karma: -5
error when trying to sync civi users to drupal users.
April 03, 2008, 01:51:35 pm

When trying to sync users from drupal to civicrm, I get this error.  does anyone have any idea what this means?

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

    [code] => -1
    [message] => DB Error: unknown error
    [mode] => 16
    [debug_info] => INSERT INTO civicrm_log (entity_table , entity_id , data , modified_id , modified_date ) VALUES ('civicrm_contact' ,  1 , 'civicrm_contact,1' ,  102 ,  20080403164743 )  [nativecode=1452 ** Cannot add or update a child row: a foreign key constraint fails (`dfnet_beta_civicrm/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 , data , modified_id , modified_date ) VALUES ('civicrm_contact' ,  1 , 'civicrm_contact,1' ,  102 ,  20080403164743 )  [nativecode=1452 ** Cannot add or update a child row: a foreign key constraint fails (`dfnet_beta_civicrm/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: unknown error" code=-1 mode=callback callback=CRM_Core_Error::handle prefix="" info="INSERT INTO civicrm_log (entity_table , entity_id , data , modified_id , modified_date ) VALUES ('civicrm_contact' ,  1 , 'civicrm_contact,1' ,  102 ,  20080403164743 )  [nativecode=1452 ** Cannot add or update a child row: a foreign key constraint fails (`dfnet_beta_civicrm/civicrm_log`, CONSTRAINT `FK_civicrm_log_modified_id` FOREIGN KEY (`modified_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE CASCADE)]"]
)
[/code]
« Last Edit: April 03, 2008, 01:53:15 pm by jdowd »

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: error when trying to sync civi users to drupal users.
April 03, 2008, 03:44:25 pm
Probably means you did some update to your database, and didn't logout / log back in to Drupal / Joomla. If that's not the issue - I'd suggest to do a Google search on the error (include CiviCRM in keywords).
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • error when trying to sync civi users to drupal users.

This forum was archived on 2017-11-26.