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 »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Error showing up on 2nd CiviEvent confirmation page (thank you receipting)
Pages: [1]

Author Topic: Error showing up on 2nd CiviEvent confirmation page (thank you receipting)  (Read 1167 times)

backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Error showing up on 2nd CiviEvent confirmation page (thank you receipting)
May 13, 2008, 01:20:49 pm
This has me completely stumped.  I'm getting the following errors when trying to submit our CiviEvent online registration forms.  The first confirmation page appears and then on the 2nd one I'm getting this error.  It was working yesterday.  I have the correct SMTP settings configured - in both civicrm.settings.php (both files).  Any other suggestions?


 Sorry. A non-recoverable error has occurred.

    Database Error Code: Duplicate entry 'test00000007-1' 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_financial_trxn (domain_id , entity_table , entity_id , trxn_date , trxn_type , total_amount , net_amount , currency , payment_processor , trxn_id ) VALUES ( 1 , 'civicrm_contribution' ,  98 ,  20080513151556 , 'Debit' ,  310 ,  310 , 'USD' , 'AuthNet_AIM' , 'test00000007' )  [nativecode=1062 ** Duplicate entry 'test00000007-1' for key 2]
    [type] => DB_Error
    [user_info] => INSERT INTO civicrm_financial_trxn (domain_id , entity_table , entity_id , trxn_date , trxn_type , total_amount , net_amount , currency , payment_processor , trxn_id ) VALUES ( 1 , 'civicrm_contribution' ,  98 ,  20080513151556 , 'Debit' ,  310 ,  310 , 'USD' , 'AuthNet_AIM' , 'test00000007' )  [nativecode=1062 ** Duplicate entry 'test00000007-1' 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_financial_trxn (domain_id , entity_table , entity_id , trxn_date , trxn_type , total_amount , net_amount , currency , payment_processor , trxn_id ) VALUES ( 1 , 'civicrm_contribution' ,  98 ,  20080513151556 , 'Debit' ,  310 ,  310 , 'USD' , 'AuthNet_AIM' , 'test00000007' )  [nativecode=1062 ** Duplicate entry 'test00000007-1' for key 2]"]
)

backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Re: Error showing up on 2nd CiviEvent confirmation page (thank you receipting)
May 13, 2008, 01:23:07 pm
If I can just add to this - the transactions are processing to our Authorize.net account.  We're just not getting the CiviCRM thank you page and e-mail receipt.  So the Authorize.net integration is working, but we're getting the array error when trying to submit the CiviCRM form.


Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Error showing up on 2nd CiviEvent confirmation page (thank you receipting)
May 13, 2008, 02:02:34 pm

the error is being thrown because of the unique constraint on trxn_id (test00000007).  the payment processor code generates this for authorize.net, so it is potentially a bug there

you might want to take a look at the code and/or contact the authors

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Error showing up on 2nd CiviEvent confirmation page (thank you receipting)

This forum was archived on 2017-11-26.