Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Cannot Reproduce
    • Affects Version/s: 4.3.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      While perminently deleting a contact from trash:
      B4
      WP 3.5.1

      backTrace

      #0 /home/pffco/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Error.php(148): CRM_Core_Error::backtrace()
      #1 [internal function](): CRM_Core_Error::handle(Object(DB_Error))
      #2 /home/pffco/public_html/wp-content/plugins/civicrm/civicrm/packages/PEAR.php(931): call_user_func((Array:2), Object(DB_Error))
      #3 /home/pffco/public_html/wp-content/plugins/civicrm/civicrm/packages/DB.php(969): PEAR_Error->PEAR_Error("DB Error: constraint violation", -3, 16, (Array:2), "DELETE FROM civicrm_contact WHERE ( civicrm_contact.id = 24 ) [nativecode=...")
      #4 /home/pffco/public_html/wp-content/plugins/civicrm/civicrm/packages/PEAR.php(564): DB_Error->DB_Error(-3, 16, (Array:2), "DELETE FROM civicrm_contact WHERE ( civicrm_contact.id = 24 ) [nativecode=...")
      #5 /home/pffco/public_html/wp-content/plugins/civicrm/civicrm/packages/DB/common.php(1905): PEAR->raiseError(NULL, -3, NULL, NULL, "DELETE FROM civicrm_contact WHERE ( civicrm_contact.id = 24 ) [nativecode=...", "DB_Error", TRUE)
      #6 /home/pffco/public_html/wp-content/plugins/civicrm/civicrm/packages/DB/mysql.php(898): DB_common->raiseError(-3, NULL, NULL, NULL, "1451 ** Cannot delete or update a parent row: a foreign key constraint fails ...")
      #7 /home/pffco/public_html/wp-content/plugins/civicrm/civicrm/packages/DB/mysql.php(327): DB_mysql->mysqlRaiseError()
      #8 /home/pffco/public_html/wp-content/plugins/civicrm/civicrm/packages/DB/common.php(1216): DB_mysql->simpleQuery("DELETE FROM civicrm_contact WHERE ( civicrm_contact.id = 24 ) ")
      #9 /home/pffco/public_html/wp-content/plugins/civicrm/civicrm/packages/DB/DataObject.php(2421): DB_common->query("DELETE FROM civicrm_contact WHERE ( civicrm_contact.id = 24 ) ")
      #10 /home/pffco/public_html/wp-content/plugins/civicrm/civicrm/packages/DB/DataObject.php(1435): DB_DataObject->_query("DELETE FROM civicrm_contact WHERE ( civicrm_contact.id = 24 ) ")
      #11 /home/pffco/public_html/wp-content/plugins/civicrm/civicrm/CRM/Contact/BAO/Contact.php(782): DB_DataObject->delete()
      #12 /home/pffco/public_html/wp-content/plugins/civicrm/civicrm/CRM/Contact/Form/Task/Delete.php(218): CRM_Contact_BAO_Contact::deleteContact("24", FALSE, TRUE)
      #13 /home/pffco/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Form.php(246): CRM_Contact_Form_Task_Delete->postProcess()
      #14 /home/pffco/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/QuickForm/Action/Done.php(76): CRM_Core_Form->mainProcess()
      #15 /home/pffco/public_html/wp-content/plugins/civicrm/civicrm/packages/HTML/QuickForm/Controller.php(203): CRM_Core_QuickForm_Action_Done->perform(Object(CRM_Contact_Form_Task_Delete), "done")
      #16 /home/pffco/public_html/wp-content/plugins/civicrm/civicrm/packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller->handle(Object(CRM_Contact_Form_Task_Delete), "done")
      #17 /home/pffco/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Controller.php(316): HTML_QuickForm_Page->handle("done")
      #18 /home/pffco/public_html/wp-content/plugins/civicrm/civicrm/CRM/Utils/Wrapper.php(117): CRM_Core_Controller->run()
      #19 /home/pffco/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(266): CRM_Utils_Wrapper->run("CRM_Contact_Form_Task_Delete", "Delete Contact", NULL)
      #20 /home/pffco/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(70): CRM_Core_Invoke::runItem((Array:13))
      #21 /home/pffco/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(52): CRM_Core_Invoke::_invoke((Array:4))
      #22 /home/pffco/public_html/wp-content/plugins/civicrm/civicrm.php(324): CRM_Core_Invoke::invoke((Array:4))
      #23 [internal function](): civicrm_wp_invoke("")
      #24 /home/pffco/public_html/wp-includes/plugin.php(406): call_user_func_array("civicrm_wp_invoke", (Array:1))
      #25 /home/pffco/public_html/wp-admin/admin.php(151): do_action("toplevel_page_CiviCRM")
      #26

      {main}

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              rjm Rob Malerman
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: