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

Unrecoverable error on customFieldDelete in ContactAddWithCustomData.test

    Details

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

      Description

      Jul 23 14:38:00 [info] $Fatal Error Details = Array
      (
      [callback] => Array
      (
      [0] => CRM_Core_Error
      [1] => handle
      )

      [code] => a515ac9c2796ca0e23adbe92c68fc9fc
      [message] => DB Error: a515ac9c2796ca0e23adbe92c68fc9fc
      [mode] => 16
      [debug_info] => ALTER TABLE civicrm_value_test_custom_group_3 DROP COLUMN `test_country_9`, DROP FOREIGN KEY FK_civicrm_value_test_custom_group_3_te
      st_country_9 [nativecode=1025 ** Error on rename of './civitrunk/civicrm_value_test_custom_group_3' to './civitrunk/#sql2-69-238' (errno: 152)]
      [type] => DB_Error
      [user_info] => ALTER TABLE civicrm_value_test_custom_group_3 DROP COLUMN `test_country_9`, DROP FOREIGN KEY FK_civicrm_value_test_custom_group_3_tes
      t_country_9 [nativecode=1025 ** Error on rename of './civitrunk/civicrm_value_test_custom_group_3' to './civitrunk/#sql2-69-238' (errno: 152)]
      [to_string] => [db_error: message="DB Error: a515ac9c2796ca0e23adbe92c68fc9fc" code=0 mode=callback callback=CRM_Core_Error::handle prefix="" info="
      ALTER TABLE civicrm_value_test_custom_group_3 DROP COLUMN `test_country_9`, DROP FOREIGN KEY FK_civicrm_value_test_custom_group_3_test_country_9 [nativecode=102
      5 ** Error on rename of './civitrunk/civicrm_value_test_custom_group_3' to './civitrunk/#sql2-69-238' (errno: 152)]"]
      )

      Jul 23 14:38:00 [info] $backTrace = /Users/mover/Documents/Work/CiviCRM/trunk/CRM/Core/Error.php, backtrace, 190
      , handle,
      /Users/mover/Documents/Work/CiviCRM/trunk/packages/PEAR.php, call_user_func, 912
      /Users/mover/Documents/Work/CiviCRM/trunk/packages/DB.php, PEAR_Error, 969
      /Users/mover/Documents/Work/CiviCRM/trunk/packages/PEAR.php, DB_Error, 574
      /Users/mover/Documents/Work/CiviCRM/trunk/packages/DB/common.php, raiseError, 1903
      /Users/mover/Documents/Work/CiviCRM/trunk/packages/DB/mysql.php, raiseError, 898
      /Users/mover/Documents/Work/CiviCRM/trunk/packages/DB/mysql.php, mysqlRaiseError, 327
      /Users/mover/Documents/Work/CiviCRM/trunk/packages/DB/common.php, simpleQuery, 1216
      /Users/mover/Documents/Work/CiviCRM/trunk/packages/DB/DataObject.php, query, 2394
      /Users/mover/Documents/Work/CiviCRM/trunk/packages/DB/DataObject.php, _query, 1587
      /Users/mover/Documents/Work/CiviCRM/trunk/CRM/Core/DAO.php, query, 144
      /Users/mover/Documents/Work/CiviCRM/trunk/CRM/Core/DAO.php, query, 866
      /Users/mover/Documents/Work/CiviCRM/trunk/CRM/Core/BAO/SchemaHandler.php, executeQuery, 264
      /Users/mover/Documents/Work/CiviCRM/trunk/CRM/Core/BAO/CustomField.php, alterFieldSQL, 1469
      /Users/mover/Documents/Work/CiviCRM/trunk/CRM/Core/BAO/CustomField.php, createField, 849
      /Users/mover/Documents/Work/CiviCRM/trunk/api/v2/CustomGroup.php, deleteField, 255
      /Users/mover/Documents/Work/CiviCRM/trunk/tests/CiviTest/CiviUnitTestCase.php, civicrm_custom_field_delete, 773
      /Users/mover/Documents/Work/CiviCRM/trunk/tests/api/v2/ContactAddWithCustomData.test, customFieldDelete, 38
      /Users/mover/Documents/Work/CiviCRM/trunk/packages/SimpleTest/invoker.php, tearDown, 69
      /Users/mover/Documents/Work/CiviCRM/trunk/packages/SimpleTest/invoker.php, invoke, 126
      /Users/mover/Documents/Work/CiviCRM/trunk/packages/SimpleTest/errors.php, invoke, 49
      /Users/mover/Documents/Work/CiviCRM/trunk/packages/SimpleTest/invoker.php, invoke, 126
      /Users/mover/Documents/Work/CiviCRM/trunk/packages/SimpleTest/exceptions.php, invoke, 42
      /Users/mover/Documents/Work/CiviCRM/trunk/packages/SimpleTest/test_case.php, invoke, 143
      /Users/mover/Documents/Work/CiviCRM/trunk/packages/drupal/simpletest/drupal_test_case.php, run, 535
      /Users/mover/Documents/Work/CiviCRM/trunk/packages/SimpleTest/test_case.php, run, 561
      /Users/mover/Documents/Work/CiviCRM/trunk/packages/SimpleTest/test_case.php, run, 561
      /Users/mover/Documents/Work/CiviCRM/trunk/packages/drupal/simpletest/drupal_unit_tests.php, run, 125
      /Users/mover/Documents/Work/CiviCRM/trunk/packages/drupal/simpletest/simpletest.module, run, 240
      /Users/mover/Documents/Work/CiviCRM/trunk/packages/drupal/simpletest/simpletest.module, simpletest_run_tests, 142
      /Users/mover/Documents/Work/CiviCRM/www/drupal/includes/form.inc, simpletest_overview_form_submit, 775
      /Users/mover/Documents/Work/CiviCRM/www/drupal/includes/form.inc, form_execute_handlers, 409
      /Users/mover/Documents/Work/CiviCRM/www/drupal/includes/form.inc, drupal_process_form, 119
      /Users/mover/Documents/Work/CiviCRM/trunk/packages/drupal/simpletest/simpletest.module, drupal_get_form, 97
      , simpletest_entrypoint,
      /Users/mover/Documents/Work/CiviCRM/www/drupal/includes/menu.inc, call_user_func_array, 348
      /Users/mover/Documents/Work/CiviCRM/www/drupal/index.php, menu_execute_active_handler, 18

        Attachments

          Activity

            People

            • Assignee:
              mover Michał Mach
              Reporter:
              mover Michał Mach
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: