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 »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Error on event registration
Pages: [1]

Author Topic: Error on event registration  (Read 1452 times)

rjb

  • I post occasionally
  • **
  • Posts: 63
  • Karma: 2
  • CiviCRM version: 3.3.5
  • CMS version: Drupal 6
  • MySQL version: 5.1.44
  • PHP version: 5.3.1
Error on event registration
January 24, 2011, 04:54:52 am
Hello,

I've just started noticing an error which sometimes occurs when a registered user (with a drupal account) registers for an event. It's not happening if an anon user does so, as far as I can tell. UPDATE: I have just experienced this when registering anonymously, however this was solved by clearing my browser cache.

It's also something I never noticed on 3.3.1, so it may be new in 3.3.2. I can't upgrade to 3.3.3 until Wednesday, unfortunately, so I can't check and see whether this is now fixed.

Here's the error message I get, which happens on the confirm screen after the registration has been checked by the user who then clicks continue / processing...

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

Database Error Code: Duplicate entry 'civicrm_participant-24-1-1' for key 'UI_line_item_value', 1062
Additional Details:
 
Code: [Select]
Array
(
    [callback] => Array
        (
            [0] => CRM_Core_Error
            [1] => handle
        )

    => -5
    [message] => DB Error: already exists
    [mode] => 16
    [debug_info] => INSERT INTO civicrm_line_item (entity_table , entity_id , price_field_id , label , qty , unit_price , line_total , participant_count , price_field_value_id ) VALUES ('civicrm_participant' ,  24 ,  1 , 'Gold Member Admission' ,  1 ,  100 ,  100 ,  0 ,  1 )  [nativecode=1062 ** Duplicate entry 'civicrm_participant-24-1-1' for key 'UI_line_item_value']
    [type] => DB_Error
    [user_info] => INSERT INTO civicrm_line_item (entity_table , entity_id , price_field_id , label , qty , unit_price , line_total , participant_count , price_field_value_id ) VALUES ('civicrm_participant' ,  24 ,  1 , 'Gold Member Admission' ,  1 ,  100 ,  100 ,  0 ,  1 )  [nativecode=1062 ** Duplicate entry 'civicrm_participant-24-1-1' for key 'UI_line_item_value']
    [to_string] => [db_error: message="DB Error: already exists" code=-5 mode=callback callback=CRM_Core_Error::handle prefix="" info="INSERT INTO civicrm_line_item (entity_table , entity_id , price_field_id , label , qty , unit_price , line_total , participant_count , price_field_value_id ) VALUES ('civicrm_participant' ,  24 ,  1 , 'Gold Member Admission' ,  1 ,  100 ,  100 ,  0 ,  1 )  [nativecode=1062 ** Duplicate entry 'civicrm_participant-24-1-1' for key 'UI_line_item_value']"]
)

NB: this doesn't seem to happen all the time, which is making it very hard to identify and solve. Anyone have any ideas? I THINK it might be because my strict email=10/threshold=10 dedupe rule isn't kicking in and so, rather than merging contact, it's trying to create a new one with the same details... ?

Best,

Robin
« Last Edit: January 24, 2011, 05:05:26 am by bresnark »

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Error on event registration
January 24, 2011, 05:42:01 am
Do you have price/priceset ?
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

rjb

  • I post occasionally
  • **
  • Posts: 63
  • Karma: 2
  • CiviCRM version: 3.3.5
  • CMS version: Drupal 6
  • MySQL version: 5.1.44
  • PHP version: 5.3.1
Re: Error on event registration
January 24, 2011, 06:23:40 am
Hi, Xavier

Yes, there's a price set on this page - it's actually an event produced from an event template, and there's a price set called in the template.

Best,

Robin

ES.Bill

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 3.4.4
  • CMS version: Drupal 6.20
  • MySQL version: 5.1.54
  • PHP version: 5.2.17
Re: Error on event registration
February 23, 2011, 09:38:13 am
Hi Robin,

I'm having the same problem.  Did you find a solution?

..........Bill

rjb

  • I post occasionally
  • **
  • Posts: 63
  • Karma: 2
  • CiviCRM version: 3.3.5
  • CMS version: Drupal 6
  • MySQL version: 5.1.44
  • PHP version: 5.3.1
Re: Error on event registration
February 25, 2011, 05:07:41 am
I'm afraid not, Bill - the problem just went away for me. I wish I could nail it though...

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
Re: Error on event registration
April 07, 2011, 12:51:56 pm
I can reproduce this error.  I'm using PayPal Standard.  Event uses a price set.
Workflow Scenario (quite common actually):
User Registers for event
Confirms
Goes to paypal and hits Back Button

This is pretty ugly.

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
Re: Error on event registration
April 07, 2011, 12:53:17 pm
Details:
Database Error Code: Duplicate entry 'civicrm_participant-29-17-8' for key 'UI_line_item_value', 1062
Additional Details:
Array
(
    [callback] => Array
        (
           
  • => CRM_Core_Error
  • [1] => handle
            )

       
Code: [Select]
=> -5
    [message] => DB Error: already exists
    [mode] => 16
    [debug_info] => INSERT INTO civicrm_line_item (entity_table , entity_id , price_field_id , label , qty , unit_price , line_total , participant_count , price_field_value_id ) VALUES ('civicrm_participant' ,  29 ,  8 , 'Other Amount' ,  1 ,  1.00 ,  1 ,  0 ,  17 )  [nativecode=1062 ** Duplicate entry 'civicrm_participant-29-17-8' for key 'UI_line_item_value']
    [type] => DB_Error
    [user_info] => INSERT INTO civicrm_line_item (entity_table , entity_id , price_field_id , label , qty , unit_price , line_total , participant_count , price_field_value_id ) VALUES ('civicrm_participant' ,  29 ,  8 , 'Other Amount' ,  1 ,  1.00 ,  1 ,  0 ,  17 )  [nativecode=1062 ** Duplicate entry 'civicrm_participant-29-17-8' for key 'UI_line_item_value']
    [to_string] => [db_error: message="DB Error: already exists" code=-5 mode=callback callback=CRM_Core_Error::handle prefix="" info="INSERT INTO civicrm_line_item (entity_table , entity_id , price_field_id , label , qty , unit_price , line_total , participant_count , price_field_value_id ) VALUES ('civicrm_participant' ,  29 ,  8 , 'Other Amount' ,  1 ,  1.00 ,  1 ,  0 ,  17 )  [nativecode=1062 ** Duplicate entry 'civicrm_participant-29-17-8' for key 'UI_line_item_value']"]
)

Osvaldo

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • Open source rocks!
Re: Error on event registration
November 13, 2012, 09:38:38 am
Hi there,

We're experiencing this issue on version 4.1.5. What was the solution?
Osvaldo Gomez
Upleaf LLC

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Error on event registration

This forum was archived on 2017-11-26.