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) »
  • UpdateMemberStatus.php does it send emails only to X = days, or X >= days?
Pages: [1]

Author Topic: UpdateMemberStatus.php does it send emails only to X = days, or X >= days?  (Read 774 times)

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
UpdateMemberStatus.php does it send emails only to X = days, or X >= days?
May 08, 2010, 08:31:27 pm
Due to a server configuration change, the cronjob for UpdateMemberStatus.php hasn't been running for a few weeks.  As a result, several members didn't get their reminder emails during this time.

If I reactivate the cron today, will UpdateMemberStatus.php send emails to these people who missed a reminder, have X + ? days on their membership expiry?  Or will these reminder emails that were missed never get sent, so I should contact the members manually?

Thanks for refreshing my memory.
Try CiviTeacher: the online video tutorial CiviCRM learning library.

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: UpdateMemberStatus.php does it send emails only to X = days, or X >= days?
May 09, 2010, 08:29:11 am

i'm pretty sure it is >= X days

do a dry run on a copy of the DB. If it is not, we should fix it to make it 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

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: UpdateMemberStatus.php does it send emails only to X = days, or X >= days?
May 11, 2010, 07:25:08 pm
You are correct, it is <=

line 199 of bin/UpdateMembershipRecord.php
Code: [Select]
$reminder_date <= $today_date

After sending the membership reminder is then set to NULL
Code: [Select]
CRM_Core_DAO::setFieldValue( 'CRM_Member_DAO_Membership', $dao->membership_id, 'reminder_date', 'null');
                       

cool to see how this works.
thanks again!
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • UpdateMemberStatus.php does it send emails only to X = days, or X >= days?

This forum was archived on 2017-11-26.