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 CiviContribute (Moderator: Donald Lobo) »
  • Constraint Violation and other issues
Pages: [1]

Author Topic: Constraint Violation and other issues  (Read 433 times)

afcionado

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: Drupal 7.12
  • MySQL version: 5.1.63
  • PHP version: 5.3.10
Constraint Violation and other issues
August 13, 2012, 03:06:38 pm
Greetings,

I've been working on a project with CiviCRM over the last few weeks. I've been able to successfully create events and attach a paypal standard payment processor successfully.

I'm having a hell of time creating a membership page with the same paypal standard payment processor. I have a series of bugs.

The first is related to a Constraint Violation. I've read a ton on a series of forums and have truncated database and have eliminated older membership price sets. I've also added Organic Groups to the Drupal site to manage users. All users are created successfully. The group organization has a id of 128.

The system is spitting out 102 as a user. I've logged in and out of site to create a new session as well. Strange to have the event component working beautifully and the contribute portion of module not.

Here are the error messages:

Database Error Code: Cannot add or update a child row: a foreign key constraint fails (`bdpme911_civdbase`.`civicrm_membership`, CONSTRAINT `FK_civicrm_membership_membership_type_id` FOREIGN KEY (`membership_type_id`) REFERENCES `civicrm_membership_type` (`id`) ON DELETE CASCADE), 1452 


Then, when i bounce back to drupal site. I'm told of an additional error relative to "unidentified index".

Here is the error once i return to the original membership page:


  [size=0pt]Notice[/size][size=0pt]: Undefined index: selectMembership in CRM_Member_BAO_Membership->postProcessMembership() (line 1136 of /home/bdpme911/public_html/sites/all/modules/civicrm/CRM/Member/BAO/Membership.php).[/size]
  • [size=0pt]Notice[/size][size=0pt]: Undefined index: selectMembership in CRM_Member_BAO_Membership->postProcessMembership() (line 1138 of /home/bdpme911/public_html/sites/all/modules/civicrm/CRM/Member/BAO/Membership.php).[/size]
  • [size=0pt]Notice[/size][size=0pt]: Undefined index: contribution_type_id in CRM_Member_BAO_Membership->postProcessMembership() (line 1154 of /home/bdpme911/public_html/sites/all/modules/civicrm/CRM/Member/BAO/Membership.php).[/size]


I really think that the civicrm project is going to be a great success for my client. Just need to change a few things to get it up an running.

I've been able to see that membership ID is set to 5 on the database. Allowing users to create their own usernames and passwords through drupal.

Thanks in advance for all the support.
« Last Edit: August 14, 2012, 11:45:46 am by afcionado »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Constraint Violation and other issues

This forum was archived on 2017-11-26.