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 CiviEvent (Moderator: Yashodha Chaku) »
  • Event Reminders not working - Reproduced on Demo Site
Pages: [1]

Author Topic: Event Reminders not working - Reproduced on Demo Site  (Read 2076 times)

Parvez

  • I post occasionally
  • **
  • Posts: 91
  • Karma: 7
Event Reminders not working - Reproduced on Demo Site
June 07, 2012, 04:40:08 am
Hi Guys

I've been looking at the events reminder issue with a client and it seems there is a bug in the codebase. I've reproduced the issue in the demo site so its still current.

If you setup an scheduled reminder at event level then run the reminders job the log indicates there is an error

Summary
Finished execution of Send Scheduled Reminders with result: Failure, Error message: DB Error: no such field

This is due to the following line in query

reminder.id IS NULL AND '20120607061443' >= DATE_SUB(r.start_date, INTERVAL 1 day) AND DATE_SUB(20120607061443, INTERVAL 1 DAY ) <= event_start_date

Which is produced by this bit of PHP in the ActionSchedule.php

$startDateClause[] = $operator. "({$now}, INTERVAL 1 DAY ) {$op} " . $actionSchedule->start_action_date;

Earlier on in the method the following is done to correct similar problems - the problem is the field 'event_start_date' doesn't exist

$dateField = str_replace('event_', 'r.', $actionSchedule->start_action_date);

Although I can see whats been done to get round this issue for other sections of the code I'm reluctant to patch this line as I'm not sure what its purpose is and if using the $dateField is the correct solution.

Any help would be appreciated.

Thanks


Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: Event Reminders not working - Reproduced on Demo Site
June 07, 2012, 10:22:17 pm
Parvez :
We 'll take a look at this and get back to you on the same.

-Yashodha
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

Parvez

  • I post occasionally
  • **
  • Posts: 91
  • Karma: 7
Re: Event Reminders not working - Reproduced on Demo Site
June 08, 2012, 05:55:01 am
Thanks Yashodha

Its worth noting that when I was testing I tested setting reminders to be triggered following the end date of the event. This highlighted a problem in 4.1.1 where the code was always appending r.start_date onto the end.

So I would also test the end date cases work as expected.

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: Event Reminders not working - Reproduced on Demo Site
June 10, 2012, 09:44:12 pm
Hi,

I see this problem in 4.1.3 when I schedule reminders relative to the event's start or end dates. Reminders work OK when scheduled on an absolute date.

Ken

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: Event Reminders not working - Reproduced on Demo Site
June 14, 2012, 07:45:28 am
Filed http://issues.civicrm.org/jira/browse/CRM-10384 for your reference

This will be fixed soon.

-Yashodha
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: Event Reminders not working - Reproduced on Demo Site
June 15, 2012, 02:07:11 am
Yashodha Chaku,

Your patch for CRM-10384 fixes the problem I had, but I'm having a few other issues. See http://forum.civicrm.org/index.php/topic,25025.msg105530.html#msg105530 for details

Thanks,

Ken

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Event Reminders not working - Reproduced on Demo Site

This forum was archived on 2017-11-26.