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 CiviMember (Moderator: Deepak Srivastava) »
  • Error adding a membership
Pages: [1]

Author Topic: Error adding a membership  (Read 6231 times)

jackrabbithanna

  • I post occasionally
  • **
  • Posts: 61
  • Karma: 3
  • Quick like bunny
    • http://www.skvare.com
  • CiviCRM version: 4.3.5
  • CMS version: Drupal 7.23
  • MySQL version: 5.1
  • PHP version: 5.3.3
Error adding a membership
May 22, 2013, 09:44:12 pm
I have had working system in place for a customer for some time that has been working fine, but have upgraded in steps from 4.2 to 4.3.0 to 4.3.1 to 4.3.2 to 4.3.3

Now when I add a membership manually through the civi backend admin interface I'm getting an error.  I am creating a group membership on an Organization contact.

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '' for key 'name'

The membership seems to still be created fine, but I'm confused as to why I'm getting this error now.

Searching the forum results in a bunch of topics about views integration.  I do have the tables added to the drupal settings.php and use views for a few lists of civi entities but I can't see how the two could be related...

I have Enable Drupal Watchdog Logging set to yes on the Settings - Debugging and Error Handling  page but get no messages in the log

I also have Eileen's civicrm_entity module (http://drupal.org/sandbox/eileen/1923028) installed which I'm using for the Rules support it offers.  I have a rule that is triggered on Membership creation, to create a Synced Drupal User....maybe this is causing the error?

Probably should open another topic for another error I'm getting, but in case its possible that the two are related, I can no longer delete custom data fields or data sets....

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Error adding a membership
May 22, 2013, 11:22:42 pm
My money is that the problem is with the rule trying to create a user account so I replied on your issue on the civicrm_entity module
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

jackrabbithanna

  • I post occasionally
  • **
  • Posts: 61
  • Karma: 3
  • Quick like bunny
    • http://www.skvare.com
  • CiviCRM version: 4.3.5
  • CMS version: Drupal 7.23
  • MySQL version: 5.1
  • PHP version: 5.3.3
Re: Error adding a membership
May 23, 2013, 09:39:43 am
You were correct, I installed the Rules Conditional module then

1. Added a Fetch Entity by ID action, using the newly created memberships contact id
2. Added a conditional and and if with a data comaprison on the Fetched_contact's type
3. Only then do I invoke the action create Synced Drupal User

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Error adding a membership

This forum was archived on 2017-11-26.