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 Message: Sorry. A non-recoverable error has occurred.
Pages: [1]

Author Topic: Error Message: Sorry. A non-recoverable error has occurred.  (Read 1707 times)

obsideo

  • Guest
Error Message: Sorry. A non-recoverable error has occurred.
June 16, 2007, 11:45:20 am
When I created a user from the "Create New Account", this error was produced.

Steps before I made this post:
1) Made sure that:
define('CIVICRM_DOMAIN_ID' , 1 );

2) I did load:
civicrm_41.mysql
civicrm_generated.mysql

3) Searched for other solutions in the forums related to this error.

Server Stats: MySql 5.1 / PHP 5 / Drupal 5.1

(hehehe.. all version 5's!)

I am new to Drupal and Civcrm on my 3rd cup of coffee, day 2. :o

Quote
Sorry. A non-recoverable error has occurred.

Database Error Code: Cannot add or update a child row: a foreign key constraint fails (`db207833555/civicrm_location`, CONSTRAINT `FK_civicrm_location_location_type_id` FOREIGN KEY (`location_type_id`) REFERENCES `civicrm_location_type` (`id`)), 1452

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_location (entity_table , entity_id , is_primary ) VALUES ('civicrm_contact' ,  106 ,  1 )  [nativecode=1452 ** Cannot add or update a child row: a foreign key constraint fails (`db207833555/civicrm_location`, CONSTRAINT `FK_civicrm_location_location_type_id` FOREIGN KEY (`location_type_id`) REFERENCES `civicrm_location_type` (`id`))]
    [type] => DB_Error
    [user_info] => INSERT INTO civicrm_location (entity_table , entity_id , is_primary ) VALUES ('civicrm_contact' ,  106 ,  1 )  [nativecode=1452 ** Cannot add or update a child row: a foreign key constraint fails (`db207833555/civicrm_location`, CONSTRAINT `FK_civicrm_location_location_type_id` FOREIGN KEY (`location_type_id`) REFERENCES `civicrm_location_type` (`id`))]
    [to_string] => [db_error: message="DB Error: unknown error" code=-1 mode=callback callback=CRM_Core_Error::handle prefix="" info="INSERT INTO civicrm_location (entity_table , entity_id , is_primary ) VALUES ('civicrm_contact' ,  106 ,  1 )  [nativecode=1452 ** Cannot add or update a child row: a foreign key constraint fails (`db207833555/civicrm_location`, CONSTRAINT `FK_civicrm_location_location_type_id` FOREIGN KEY (`location_type_id`) REFERENCES `civicrm_location_type` (`id`))]"]
)
[/code]





tags: error message non-recoverable error newbie foreign key child row
« Last Edit: June 16, 2007, 11:49:00 am by obsideo »

obsideo

  • Guest
Resolved... Re: Error Message: Sorry. A non-recoverable error has occurred.
June 16, 2007, 12:19:18 pm
How could I have been so clumsy! ::)

I looked at the command buffer in the terminal and I typed "civicrm_data.mysql" instead.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Error Message: Sorry. A non-recoverable error has occurred.

This forum was archived on 2017-11-26.