iDeasilo

FAQ for Contact Form 7 1.8

I answer two questions that I receive often since Contact Form 7 1.8 was released.

1) If you get errors like this:

Warning: imagettftext() [function.imagettftext]: Could not read font in /…/wp-content/plugins/contact-form-7/captcha/captcha.php on line 61

That’s probably the same as James reported before.

The problem is because of the FTP method used to transfer the new files being ASCII when it should be auto to cover the included font files that are binary. (I think that’s right!)

To solve the problem I downloaded the original ZIP file myself and FTP uploaded the font files to wp-content/plugins/contact-form-7/captcha/gentium/.

This issue is already mentioned in WordPress Trac ticket #7568, so anticipated to be fixed in the future version of WordPress.

2) If the CAPTCHA doesn’t show up after upgrading to 1.8.x, please make sure wp-contents/uploads/wpcf7_captcha folder exists and is writable. Since Contact Form 7 1.8, CAPTCHA images are placed in that folder.


(以下、日本語)

Contact Form 7 1.8 リリース以降に頻繁に寄せられている質問に回答します。

1) 以下のようなエラーが出ている場合は、

Warning: imagettftext() [function.imagettftext]: Could not read font in /…/wp-content/plugins/contact-form-7/captcha/captcha.php on line 61

プラグインの自動アップグレードの際にフォントファイルがテキストモードで転送されてしまっていることが原因ですので(この問題は WordPress 本体の問題ですでに WordPress Trac ticket #7568 にて報告されています)、wp-content/plugins/contact-form-7/captcha/gentium/ 以下にあるフォントファイルを FTP で(バイナリモードで!)再度転送すると直ります。

2) 1.8.x にアップグレード後、CAPTCHA が表示されなくなったという場合は、wp-contents/uploads/wpcf7_captcha が書き込み可能になっているか確認してみてください。Contact Form 7 1.8 からそこに CAPTCHA の画像を置くようになっています。