• Home
  • About 概要
  • Service できること
  • Drone 空撮
  • Blog ブログ
  • Privacy Policy
お問い合わせ
CONTACT INFORMATION
三重県松阪市
嬉野津屋城町1355−4
0598-30-5698
月~金曜日 9:00~18:00
Tweets by aquacube
  • Home
  • About
  • Service
  • ドローン・空撮
  • ブログ
  • Privacy Policy
お問い合わせ
To Blog

WordPress 3.4へアップグレードでContact Form 7が送信エラーになる場合の対処方法

2012.06.25
-
WordPress

WordPressを最新バージョン3.4へアップグレードすると一部のサーバーではContact Form 7が送信できなくなるようです。
PHPがセーフモードで動作しているサーバーで起こる不具合らしく、WordPress本体のバグなのか、Contact Form 7のバグなのかよくわかりません。

対処方法はサーバーのPHP設定ができる場合はセーフモードをOFFに、
できない場合は wp-includes/class-phpmailer.phpを以下のように修正します。

class-phpmailer.php 763行目、769行目の  , $params を削除。
以下の-行を+行のように修正します。

[crayon]
    } 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);
+          $rt = @mail($val, $this->EncodeHeader($this->SecureHeader($this->Subject)), $body, $header);
          // implement call back function if it exists
          $isSent = ($rt == 1) ? 1 : 0;
          $this->doCallback($isSent, $val, $this->cc, $this->bcc, $this->Subject, $body);
        }
      } else {
–        $rt = @mail($to, $this->EncodeHeader($this->SecureHeader($this->Subject)), $body, $header, $params);
+        $rt = @mail($to, $this->EncodeHeader($this->SecureHeader($this->Subject)), $body, $header);
        // implement call back function if it exists
        $isSent = ($rt == 1) ? 1 : 0;
        $this->doCallback($isSent, $to, $this->cc, $this->bcc, $this->Subject, $body);
[/crayon]

http://core.trac.wordpress.org/attachment/ticket/20970/20970.patch

tracにTicketがあったので
次回のアップデートで修正されると思います。

PREVIOUS POST
WordPressで投稿した画像のaltとtitle属性を削除したい
NEXT POST
WordPressでフロントページを固定ページに設定するとページングができないときの対処方法
category
  • All
  • News
  • Tips
  • WordPress
archives




LATEST POSTS
  • 2022.08.01
    2022年度夏期休業のお知らせ
  • 2021.12.24
    年末年始の休業のお知らせ
  • 2021.07.21
    7月22日(木)~7月26日(日)休業のお知らせ
GET CONNECTED

Copyright - AQUACUBE

WordPress 3.4へアップグレードでContact Form 7が送信エラーになる場合の対処方法 | ホームページ制作  三重- AQUACUBE(アクアキューブ)