突然eFormがエラーを吐き出すようになりました
Posted: 2012年3月14日(水) 19:24
今まで正常に動いていたeFormが突然エラーを吐き出すようになってしまいました。
こちらで何かを弄った記憶はありません。
一通り調べて見たのですが原因が改名できなかったため、ご教授お願いいたします。
【エラーメッセージ】
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error: Function split() is deprecated
Error type/ Nr.: - 8192
File: /home/sites/heteml/users85/t/u/r/turuncu/web/shop/olive/manager/includes/controls/class.phpmailer.php
Line: 470
Line 470 source: $toArr = split(',', $to);
【Line470近辺のコード】
-----
ご利用のサーバ:heteml
Webサーバのバージョン :
PHPのバージョン :5.3
データベースのバージョン :MySQL5
MODXのバージョン :1.0.5J-r5
ブラウザ :Chrome
-----
こちらで何かを弄った記憶はありません。
一通り調べて見たのですが原因が改名できなかったため、ご教授お願いいたします。
【エラーメッセージ】
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error: Function split() is deprecated
Error type/ Nr.: - 8192
File: /home/sites/heteml/users85/t/u/r/turuncu/web/shop/olive/manager/includes/controls/class.phpmailer.php
Line: 470
Line 470 source: $toArr = split(',', $to);
【Line470近辺のコード】
コード: 全て選択
/**
* Sends mail using the PHP mail() function.
* @access private
* @return bool
*/
function MailSend($header, $body) {
$to = '';
for($i = 0; $i < count($this->to); $i++) {
if($i != 0) { $to .= ', '; }
$to .= $this->AddrFormat($this->to[$i]);
}
$toArr = split(',', $to);
$params = sprintf("-oi -f %s", $this->Sender);
if ($this->Sender != '' && strlen(ini_get('safe_mode')) < 1) {
$old_from = ini_get('sendmail_from');
ini_set('sendmail_from', $this->Sender);
if ($this->SingleTo === true && count($toArr) > 1) {
foreach ($toArr as $key => $val) {
$rt = @mail($val, $this->EncodeHeader($this->SecureHeader($this->Subject)), $body, $header, $params);
}
} else {
$rt = @mail($to, $this->EncodeHeader($this->SecureHeader($this->Subject)), $body, $header, $params);
}
} else {
if ($this->SingleTo === true && count($toArr) > 1) {
foreach ($toArr as $key => $val) {
$rt = @mail($val, $this->EncodeHeader($this->SecureHeader($this->Subject)), $body, $header, $params);
}
} else {
$rt = @mail($to, $this->EncodeHeader($this->SecureHeader($this->Subject)), $body, $header);
}
}
if (isset($old_from)) {
ini_set('sendmail_from', $old_from);
}
if(!$rt) {
$this->SetError($this->Lang('instantiate'));
return false;
}
return true;
}
ご利用のサーバ:heteml
Webサーバのバージョン :
PHPのバージョン :5.3
データベースのバージョン :MySQL5
MODXのバージョン :1.0.5J-r5
ブラウザ :Chrome
-----