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
|
Posted: 08 May 2013 04:21 AM |
|
|
|
Hi, have upgraded to EE 2.6.1 and am getting the following error when trying to send mail:
Fatal error: Call 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
|
Posted: 08 May 2013 06:30 PM |
# 1
|
|
|
I’m getting the same error
|
|
|
Scott Daniel
|
Posted: 08 May 2013 11:32 PM |
# 2
|
|
|
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
|
Posted: 09 May 2013 12:05 AM |
# 3
|
|
|
Hi Scott,
Thanks for your help, we just need to get the developer to update their codes on Firemail
|
|
|
PutYourLightsOn
|
Posted: 09 May 2013 06:56 AM |
# 4
|
|
Developer
|
have fixed this in version 1.8.4
|
|
|
YM
|
Posted: 09 May 2013 06:25 PM |
# 5
|
|
|
Ben,
I’ve downloaded the update via your website using my serial code and email address, but seems to get v1.8.2
|
|
|
PutYourLightsOn
|
Posted: 10 May 2013 04:30 AM |
# 6
|
|
Developer
|
please try now
|
|
|
YM
|
Posted: 12 May 2013 06:17 PM |
# 7
|
|
|
Thanks, all good!
|
|
|