Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-307

adding contacts to new group fails

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 1.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      rev2536M

      php 4

      mysql 4.1

      1) create group

      2) search for contacts

      3) choose "all contacts" to add to group

      4) click "Add to group":

      error

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

      [code] => -3
      [message] => DB Error: constraint violation
      [mode] => 16
      [debug_info] => INSERT INTO civicrm_subscription_history (contact_id , group_id , date , method , status , tracking ) VALUES ( 0 , 1 , 20050811 , 'Admin' , 'Added' , NULL ) [nativecode=1216 ** Cannot add or update a child row: a foreign key constraint fails]
      [type] => db_error
      [user_info] => INSERT INTO civicrm_subscription_history (contact_id , group_id , date , method , status , tracking ) VALUES ( 0 , 1 , 20050811 , 'Admin' , 'Added' , NULL ) [nativecode=1216 ** Cannot add or update a child row: a foreign key constraint fails]
      [to_string] => [db_error: message="DB Error: constraint violation" code=-3 mode=callback callback=CRM_Core_Error::handle prefix="" info="INSERT INTO civicrm_subscription_history (contact_id , group_id , date , method , status , tracking ) VALUES ( 0 , 1 , 20050811 , 'Admin' , 'Added' , NULL ) [nativecode=1216 ** Cannot add or update a child row: a foreign key constraint fails]"]
      )

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              Anonymous
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: