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) »
  • Question about 'force' sending out Renewal Reminders
Pages: [1]

Author Topic: Question about 'force' sending out Renewal Reminders  (Read 2048 times)

penguintrax

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 2
  • CiviCRM version: 3.3x and 4.x depending on site
  • CMS version: Joomla 1.5 or 1.7 depending on site
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.17
Question about 'force' sending out Renewal Reminders
December 04, 2012, 03:21:18 pm
Joomla 2.5.8 (upgraded from 1.7x)
CiviCRM 4.2.6 (upgraded from 4.0x)

Situation is this - client needed a specific format for the Renewal Reminder Letter template. Our coder created custom hooks to insert in the letter.

If you choose the template and use it for a one-off email, it fires of fine and fills in the information as appropriate.

The original date to send renewal reminders was 30 days prior to the end dated of the fixed membership period.

I ran the job to set renewal reminders - that was successful.

Now I can't figure out which scheduled job to run to actually send the reminder letters now that it's past the reminder date.

I get a smarty error when I run process_membership, which is what I understood to be the job that sends out the renewal reminders.

Thanks in advance for shoving me in the right direction.


Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Question about 'force' sending out Renewal Reminders
December 05, 2012, 06:31:57 am
are you aware that scheduled membership reminders has changed quite a lot between 4.0 and 4.2? there is now the abilility to set up more than one reminder per membership type etc.

you might want to look at:

http://drupal.demo.civicrm.org/civicrm/admin/member/membershipType?action=update&id=1&reset=1
http://drupal.demo.civicrm.org/civicrm/admin/scheduleReminders?reset=1
http://book.civicrm.org/user/current/email/scheduled-reminders/

Quote
Our coder created custom hooks to insert in the letter

you might want to explain a bit more about what / why / how

Quote
I ran the job to set renewal reminders - that was successful.
Quote
I get a smarty error when I run process_membership, which is what I understood to be the job that sends out the renewal reminders.

the above two quotes sound a little bit contradictory - can you explain a bit more?
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

penguintrax

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 2
  • CiviCRM version: 3.3x and 4.x depending on site
  • CMS version: Joomla 1.5 or 1.7 depending on site
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.17
Re: Question about 'force' sending out Renewal Reminders
December 05, 2012, 07:05:18 am
We needed to create tokens to insert membership data that was already in the database plus doing calculations to 'advance' membership types based on criteria.  Tokens created were:

Current year + 1
membership type (based on number of years as a member of the Bar)
membership price (based on type, above)

Yes, I am aware that the reminders have changed between the two versions and I have set up recurring reminders once the initial has gone out. Do you recommend that I remove the reminders 'clause' in the Membership Type and rely solely on the scheduled reminders feature. If so, would I need to create one reminder to get the initial renewals to fire off, regardless of Renewal Reminder Date? After the initial letters have gone out, I guess I would just reset the Initial Reminder to 30 days before end date?

Because we didn't have a renewal reminder letter ready, memberships had not been populated with a reminder date, so I ran the scheduled-job to resolve that.

I had tried to run the process_membership job to send out the letters (by 'force') but that related in a smarty error.

Thank you for responding!



Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Question about 'force' sending out Renewal Reminders
December 06, 2012, 12:07:05 am
Hey there,

Quote
Because we didn't have a renewal reminder letter ready, memberships had not been populated with a reminder date, so I ran the scheduled-job to resolve that.

Ok - I get it now - sorry that was my fault - i read your set and sent in "I ran the job to set renewal reminders - that was successful"

I'm not an expert in how membership renewal reminders have changed in 4.2 but I remember some parts of it so hopefully I can help and I am keen to find out more about them anyway.  I did some digging.

On this page: http://drupal.demo.civicrm.org/civicrm/admin/job?reset=1 you'll see there are two seperate jobs:

process_membership and send_reminder

you'll see some notes on process membership
Quote
Update Membership Statuses and Send Renewal Reminders (Daily)
Updates membership statuses and conditionally sends renewal reminders. WARNING: Membership renewal reminders are being migrated to the Schedule Reminders functionality which supports multiple renewal reminders. This job will be obsoleted in 4.3.
API Prefix: civicrm_api3
API Entity: job
API Action: process_membership

Quote
Do you recommend that I remove the reminders 'clause' in the Membership Type

From that page:  WARNING: Membership renewal reminders should now be configured using the Schedule Reminders feature, which supports multiple renewal reminders. The reminders configured on this form will no longer function as of the 4.3 release. (learn more...)

Quote
and rely solely on the scheduled reminders feature.

Never put off till tomorrow what u can do today :p

BTW - what did you think about the documentation in http://book.civicrm.org/user/current/email/scheduled-reminders/? How can we improve it?

Quote
I had tried to run the process_membership job to send out the letters (by 'force') but that related in a smarty error.
you might not have to worry about this error if you move them to the new way of doing reminders...
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

penguintrax

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 2
  • CiviCRM version: 3.3x and 4.x depending on site
  • CMS version: Joomla 1.5 or 1.7 depending on site
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.17
Re: Question about 'force' sending out Renewal Reminders
December 06, 2012, 08:30:25 am
Thanks Michael -

I did remove the 'old' reminder settings in the memberships and they are set up with the new system. When I run the scheduled reminder job manually, I still get the smarty error. I found another thread regarding this sort of thing and AJ is helping me there, too.

I will definitely look over the scheduled reminders doc to see if I can suggest edits/clarifications.

I'm tweaking a few other things on this end and will see if things run successfully (or not!).  :P

I'll report back.

zaal@ohava

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 3.4, 4.2
  • CMS version: Joomla 1.5, Joomla 2.5
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Question about 'force' sending out Renewal Reminders
December 20, 2012, 11:14:25 am
(sorry for the crosspost)

Hello, I've been having this same problem with Smarty errors in my renewal reminders.

It has to do with running the membership status processor task, and it appears to be failing where it tries to generate a string from my email template. I suspect it is because the membership data tokens are failing in some way, and in fact, when I removed

{membership.end_date} and {membership.type} I was able to run the process and schedule my reminders.

I was hoping to hear from someone who is using the Renewal membership tokens in production and getting them to work.

penguintrax

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 2
  • CiviCRM version: 3.3x and 4.x depending on site
  • CMS version: Joomla 1.5 or 1.7 depending on site
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.17
Re: Question about 'force' sending out Renewal Reminders
December 20, 2012, 11:34:02 am
That's really interesting...I don't use a token for membership end date, as all memberships expire at the end of the year. Unfortunately need to keep membership type as that gets calculated and memberships are advanced depending on the result of that calculation.

So, my guess is that the culprit is membership.type.

zaal@ohava

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 3.4, 4.2
  • CMS version: Joomla 1.5, Joomla 2.5
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Question about 'force' sending out Renewal Reminders
December 22, 2012, 01:07:58 pm
Looks like I am barking up the wrong tree. Sorry about that.
Installed a barebones Civi and set up test scheduled reminders. I'm getting membership types and end dates appropriately.

This is starting to look like either a data integrity problem or a malformed template in production. I am crossing my fingers for a smarty typo or an unsupported special character or something.

Is there a way to check for bad civi table strings or dates?

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Question about 'force' sending out Renewal Reminders
January 03, 2013, 05:26:54 pm
Have either of you posted the actual 'smarty error(s)' that you're seeing? I'm not finding them on this thread.
Protect your investment in CiviCRM by  becoming a Member!

penguintrax

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 2
  • CiviCRM version: 3.3x and 4.x depending on site
  • CMS version: Joomla 1.5 or 1.7 depending on site
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.17
Re: Question about 'force' sending out Renewal Reminders
January 04, 2013, 08:00:23 am
Dave.
I had posted the error somewhere, but here it is again:


Code: [Select]
Fatal error: Smarty error: [in string:

DESCRIPTION/home/facdl/public_html/administrator/components/com_civicrm/civicrm/packages/Smarty/Smarty.class.php on line 1093

And here is what is on line 1093:
Code: [Select]
     trigger_error("Smarty error: $error_msg", $error_type);
As far as I can tell, the line referenced is just how to display an error.



Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Question about 'force' sending out Renewal Reminders
January 05, 2013, 08:10:44 am
Arghh - that error is not really helpful. Not sure if the '[in string' actually means the problem is related to an unexpected open bracket ??

By any chance do any of your membership type titles have brackets?
Protect your investment in CiviCRM by  becoming a Member!

penguintrax

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 2
  • CiviCRM version: 3.3x and 4.x depending on site
  • CMS version: Joomla 1.5 or 1.7 depending on site
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.17
Re: Question about 'force' sending out Renewal Reminders
January 08, 2013, 12:41:09 pm
No brackets and we just changed the custom tokens to use more unique names as well. We upgraded to 4.2.7 (someone suggested that may solve the problem) and it did not, the same smarty error occurs. I've also just noticed that the checksum URL for the contribution page is not filling in the Contact ID, rendering the URL unusable. I'm about to go search the forums to see if anyone else has reported this.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Question about 'force' sending out Renewal Reminders

This forum was archived on 2017-11-26.