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) »
  • non-recoverable error when trying to run updatemembershiprecord
Pages: [1]

Author Topic: non-recoverable error when trying to run updatemembershiprecord  (Read 4796 times)

mlampard

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 3
non-recoverable error when trying to run updatemembershiprecord
September 29, 2009, 09:24:11 pm
Hi All,
I am unable to successfully run updatemembershiprecord.php. I'm running 2.2.8 on Drupal - had the same issue with previous versions and didn't bother too much as the client worked around it - they now need it.... The backtrace I get is as follows:

Updating ...
backTrace

/home/salt8064/public_html/ssic/sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 258
/home/salt8064/public_html/ssic/sites/all/modules/civicrm/CRM/Core/DAO.php, fatal, 707
/home/salt8064/public_html/ssic/sites/all/modules/civicrm/api/v2/MembershipContact.php, getFieldValue, 279
/home/salt8064/public_html/ssic/sites/all/modules/civicrm/api/v2/MembershipContact.php, _civicrm_membership_format_params, 74
/home/salt8064/public_html/ssic/sites/all/modules/civicrm/api/v2/Membership.php, civicrm_membership_contact_create, 85
/home/salt8064/public_html/ssic/sites/all/modules/civicrm/bin/UpdateMembershipRecord.php, civicrm_contact_membership_create, 139
/home/salt8064/public_html/ssic/sites/all/modules/civicrm/bin/UpdateMembershipRecord.php, updateMembershipStatus, 267

I have 5,739 "Individual" records (12,272 including "Households") - doesn't seem like it should be excessive or difficult for the script to deal with...?? I have commented out the email send portion of the file, as we don't want reminders sent from this system. I have commented out as follows:
/*
//send reminder for membership renewal
            if ( $dao->reminder_date && ( $reminder_date <= $today_date ) ) {
...
...
...
            }
*/
            // CRM_Core_Error::debug( 'fEnd', count( $GLOBALS['_DB_DATAOBJECT']['RESULTS'] ) );

Make sense?
 
It takes approximately 5 seconds to return me the "Non Recoverable Error" message, so is not (apparently) timing out!

Help - I must be missing something obvious?
Cheers,
Marty.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: non-recoverable error when trying to run updatemembershiprecord
September 29, 2009, 10:28:38 pm
Marty,

Do you get any SQL error ?

Kurund
Found this reply helpful? Support CiviCRM

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: non-recoverable error when trying to run updatemembershiprecord
September 30, 2009, 12:04:23 am
hi Marty,

can u please copy this code to membership cron ( bin/UpdateMembershipRecord.php ) at line around 138 just after "if statement".
Code: [Select]
crm_core_error::debug( 'deceasedMembership', $deceasedMembership );
exit();

also can u check that "Deceased" membership status is present and is having 'is_active' = true in your membership statuses.
(do check civicrm_membership_status table )


thanks

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

mlampard

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 3
Re: non-recoverable error when trying to run updatemembershiprecord
September 30, 2009, 08:02:21 am
Thanks Kiran - the deceased membership status was missing!?? I added it and it seemed to work just fine. I didn't bother with the debug statement.....
Cheers,
Marty.

Laryn

  • I post frequently
  • ***
  • Posts: 192
  • Karma: 4
    • CEDC
  • CiviCRM version: 4.6.x
  • CMS version: Drupal 7
Re: non-recoverable error when trying to run updatemembershiprecord
November 10, 2009, 06:52:27 am
I don't see a deceased membership rule (see screenshot) and I'm not quite sure what details I would add to create one. I added the debug statement and then the UpdateMembershipRecord.php script gave this result:

Quote
Updating ..

deceasedMembership

Array
(
    [id] => 6
    [status_id] =>
    [contact_id] => 73
    [membership_type_id] => 2
    [join_date] => 2007-03-05
    [start_date] => 2007-03-05
    [end_date] => 2007-12-04
    [reminder_date] =>
    [source] => Check
    [skipStatusCal] => 1
    [createActivity] => 1
)

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: non-recoverable error when trying to run updatemembershiprecord
November 10, 2009, 07:54:29 am

compare this to:

http://drupal.demo.civicrm.org/civicrm/admin/member/membershipStatus&reset=1

u will need to add the "Deceased" Status rule

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: non-recoverable error when trying to run updatemembershiprecord
November 10, 2009, 11:13:05 am
I created a new rule named "Deceased" and made it admin only and activated.

The script gave an error when I tried to run it next, but it seems to have run the next time I ran it.

Should this be added to the wiki or is it more of a special case? I'm happy to add it but don't want to clutter it up if it would be more beneficial to just leave it in the forum.
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: non-recoverable error when trying to run updatemembershiprecord
November 10, 2009, 12:24:34 pm

i suspect we messed this up during an upgrade and some installs do not have a "deceased" status type

would be good to mention it on the wiki page so other folks can check and do a quick fix if needed

thanx for taking the initiative to do so :)

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: non-recoverable error when trying to run updatemembershiprecord
November 10, 2009, 12:35:00 pm
Done: I added a line to the upgrade wiki page.
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) »
  • non-recoverable error when trying to run updatemembershiprecord

This forum was archived on 2017-11-26.