1

Drupal 7, CiviCRM 4.6.25/4.7.15

When I try to send an email to an individual contact using the 'send mail' action, the triangle spins and nothing happens. Affects our production and test site.

mail() configuration check out fine, and mailings 'send test' works. Haven't extensively checked this as we haven't gone live with the site.

The log/backtrace points to /civicrm/CRM/Utils/Token.php, line 1190:

     if (empty($contactIDs)) {
      // putting a fatal here so we can track if/when this happens
      CRM_Core_Error::fatal();

I've blown out our test database and re-initialized it with sample data -- no fix.

I've also upgraded our test site to 4.7.15 and am getting the same problem, stemming from the token.php function

Stranger still, if we use the 'send now (to less than 50 people)' selection from the contact search page, email works, just not from the contact record directly.

Works:

civicrm/contact/search?_qf_Email_display=true&qfKey=2b01f498b92b4b919c45446ae38d6c5d_3790

Doesn't:

civicrm/activity/email/add?action=add&reset=1&cid=202&selectedChild=activity&atype=3
  • can you flesh out. are you sending this from the Contact > Actions, or after a search, or something else. Providing steps for someone to replicate often helps avoid people making presumptions ;-) – petednz - fuzion Jan 25 '17 at 5:23
  • Yes, the contact > actions page, the triangle icon spins and I eventually have to escape out. – dahifi Jan 25 '17 at 15:28
  • Debating whether to upgrade to 4.7, but I was using LTS for a reason. I'm using a webhost with limited access to the server. Most of my administration is through CPanel, but since the test email configuration is working I'm guessing the issue is with Civi and not my host? – dahifi Jan 25 '17 at 17:09
  • can you glean anything more by using right click in order to open the 'action' in a new tab? (that might only help you get backtrace though which you already have). in my quick test the url would look like following with XX being the target contacts cid: civicrm/activity/email/add?action=add&reset=1&cid=XXX&selectedChild=activity&atype=3 – petednz - fuzion Jan 25 '17 at 21:24
  • I've added additional information to the question. I've got a workaround, but am waiting for an invite to the bug tracker to file a formal report. – dahifi Jan 26 '17 at 16:22
0

I notice that the first line of your backTrace is line 1190 in the Token.php file, which is this:

   if (empty($contactIDs)) {
      // putting a fatal here so we can track if/when this happens
      CRM_Core_Error::fatal();
    }

Judging from the fact that it appears to happen when you are the only recipient, I'd guess that it's because of something funny about your own contact record. For example - perhaps your contact record (i.e. the one that is connected to your login) is deleted?

  • I thought so as well. Created a new contact for an alternate email address and getting the same thing. – dahifi Jan 25 '17 at 16:56
  • so on your record, you have a link back to the CMS user that you are logged in as? (which cms?) – petednz - fuzion Jan 25 '17 at 21:33
  • It's happening for other user records as well. – dahifi Jan 26 '17 at 3:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.