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) »
  • UpdateMembershipReminderDate Fails!
Pages: [1]

Author Topic: UpdateMembershipReminderDate Fails!  (Read 1183 times)

gmarsh

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
  • CiviCRM version: 4.4.2
  • CMS version: Joomla 2.5.14
  • MySQL version: 5.5.32
  • PHP version: 5.3.26
UpdateMembershipReminderDate Fails!
August 20, 2012, 04:15:54 pm
I changed the Renewal Reminder days from 30 to 14 in phpMyAdmin for my CiviCRM site.  When I open any individual's membership (edit it) and save it (without altering anything) the Renewal Reminder Date is correctly set 14 days prior to the membership End Date.

However, when I run UpdateMembershipReminderDate.php as an individual cron job from a URL, the dates are processed erratically.  Some are changed correctly, others are not.

Any thots!


Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: UpdateMembershipReminderDate Fails!
August 22, 2012, 10:36:51 am
Why did you change it via phpMyAdmin and not in CiviCRM? Perhaps this datum is stored other places as well, or perhaps saving it executes other aspects of the system. In general, editing the DB directly is not recommended.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: UpdateMembershipReminderDate Fails!
August 22, 2012, 05:13:06 pm
You can not modify the Renewal Reminder Days value in the admin screens for a membership type once some membership records have been created for that type (hence used phpmyadmin). In 4.1, the Set Membership Reminder Dates "Scheduled Job" (rather than the deprecated bin/.php script) should "Set membership renewal reminder dates for current membership records where reminder date is null". However it will not "fix" membership records that already have a reminder date set. Not sure if that's the behavior you're seeing.
Protect your investment in CiviCRM by  becoming a Member!

gmarsh

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
  • CiviCRM version: 4.4.2
  • CMS version: Joomla 2.5.14
  • MySQL version: 5.5.32
  • PHP version: 5.3.26
Re: UpdateMembershipReminderDate Fails!
August 24, 2012, 01:47:37 pm
I realize now that Set Membership Reminder Dates does not modify any record in which the renewal reminder date is already set.  That posed a problem for me because my client wanted to shorten the Renewal Reminder from 30 to 14 days.  The only option I could see was to find all membership records in which the interval was still 30 days, set those to NULL, and then re-run Set Membership Reminder Dates to reset the interval to 14 days.  And it worked! 

I don't know how complicated it would be to include this functionality in CiviCRM, but I have a hunch there are others who may need to change the value of Renewal Reminder Days after membership records are in place.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: UpdateMembershipReminderDate Fails!
August 27, 2012, 09:32:16 am
Starting with the new 4.2 release, the preferred method for membership reminders is to use the Schedule Reminders feature (Administer > Communications > Schedule Reminders). This feature does not use the renewal_reminder_date value - but rather gives you the ability to set (and modify) any number of reminders that are relative to membership end dates. Hopefully this is a more flexible and less brittle approach :-)
Protect your investment in CiviCRM by  becoming a Member!

dwebb

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Joomla 2.5.6
  • MySQL version: 5.5.22
  • PHP version: 5.3.10
Re: UpdateMembershipReminderDate Fails!
August 27, 2012, 09:29:22 pm
Quote from: Dave Greenberg on August 27, 2012, 09:32:16 am
Starting with the new 4.2 release, the preferred method for membership reminders is to use the Schedule Reminders feature (Administer > Communications > Schedule Reminders). This feature does not use the renewal_reminder_date value - but rather gives you the ability to set (and modify) any number of reminders that are relative to membership end dates. Hopefully this is a more flexible and less brittle approach :-)

Is this triggered by the "Sent Scheduled Reminders" or "Send Scheduled Mailings" job?  I've sent three memberships in a vanilla 4.2 install inside Joomla 2.5.6 and set them up so that one is expired, and two expire in the next 30-60 days.   I set up reminders to renew based on the expiration dates (before/after with repeat).   Every time I run "Send Scheduled Reminders" I get this:

Quote
Parameters parsed (and passed to API method):
a:1:{s:7:"version";i:3;}

Full message:
Finished execution of Send Scheduled Reminders with result: Success (1)

While if I run "Send Scheduled Mailings" I get:

Quote
Parameters parsed (and passed to API method):
a:1:{s:7:"version";i:3;}

Full message:
Finished execution of Send Scheduled Mailings with result: Failure, Error message: A fatal error was triggered

How can I investigate or further debug what the fatal error is?  The log states nothing meaningful:

Quote
Aug 27 23:43:49  [info] Beginning processQueue run: 0, 0
Aug 28 00:00:34  [info] Beginning processQueue run: 0, 0
Aug 28 00:11:38  [info] Beginning processQueue run: 0, 0
Aug 28 00:13:04  [info] Beginning processQueue run: 0, 0


Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: UpdateMembershipReminderDate Fails!
August 28, 2012, 11:21:08 am
"Send Scheduled Reminders" is the Job which triggers your Scheduled Reminder items. In your testing - is this working (assuming you're using test email addresses for the memberships that you can monitor)?

"Send Scheduled Mailings" triggers sending of scheduled CiviMail (bulk) mailings. Seems like you may not have CiviMail configuration completed / correct?? You might want to search on the forum for similar problems w/ CiviMail config.
Protect your investment in CiviCRM by  becoming a Member!

dwebb

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Joomla 2.5.6
  • MySQL version: 5.5.22
  • PHP version: 5.3.10
Re: UpdateMembershipReminderDate Fails!
August 30, 2012, 12:12:30 am
Quote from: Dave Greenberg on August 28, 2012, 11:21:08 am
"Send Scheduled Reminders" is the Job which triggers your Scheduled Reminder items. In your testing - is this working (assuming you're using test email addresses for the memberships that you can monitor)?

I've intentionally made fake accounts with email addresses that all come to me.   None of them receive an email, but if I do a signup I get the confirmation emails, the receipt, etc.   So mail in general is working but the reminders are not despite it stating it was successful.   I think the issue is that the reminder "event" isn't being triggered and somehow I'm not staging the expiration date properly?


Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: UpdateMembershipReminderDate Fails!
September 05, 2012, 10:45:59 am
I just did a quick test in my 4.2 local sandbox and I also did NOT get the expected email output for a scheduled reminder on memberships where end date is 3 days in the future. I've asked Yash on our team to investigate.
Protect your investment in CiviCRM by  becoming a Member!

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: UpdateMembershipReminderDate Fails!
September 07, 2012, 12:03:19 pm
Hmm - asked a colleague to retest and it worked for her.

I could not replicate the behavior that you mentioned in the chat.
Quote
Here is what I did :

#created a scheduled reminder for type "Student" for  "Renewal Reminder (non-auto-renew memberships only)",
  to send reminder 3 days before the membership end date

#created a membership of type "Student" w/ start date 10 Sep'11, join date 10 Sep'11 and hence end date = 9 Sep'12

#ran the job, I did get the email

Then I retested and it worked for me to - I did it w/ 2 different membership types and set the Scheduled reminder to apply to all of my existing membership types.
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • UpdateMembershipReminderDate Fails!

This forum was archived on 2017-11-26.