CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Civicontribute problem on upgrade to 2.0.4 from 1.8: DB Error: already exists
Pages: [1]

Author Topic: Civicontribute problem on upgrade to 2.0.4 from 1.8: DB Error: already exists  (Read 1285 times)

brendanhisa

  • Guest
Civicontribute problem on upgrade to 2.0.4 from 1.8: DB Error: already exists
June 17, 2008, 12:36:30 am
I am having a problem after upgrading from ver 1.8 to ver 2.0.4.  Upgrade went to plan with no obvious problems, however, when I try to make a membership payment (Civicontribute) and paypal standard.  I get the error below.  This is an intermittent problem, occuring for some members and not others

Any suggestions?




Sorry. A non-recoverable error has occurred.
DB Error: already exists

Database Error Code: Duplicate entry '1-2186' for key 2, 1062

Return to home page.

Error Details:


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

       
Code: [Select]
=> -5
    [message] => DB Error: already exists
    [mode] => 16
    [debug_info] => INSERT INTO civicrm_value_1_sigs  SET `sigs` = '', domain_id = 1, entity_id = 2186  [nativecode=1062 ** Duplicate entry '1-2186' for key 2]
    [type] => DB_Error
    [user_info] => INSERT INTO civicrm_value_1_sigs  SET `sigs` = '', domain_id = 1, entity_id = 2186  [nativecode=1062 ** Duplicate entry '1-2186' for key 2]
    [to_string] => [db_error: message="DB Error: already exists" code=-5 mode=callback callback=CRM_Core_Error::handle prefix="" info="INSERT INTO civicrm_value_1_sigs  SET `sigs` = '', domain_id = 1, entity_id = 2186  [nativecode=1062 ** Duplicate entry '1-2186' for key 2]"]
« Last Edit: June 17, 2008, 03:10:03 pm by brendanhisa »

Deepak Srivastava

  • Moderator
  • Ask me questions
  • *****
  • Posts: 677
  • Karma: 65
Re: Civicontribute problem on upgrade to 2.0.4 from 1.8: DB Error: already exist
June 17, 2008, 11:52:38 pm
Looks like you have some custom group "sigs" which has a custom field "sigs" and blank value submission for this filed looks to be causing the problem.

(A bit surprised since the query doesn't have ON DUPLICATE KEY UPDATE. Will need to check if this is really the case /w 2.0.4 )

Your temporary solution could be either make that field required or disabled. Also check with a new custom group / field if that solves your problem , if you really need it. Not sure if its an upgrade issue.
« Last Edit: June 18, 2008, 12:05:31 am by Deepak Srivastava »
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

brendanhisa

  • Guest
Re: Civicontribute problem on upgrade to 2.0.4 from 1.8: DB Error: already exists
June 18, 2008, 12:52:31 am
Thanks, disabling the custom field solves the problem.  Its interesting that the issue affects all my custom fields, so I had to disable them all to solve the problem. 

I will investigate what is happening with these fields and post my findings back to this issue.

Thanks for the assistance

Brendan
« Last Edit: June 18, 2008, 12:54:10 am by brendanhisa »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Civicontribute problem on upgrade to 2.0.4 from 1.8: DB Error: already exists

This forum was archived on 2017-11-26.