Details

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

      Description

      On adding a new contact using the contact form or importing records I get the following MySQL error

      Sorry. A non-recoverable error has occurred.

      Database Error Code: Field 'hash' doesn't have a default value, 1364

      Return to CiviCRM menu.

      error

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

      [code] => -1
      [message] => DB Error: unknown error
      [mode] => 16
      [debug_info] => INSERT INTO civicrm_contact (domain_id , contact_type , sort_name , display_name , nick_name , home_URL , preferred_communication_method , do_not_phone , do_not_email , do_not_mail , do_not_trade ) VALUES ( 1 , 'Organization' , 'Revell and Janes' , 'Revell and Janes' , NULL , NULL , NULL , 0 , 1 , 1 , 0 ) [nativecode=1364 ** Field 'hash' doesn't have a default value]
      [type] => DB_Error
      [user_info] => INSERT INTO civicrm_contact (domain_id , contact_type , sort_name , display_name , nick_name , home_URL , preferred_communication_method , do_not_phone , do_not_email , do_not_mail , do_not_trade ) VALUES ( 1 , 'Organization' , 'Revell and Janes' , 'Revell and Janes' , NULL , NULL , NULL , 0 , 1 , 1 , 0 ) [nativecode=1364 ** Field 'hash' doesn't have a default value]
      [to_string] => [db_error: message="DB Error: unknown error" code=-1 mode=callback callback=CRM_Core_Error::handle prefix="" info="INSERT INTO civicrm_contact (domain_id , contact_type , sort_name , display_name , nick_name , home_URL , preferred_communication_method , do_not_phone , do_not_email , do_not_mail , do_not_trade ) VALUES ( 1 , 'Organization' , 'Revell and Janes' , 'Revell and Janes' , NULL , NULL , NULL , 0 , 1 , 1 , 0 ) [nativecode=1364 ** Field 'hash' doesn't have a default value]"]
      )

      Apache/2.2.2 (Win32) PHP/5.1.4 MySQL 5.0.22

      The field value for 'hash' is not included in the values list and is set to 'Non Null' with no default value.

      Bob

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: