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) »
  • Errors with Membership (possibly related to upgrade errors as well)
Pages: [1]

Author Topic: Errors with Membership (possibly related to upgrade errors as well)  (Read 806 times)

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Errors with Membership (possibly related to upgrade errors as well)
May 17, 2010, 08:35:00 am
I have a Civi install on 2.2. I had tried to upgrade it recently and was getting FK issues, so my plan was to do the database procedure to cleanse the data and then try again.

In the meantime, I'm seeing some odd membership behavior. I first see it when I was trying to run the civimember cron; it runs for about a minute and then outputs this debug statement:
Code: [Select]
backTrace

/home/naaeenet/public_html/sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 258
/home/naaeenet/public_html/sites/all/modules/civicrm/CRM/Core/DAO.php, fatal, 707
/home/naaeenet/public_html/sites/all/modules/civicrm/CRM/Activity/BAO/Activity.php, getFieldValue, 1070
/home/naaeenet/public_html/sites/all/modules/civicrm/CRM/Member/BAO/Membership.php, addActivity, 307
/home/naaeenet/public_html/sites/all/modules/civicrm/api/v2/Membership.php, create, 395
/home/naaeenet/public_html/sites/all/modules/civicrm/bin/UpdateMembershipRecord.php, civicrm_contact_membership_create, 168
/home/naaeenet/public_html/sites/all/modules/civicrm/bin/UpdateMembershipRecord.php, updateMembershipStatus, 256

unrecoverable error
    Sorry. A non-recoverable error has occurred.

    We experienced an unexpected error. Please file an issue with the backtrace

    Return to home page.


It does seem to be updating membership records until it gives that. To try to debug this, I took a look at the membership types and they all appear to be connected to the 'Employer of' relationship. However, I can't edit that field, nor can I edit renewal reminder settings (please see attached screenshot for what it looks like). Then I went to look at the employer of relationship, and that also does not offer me an edit option as it should (nor does household relationships). I am attaching a second screenshot of this view as well. I am pretty certain this should not be the case. Any idea on what's going on and how I might fix my db to resolve all of this?

FYI -- this org was originally on a 'caravan' installation of civi but wanted to leave and use straight civi. the caravan folks said the db should function the same in regular civi and gave a dump of the civi database for us. i wonder if this is a bad side effect...

Help is greatly appreciated.

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: Errors with Membership (possibly related to upgrade errors as well)
May 20, 2010, 08:26:44 am
anyone? still stuck on this error and am in dire need of upgrading to 3.1. i am pretty sure my FK issues are related to these un-editable memberships types.

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: Errors with Membership (possibly related to upgrade errors as well)
May 24, 2010, 06:59:08 pm
OK, slowly making progress. I set renewal_msg_id in civicm_membership_type to NULL for all my entries, and that popped that part of my form back. It seemed to have a corrupted id number in it. 

I then tried to set relationship_type_id to NULL as well, but I just get a blank on my config screen with no selector (see attached screenshot). I cleared my templates_c folder and tried directoryCleanup but nothing seems to get this popup back. What else would I need to reset to see it? If I start a NEW membership type, I can see the selector. Ideas????

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: Errors with Membership (possibly related to upgrade errors as well)
June 01, 2010, 05:49:43 pm
I just realized the obvious. Once you attach members to a membership type, apparently you cannot change the relationship connection in general. To be safe, I created totally new memberships that didn't have any relationship assigned, migrated the members via the db to the new membership type ids, then deleted the old membership types as well as the relationship-created memberships. Hopefully all will be well....

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Errors with Membership (possibly related to upgrade errors as well)

This forum was archived on 2017-11-26.