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) »
  • DB Error during Online Registration
Pages: [1]

Author Topic: DB Error during Online Registration  (Read 715 times)

davyivins

  • I post occasionally
  • **
  • Posts: 119
  • Karma: 2
    • PURCO SA
  • CiviCRM version: 4.5
  • CMS version: Drupal 6.33
  • MySQL version: 5.5.34
  • PHP version: 5.4.33
DB Error during Online Registration
April 25, 2012, 02:23:23 pm
Drupal6  and CiviCRM 4.1.2

CiviEvent throws "DB Error: constraint violation" when processing an Online Registration under the following circumstances: 
1) a single event profile combines Individual sub-type fields and Participant fields; OR
2) an event has two profiles, where one profile includes Individual sub-type fields and the other includes Participant fields

If Individual sub-type type fields are not used the process works fine.
If Participant fields are not used then Individual sub type fields can be used

This was tested and replicated on drupal6.demo.civicrm.org.

The problem:

 - Either lose valuable participant information by not using Participant fields in the event registration process
 - Or avoid using the sub-type  - but then the registration process overwrites and changes existing individuals' Contact Type (which will have to be fixed afterwards)

I've created a bug report for this as well. If anyone has any ideas to get around the problem I'd be thrilled.
There are times I love technology...and then there are times I *love* technology :-)

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: DB Error during Online Registration
April 25, 2012, 02:32:40 pm

Does this work if you dont use an individual subtype but just the individual type?

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

davyivins

  • I post occasionally
  • **
  • Posts: 119
  • Karma: 2
    • PURCO SA
  • CiviCRM version: 4.5
  • CMS version: Drupal 6.33
  • MySQL version: 5.5.34
  • PHP version: 5.4.33
Re: DB Error during Online Registration
April 25, 2012, 03:23:41 pm
Yes. That is correct.
The problem seems to be the COMBINATION of an Individual sub-type and a Participant field.
If I combine the individual type (not the sub-type) and a Participant field it works fine.
« Last Edit: April 25, 2012, 03:26:33 pm by davyivins »
There are times I love technology...and then there are times I *love* technology :-)

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: DB Error during Online Registration
April 25, 2012, 07:55:42 pm

Can you investigate and help figure out what the issue is and potentially help patch it. That will ensure it gets into 4.2 :)

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

davyivins

  • I post occasionally
  • **
  • Posts: 119
  • Karma: 2
    • PURCO SA
  • CiviCRM version: 4.5
  • CMS version: Drupal 6.33
  • MySQL version: 5.5.34
  • PHP version: 5.4.33
Re: DB Error during Online Registration
April 27, 2012, 04:51:14 am
Hi Donald (or should that be Lobo - I see you sign your posts as lobo?)
Wish I could help but I'm afraid that's way above my capabilities  :(
Sorry...
There are times I love technology...and then there are times I *love* technology :-)

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: DB Error during Online Registration
April 27, 2012, 06:40:24 am

no worries. hopefully someone will patch it for a future release

there are lots of other ways u can contribute besides code, some ideas here:

http://book.civicrm.org/user/civicrm-community/civicrm-community

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 »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • DB Error during Online Registration

This forum was archived on 2017-11-26.