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 CiviCase (Moderator: Dave Greenberg) »
  • Notifications not being sent
Pages: [1]

Author Topic: Notifications not being sent  (Read 633 times)

robbrandt

  • I post occasionally
  • **
  • Posts: 89
  • Karma: 0
  • CiviCRM version: 4.0.7
  • CMS version: Drupal
  • MySQL version: 5.1.41-3ubuntu12.9
  • PHP version: 5.3.6
Notifications not being sent
November 13, 2014, 12:00:11 pm
Hi, we are just starting to experiment with CiviCase.  Using Drupal 7 and CiviCRM 4.5.2.

I see that there is the ability to "Send a Copy" when an activity is updated.  This would be very useful, but it doesn't appear to work.  Email is working in all other aspects of our installation, both bulk and individual emails.  What are the dependencies for this to work?  Only if particular parts of the activity are updated?  Is there a scheduled job that needs to run?

Thanks

demeritcowboy

  • Ask me questions
  • ****
  • Posts: 570
  • Karma: 42
  • CiviCRM version: Always the latest!
  • CMS version: Drupal 6 mostly, still evaluating 7.
  • MySQL version: Mix of 5.0 / 5.1 / 5.5
  • PHP version: 5.3, usually on Windows
Re: Notifications not being sent
November 13, 2014, 10:11:59 pm
Check CiviCRM.log in sites/default/files/civicrm/ConfigAndLog for any info/errors. Assuming the recipient contact has an email it should work. We use it all the time, but haven't upgraded to 4.5 yet.

e_mason

  • I post occasionally
  • **
  • Posts: 65
  • Karma: 1
  • Eliot Mason
  • CiviCRM version: 4.05
  • CMS version: Drupal 7
  • MySQL version: 5.1xx
  • PHP version: 3.53
Re: Notifications not being sent
November 17, 2014, 02:41:33 am
I'm working the same problem across 4.5.3 and 4.5.4 (demo site) and assuming that the email system works (e.g. the "assign activity to" email is sent from the case) have traced it to errors in CRM/Case/Form/Activity.php

Basically the problem is that the array of _relatedContacts is two dimensional, but the calls to it use just one dimension

line 658 reads
Code: [Select]
if (isset($id) && array_key_exists($id, $this->_relatedContacts) && isset($this->_relatedContacts[$id]['email'])) {

and it should read
Code: [Select]
if (isset($id) && array_key_exists($id, $this->_relatedContacts) && isset($this->_relatedContacts[$id][$value]['email'])) {

This patch works if you select just ONE role to send a copy to.  If you select multiple roles, it fails because the _relatedContacts array isn't assembled properly (instead of nesting the dimensions, the second dimension is appended - thus there are repeating elements for $id and the various tests of content in _relatedContacts fail).


e_mason

  • I post occasionally
  • **
  • Posts: 65
  • Karma: 1
  • Eliot Mason
  • CiviCRM version: 4.05
  • CMS version: Drupal 7
  • MySQL version: 5.1xx
  • PHP version: 3.53
Re: Notifications not being sent
November 17, 2014, 02:49:04 am
Note - in 4.5.2 line 658 uses a two-dimensional call so it should work (but there's some other problem in there that is preventing email sends).

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Notifications not being sent
November 17, 2014, 12:12:31 pm
I reproduced this on my local 4.5 site w/ define( 'CIVICRM_MAIL_LOG', '1' ); setting (after verifying other emails are being output to disk properly).

Issue filed here:
https://issues.civicrm.org/jira/browse/CRM-15611
Protect your investment in CiviCRM by  becoming a Member!

e_mason

  • I post occasionally
  • **
  • Posts: 65
  • Karma: 1
  • Eliot Mason
  • CiviCRM version: 4.05
  • CMS version: Drupal 7
  • MySQL version: 5.1xx
  • PHP version: 3.53
Re: Notifications not being sent
November 18, 2014, 09:57:01 am
Patch is available on Jira.  Works on 4.5.3, released with 4.5.4 I suppose.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Notifications not being sent
November 19, 2014, 10:48:10 am
Yes, fix is included in 4.5.4.
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviCase (Moderator: Dave Greenberg) »
  • Notifications not being sent

This forum was archived on 2017-11-26.