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

Merging Contacts fails with Database Error

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.1
    • Fix Version/s: 2.2.0
    • Component/s: None
    • Labels:
      None

      Description

      When trying to merge two contacts, i get this upon hitting the merge button:

      DB Error: no database selected
      Datenbank-Errorcode: MySQL server has gone away, 2006

      backTrace

      /kunden/91024_10999/crm.wikimedia.de/civicrm/CRM/Core/Error.php, backtrace, 138
      , handle,
      /kunden/91024_10999/crm.wikimedia.de/civicrm/packages/PEAR.php, call_user_func, 912
      /kunden/91024_10999/crm.wikimedia.de/civicrm/packages/DB.php, PEAR_Error, 966
      /kunden/91024_10999/crm.wikimedia.de/civicrm/packages/PEAR.php, DB_Error, 574
      /kunden/91024_10999/crm.wikimedia.de/civicrm/packages/DB/common.php, raiseError, 1903
      /kunden/91024_10999/crm.wikimedia.de/civicrm/packages/DB/mysql.php, raiseError, 898
      /kunden/91024_10999/crm.wikimedia.de/civicrm/packages/DB/mysql.php, mysqlRaiseError, 308
      /kunden/91024_10999/crm.wikimedia.de/civicrm/packages/DB/common.php, simpleQuery, 1216
      /kunden/91024_10999/crm.wikimedia.de/civicrm/packages/DB/DataObject.php, query, 2394
      /kunden/91024_10999/crm.wikimedia.de/civicrm/packages/DB/DataObject.php, _query, 442
      /kunden/91024_10999/crm.wikimedia.de/civicrm/CRM/Core/BAO/Cache.php, find, 52
      /kunden/91024_10999/crm.wikimedia.de/civicrm/CRM/Contact/BAO/Contact.php, getItem, 739
      /kunden/91024_10999/crm.wikimedia.de/civicrm/CRM/Contact/BAO/Query.php, exportableFields, 342
      /kunden/91024_10999/crm.wikimedia.de/civicrm/CRM/Contact/BAO/Query.php, __construct, 2770
      /kunden/91024_10999/crm.wikimedia.de/civicrm/api/v2/Contact.php, apiQuery, 231
      /kunden/91024_10999/crm.wikimedia.de/civicrm/api/v2/Contact.php, civicrm_contact_search, 148
      /kunden/91024_10999/crm.wikimedia.de/civicrm/CRM/Dedupe/Merger.php, civicrm_contact_get, 268
      /kunden/91024_10999/crm.wikimedia.de/civicrm/CRM/Contact/Form/Merge.php, findDifferences, 79
      /kunden/91024_10999/crm.wikimedia.de/civicrm/CRM/Core/Form.php, preProcess, 312
      /kunden/91024_10999/crm.wikimedia.de/civicrm/CRM/Core/StateMachine.php, buildForm, 142
      /kunden/91024_10999/crm.wikimedia.de/civicrm/CRM/Core/QuickForm/Action/Next.php, perform, 63
      /kunden/91024_10999/crm.wikimedia.de/civicrm/packages/HTML/QuickForm/Controller.php, perform, 203
      /kunden/91024_10999/crm.wikimedia.de/civicrm/packages/HTML/QuickForm/Page.php, handle, 103
      /kunden/91024_10999/crm.wikimedia.de/civicrm/CRM/Core/Controller.php, handle, 232
      /kunden/91024_10999/crm.wikimedia.de/civicrm/CRM/Utils/Wrapper.php, run, 114
      /kunden/91024_10999/crm.wikimedia.de/civicrm/CRM/Core/Invoke.php, run, 169
      /kunden/91024_10999/crm.wikimedia.de/civicrm/standalone/index.php, invoke, 42
      /kunden/91024_10999/crm.wikimedia.de/civicrm/standalone/index.php, invoke, 66

      Error Details:

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

      [code] => -14
      [message] => DB Error: no database selected
      [mode] => 16
      [debug_info] => SELECT *
      FROM civicrm_cache

      WHERE ( civicrm_cache.group_name = 'contact fields' ) AND ( civicrm_cache.path = 'exportableFields All 1' )

      [nativecode=2006 ** MySQL server has gone away]
      [type] => DB_Error
      [user_info] => SELECT *
      FROM civicrm_cache

      WHERE ( civicrm_cache.group_name = 'contact fields' ) AND ( civicrm_cache.path = 'exportableFields All 1' )

      [nativecode=2006 ** MySQL server has gone away]
      [to_string] => [db_error: message="DB Error: no database selected" code=-14 mode=callback callback=CRM_Core_Error::handle prefix="" info="SELECT *
      FROM civicrm_cache

      WHERE ( civicrm_cache.group_name = 'contact fields' ) AND ( civicrm_cache.path = 'exportableFields All 1' )

      [nativecode=2006 ** MySQL server has gone away]"]
      )

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: