Module

Archived
Forum
(read-only)

FireMail

ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From PutYourLightsOn

     

Firemail Error in EE 2.6.1

Support (Resolved)

Okapi Creative
Okapi Creative

Hi, have upgraded to EE 2.6.1 and am getting the following error when trying to send mail:

Fatal errorCall to protected method CI_Email::_str_to_array() from context 'Firemail_mcp' in /chroot/home/xxxxx/xxxxxxx.com/html/xxxxxx/expressionengine/third_party/firemail/mcp.firemail.php on line 677 

Guessing this is an issue - one of very many - with the latest EE update. Unfortunately cannot roll back. Any ideas?

YM
# 1
YM

I’m getting the same error

Scott Daniel
# 2
Scott Daniel

This bug is caused by a call to a method in the CI_Email class that protected in EE. The fix to the problem is to change line 678 to the following:

    $to_array = $this->_str_to_array($to);

and then add the function below somewhere in the class:

/**
* Convert a String to an Array
*
* @param string
* @return array
*/
protected function _str_to_array($email)
{
  if ( ! is_array($email))
  {
  return (strpos($email, ‘,’) !== FALSE)
  ? preg_split(’/[\s,]/’, $email, -1, PREG_SPLIT_NO_EMPTY)
  : (array) trim($email);
  }

  return $email;
}

YM
# 3
YM

Hi Scott,

Thanks for your help, we just need to get the developer to update their codes on Firemail

PutYourLightsOn
# 4
Developer
PutYourLightsOn

have fixed this in version 1.8.4

YM
# 5
YM

Ben,
I’ve downloaded the update via your website using my serial code and email address, but seems to get v1.8.2

PutYourLightsOn
# 6
Developer
PutYourLightsOn

please try now

YM
# 7
YM

Thanks, all good!