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 Drupal Modules »
  • Drupal Webform Integration »
  • Activity Assignee email not being sent.
Pages: [1]

Author Topic: Activity Assignee email not being sent.  (Read 1115 times)

pmoz

  • I post occasionally
  • **
  • Posts: 101
  • Karma: 2
  • CiviCRM version: 4.4.0, 4.5.3
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.68
  • PHP version: 5.4.9
Activity Assignee email not being sent.
March 26, 2015, 02:54:51 pm
Hi all,

I've got a civi-enabled webform with two civi contacts.

The first is the logged on user and the second is an optional Activity Assignee that the user can enter their civi full name to find who should get the email copy of the activity.  In the civ tab of the webform, under activity, the Activity Assignee is selected as user 2.

Everything works swimmingly, except the actual email never gets sent out.

Drupal can send mail, civi can send mail.

If I add the email field for contact 2 to the webform, I can see that the email populates with the correct email address.
When I submit the form with the email address I get this error in dblog:

Quote
   The CiviCRM "activity create" API function returned the error: "Invalid Activity Id" when called by line 1233 of C:\inetpub\wwwroot\sites\all\modules\webform_civicrm\includes\wf_crm_webform_postprocess.inc with the following parameters: "Array ( [target_contact_id] => Array (
  • => 2 ) [activity_type_id] => 76 [status_id] => 2 [priority_id] => 2 [activity_date_time] => 20150326140200 [duration] => 5 [details] => [assignee_contact_id] => 6 [id] => 42716 [check_permissions] => [version] => 3 ) "

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Activity Assignee email not being sent.
March 31, 2015, 07:17:24 am
Strange. Did you check to see whether "42716" is a valid activity id?
Try asking your question on the new CiviCRM help site.

pmoz

  • I post occasionally
  • **
  • Posts: 101
  • Karma: 2
  • CiviCRM version: 4.4.0, 4.5.3
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.68
  • PHP version: 5.4.9
Re: Activity Assignee email not being sent.
March 31, 2015, 07:59:35 am
It is not even close to correct.

Largest activity id is 124.

Activity id 76 is valid however.

Hold on, misunderstood the question.
« Last Edit: March 31, 2015, 08:01:25 am by pmoz »

pmoz

  • I post occasionally
  • **
  • Posts: 101
  • Karma: 2
  • CiviCRM version: 4.4.0, 4.5.3
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.68
  • PHP version: 5.4.9
Re: Activity Assignee email not being sent.
March 31, 2015, 08:13:32 am
Sorry for the confusion, the activity id is correct.

pmoz

  • I post occasionally
  • **
  • Posts: 101
  • Karma: 2
  • CiviCRM version: 4.4.0, 4.5.3
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.68
  • PHP version: 5.4.9
Re: Activity Assignee email not being sent.
March 31, 2015, 08:25:29 am
Also see this twice in dblog when trying to send the message, one references 1250 and one 1251:

Quote
Notice: Undefined index: act in wf_crm_webform_postprocess->processActivities() (line 1250 of C:\inetpub\wwwroot\sites\all\modules\webform_civicrm\includes\wf_crm_webform_postprocess.inc).

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Activity Assignee email not being sent.
June 08, 2015, 02:57:09 pm
Fixed. See https://www.drupal.org/node/2502685
Try asking your question on the new CiviCRM help site.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules »
  • Drupal Webform Integration »
  • Activity Assignee email not being sent.

This forum was archived on 2017-11-26.