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

another spot to fix for activity contact restructre - merge contact where activity custom data exists

    Details

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

      Description

      clipseworkspace\civicrm-trunk\CRM\Core\Error.php(148): CRM_Core_Error::backtrace()
      #1 [internal function](): CRM_Core_Error::handle(Object(DB_Error))
      #2 C:\utils\eclipseworkspace\civicrm-trunk\packages\PEAR.php(931): call_user_func((Array:2), Object(DB_Error))
      #3 C:\utils\eclipseworkspace\civicrm-trunk\packages\DB.php(969): PEAR_Error->PEAR_Error("DB Error: no such field", -19, 16, (Array:2), "SELECT COUNT AS count FROM civicrm_activity WHERE source_contact_id = 208 ...")
      #4 C:\utils\eclipseworkspace\civicrm-trunk\packages\PEAR.php(564): DB_Error->DB_Error(-19, 16, (Array:2), "SELECT COUNT AS count FROM civicrm_activity WHERE source_contact_id = 208 ...")
      #5 C:\utils\eclipseworkspace\civicrm-trunk\packages\DB\common.php(1905): PEAR->raiseError(NULL, -19, NULL, NULL, "SELECT COUNT AS count FROM civicrm_activity WHERE source_contact_id = 208 ...", "DB_Error", TRUE)
      #6 C:\utils\eclipseworkspace\civicrm-trunk\packages\DB\mysql.php(898): DB_common->raiseError(-19, NULL, NULL, NULL, "1054 ** Unknown column 'source_contact_id' in 'where clause'")
      #7 C:\utils\eclipseworkspace\civicrm-trunk\packages\DB\mysql.php(327): DB_mysql->mysqlRaiseError()
      #8 C:\utils\eclipseworkspace\civicrm-trunk\packages\DB\common.php(1216): DB_mysql->simpleQuery("SELECT COUNT AS count FROM civicrm_activity WHERE source_contact_id = 208")
      #9 C:\utils\eclipseworkspace\civicrm-trunk\packages\DB\DataObject.php(2421): DB_common->query("SELECT COUNT AS count FROM civicrm_activity WHERE source_contact_id = 208")
      #10 C:\utils\eclipseworkspace\civicrm-trunk\packages\DB\DataObject.php(1613): DB_DataObject->_query("SELECT COUNT AS count FROM civicrm_activity WHERE source_contact_id = 208")
      #11 C:\utils\eclipseworkspace\civicrm-trunk\CRM\Core\DAO.php(155): DB_DataObject->query("SELECT COUNT AS count FROM civicrm_activity WHERE source_contact_id = 208")
      #12 C:\utils\eclipseworkspace\civicrm-trunk\CRM\Core\DAO.php(944): CRM_Core_DAO->query("SELECT COUNT AS count FROM civicrm_activity WHERE source_contact_id = 208", TRUE)
      #13 C:\utils\eclipseworkspace\civicrm-trunk\CRM\Dedupe\Merger.php(177): CRM_Core_DAO::singleValueQuery("SELECT COUNT AS count FROM civicrm_activity WHERE source_contact_id = 208")
      #14 C:\utils\eclipseworkspace\civicrm-trunk\CRM\Dedupe\Merger.php(1005): CRM_Dedupe_Merger::getActiveRelTables("208")
      #15 C:\utils\eclipseworkspace\civicrm-trunk\CRM\Contact\Form\Merge.php(181): CRM_Dedupe_Merger::getRowsElementsAndInfo("204", "208")
      #16 C:\utils\eclipseworkspace\civicrm-trunk\CRM\Core\Form.php(336): CRM_Contact_Form_Merge->preProcess()
      #17 C:\utils\eclipseworkspace\civicrm-trunk\CRM\Core\QuickForm\Action\Display.php(93): CRM_Core_Form->buildForm()
      #18 C:\utils\eclipseworkspace\civicrm-trunk\packages\HTML\QuickForm\Controller.php(203): CRM_Core_QuickForm_Action_Display->perform(Object(CRM_Contact_Form_Merge), "display")
      #19 C:\utils\eclipseworkspace\civicrm-trunk\packages\HTML\QuickForm\Page.php(103): HTML_QuickForm_Controller->handle(Object(CRM_Contact_Form_Merge), "display")
      #20 C:\utils\eclipseworkspace\civicrm-trunk\CRM\Core\Controller.php(315): HTML_QuickForm_Page->handle("display")
      #21 C:\utils\eclipseworkspace\civicrm-trunk\CRM\Utils\Wrapper.php(117): CRM_Core_Controller->run()
      #22 C:\utils\eclipseworkspace\civicrm-trunk\CRM\Core\Invoke.php(266): CRM_Utils_Wrapper->run("CRM_Contact_Form_Merge", "Merge Contact", NULL)
      #23 C:\utils\eclipseworkspace\civicrm-trunk\CRM\Core\Invoke.php(70): CRM_Core_Invoke::runItem((Array:13))
      #24 C:\utils\eclipseworkspace\civicrm-trunk\CRM\Core\Invoke.php(52): CRM_Core_Invoke::_invoke((Array:3))
      #25 C:\utils\eclipseworkspace\civicrm-trunk\drupal\civicrm.module(436): CRM_Core_Invoke::invoke((Array:3))
      #26 [internal function](): civicrm_invoke("contact", "merge")
      #27 C:\webroot\d7\includes\menu.inc(517): call_user_func_array("civicrm_invoke", (Array:2))
      #28 C:\webroot\d7\index.php(21): menu_execute_active_handler()

        Attachments

          Activity

            People

            • Assignee:
              yashodha Yashodha Chaku
              Reporter:
              eileen Eileen McNaughton
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: