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 CiviMember (Moderator: Deepak Srivastava) »
  • CiviMember unrecoverable Error
Pages: [1]

Author Topic: CiviMember unrecoverable Error  (Read 1421 times)

toddc

  • Guest
CiviMember unrecoverable Error
June 24, 2008, 10:59:37 pm
I'm running Drupal 5.6 and civiCRM 2.0 ... and can't get CiviMember to work with my CiviContribute pages.  I set up 3 membership types, all with Oceanic Society as the "group"  (which is the name of the website).

I can easily set up a contribution page with membership amounts, but when I use the CiviMember profile, I get the following error when processing.      I'd really appreciate any help on this, since it seems most people have no trouble using CiviMember:


unrecoverable error
    Sorry. A non-recoverable error has occurred.

    Database Error Code: Cannot add or update a child row: a foreign key constraint fails (`userweb11146a/civicrm_membership`, CONSTRAINT `FK_civicrm_membership_status_id` FOREIGN KEY (`status_id`) REFERENCES `civicrm_membership_status` (`id`) ON DELETE CASCADE), 1452

    Return to home page.

Error Details:

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

       
Code: [Select]
=> -1
    [message] => DB Error: unknown error
    [mode] => 16
    [debug_info] => INSERT INTO civicrm_membership (contact_id , membership_type_id , source , status_id , is_override ) VALUES ( 102 ,  4 , 'Online Contribution: Join the Oceanic Society - membership profile' ,  5 ,  0 )  [nativecode=1452 ** Cannot add or update a child row: a foreign key constraint fails (`userweb11146a/civicrm_membership`, CONSTRAINT `FK_civicrm_membership_status_id` FOREIGN KEY (`status_id`) REFERENCES `civicrm_membership_status` (`id`) ON DELETE CASCADE)]
    [type] => DB_Error
    [user_info] => INSERT INTO civicrm_membership (contact_id , membership_type_id , source , status_id , is_override ) VALUES ( 102 ,  4 , 'Online Contribution: Join the Oceanic Society - membership profile' ,  5 ,  0 )  [nativecode=1452 ** Cannot add or update a child row: a foreign key constraint fails (`userweb11146a/civicrm_membership`, CONSTRAINT `FK_civicrm_membership_status_id` FOREIGN KEY (`status_id`) REFERENCES `civicrm_membership_status` (`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_membership (contact_id , membership_type_id , source , status_id , is_override ) VALUES ( 102 ,  4 , 'Online Contribution: Join the Oceanic Society - membership profile' ,  5 ,  0 )  [nativecode=1452 ** Cannot add or update a child row: a foreign key constraint fails (`userweb11146a/civicrm_membership`, CONSTRAINT `FK_civicrm_membership_status_id` FOREIGN KEY (`status_id`) REFERENCES `civicrm_membership_status` (`id`) ON DELETE CASCADE)]"]
)



Deepak Srivastava

  • Moderator
  • Ask me questions
  • *****
  • Posts: 677
  • Karma: 65
Re: CiviMember unrecoverable Error
June 25, 2008, 07:12:31 am
Check this - http://forum.civicrm.org/index.php/topic,2838.0.html . Solution is exactly the same.
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

toddc

  • Guest
Re: CiviMember unrecoverable Error
June 28, 2008, 11:35:27 am
Thanks very much.  This is a big help.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • CiviMember unrecoverable Error

This forum was archived on 2017-11-26.