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 CiviMail »
  • Using CiviSMTP (Moderator: shane) »
  • IMPORTANT: Patch for error when sending emails in CCRM 4.7.21 and CCRM 4.6.29
Pages: [1]

Author Topic: IMPORTANT: Patch for error when sending emails in CCRM 4.7.21 and CCRM 4.6.29  (Read 123 times)

shane

  • Moderator
  • I post frequently
  • *****
  • Posts: 265
  • Karma: 16
IMPORTANT: Patch for error when sending emails in CCRM 4.7.21 and CCRM 4.6.29
July 13, 2017, 12:44:32 am
NOTE: This issue has been fixed as of CiviCRM 4.7.22 (and CiviCRM 4.6.30 for the Long Term Support version). Please upgrade or see info below on how to fix manually.

This issue occurs when using CiviSMTP service from any CMS running CiviCRM 4.7.21 or CiviCRM 4.6.29.

The following error occurs when sending an email:

Code: [Select]
Fatal error: Call to a member function enableCrypto() on null in <path_to_drupal>/sites/all/modules/civicrm/vendor/pear/net_smtp/Net/SMTP.php on line 615
To fix this please do the following:

- Revert any custom changes made to <path_to_civicrm_module>/vendor/pear/net_smtp/Net/SMTP.php file, if any.

- Edit the same SMTP.php file and make the following change:

Replace line 615 that currently looks like this:

Code: [Select]
if (PEAR::isError($result = $this->socket->enableCrypto(true, $crypto_method))) {
with the following line:

Code: [Select]
if (PEAR::isError($result = $this->_socket->enableCrypto(true, $crypto_method))) {
(the difference is the added underscore in $this->_socket)

Then please try sending an email from the Outbound Email Settings and if that works, please try sending a bulk mailing from CiviMail to confirm that this issue has been fixed.

Email us at support@civismtp.com if you have any questions.
« Last Edit: July 13, 2017, 10:44:00 am by shane »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail »
  • Using CiviSMTP (Moderator: shane) »
  • IMPORTANT: Patch for error when sending emails in CCRM 4.7.21 and CCRM 4.6.29

This forum was archived on 2017-11-26.