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) »
  • Help with UpdateMembershipRecord.php fatal error and backtrace
Pages: [1]

Author Topic: Help with UpdateMembershipRecord.php fatal error and backtrace  (Read 1658 times)

Laryn

  • I post frequently
  • ***
  • Posts: 192
  • Karma: 4
    • CEDC
  • CiviCRM version: 4.6.x
  • CMS version: Drupal 7
Help with UpdateMembershipRecord.php fatal error and backtrace
November 06, 2009, 02:39:20 pm
Here's the backtrace I get when I try to run UpdateMembershipRecord.php:
Quote
Updating ..

backTrace

/var/www/vhosts/sitename.org/httpdocs/sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 256
/var/www/vhosts/sitename.org/httpdocs/sites/all/modules/civicrm/CRM/Core/DAO.php, fatal, 707
/var/www/vhosts/sitename.org/httpdocs/sites/all/modules/civicrm/api/v2/MembershipContact.php, getFieldValue, 279
/var/www/vhosts/sitename.org/httpdocs/sites/all/modules/civicrm/api/v2/MembershipContact.php, _civicrm_membership_format_params, 72
/var/www/vhosts/sitename.org/httpdocs/sites/all/modules/civicrm/api/v2/Membership.php, civicrm_membership_contact_create, 93
/var/www/vhosts/sitename.org/httpdocs/sites/all/modules/civicrm/bin/UpdateMembershipRecord.php, civicrm_contact_membership_create, 139
/var/www/vhosts/sitename.org/httpdocs/sites/all/modules/civicrm/bin/UpdateMembershipRecord.php, updateMembershipStatus, 266

We have recently upgraded Civi and Drupal and moved to a new server... Phew. Most of the bugs are out but I don't know what this output means. This is Civi 3.0.2 on Drupal 6.14.

Thanks for any pointers.
CEDC...social justice by design

*Get support on the new CiviCRM help site. /laryn

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: Help with UpdateMembershipRecord.php fatal error and backtrace
November 06, 2009, 07:54:25 pm

seems like there is a bad status_id (probably null?) in your DB that is causing this issue. You might want to check and see if all the membership records in civicrm_membership have a valid status_id

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

Laryn

  • I post frequently
  • ***
  • Posts: 192
  • Karma: 4
    • CEDC
  • CiviCRM version: 4.6.x
  • CMS version: Drupal 7
Re: Help with UpdateMembershipRecord.php fatal error and backtrace
November 09, 2009, 07:29:13 am
Hmm... I took a look in the database, and they all seem to be valid (none are null, all the others seem to be between 1 and 4, which have corresponding entries in the membership_status table). Any other ideas?

The Civi mailing script runs fine with the same username, password, and key, so I know those are okay.

Thanks for your help in tracking this down.

« Last Edit: November 09, 2009, 08:35:47 am by lpkb »
CEDC...social justice by design

*Get support on the new CiviCRM help site. /laryn

Laryn

  • I post frequently
  • ***
  • Posts: 192
  • Karma: 4
    • CEDC
  • CiviCRM version: 4.6.x
  • CMS version: Drupal 7
Re: Help with UpdateMembershipRecord.php fatal error and backtrace
November 09, 2009, 08:44:40 am
I thought it might be a permissions issue for the user that we created to do the cron runs, but it doesn't seem so. I couldn't find a list in the documentation of which permissions settings that user needs, but I gave it "Administer CiviCRM" and "Access CiviMember" and "edit all memberships" permissions and I'm still getting an error.
CEDC...social justice by design

*Get support on the new CiviCRM help site. /laryn

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Help with UpdateMembershipRecord.php fatal error and backtrace
November 09, 2009, 09:49:13 pm
you might want to take a look for : http://forum.civicrm.org/index.php/topic,10092.msg43283.html#msg43283

kiran
You Are Designed To Choose... Defined By Choice.

Laryn

  • I post frequently
  • ***
  • Posts: 192
  • Karma: 4
    • CEDC
  • CiviCRM version: 4.6.x
  • CMS version: Drupal 7
Re: Help with UpdateMembershipRecord.php fatal error and backtrace
November 10, 2009, 06:47:16 am
Thanks, Kiran, I'll leave my response in the other thread -- that seems to have been the issue. Now to further testing...
« Last Edit: November 10, 2009, 11:13:43 am by lpkb »
CEDC...social justice by design

*Get support on the new CiviCRM help site. /laryn

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Help with UpdateMembershipRecord.php fatal error and backtrace

This forum was archived on 2017-11-26.