Really Simple CAPTCHA is a CAPTCHA module intended to be called up from other plugin. It was originally created for my Contact Form 7 plugin, and is now an independent, stand-alone plugin.
If you are a WordPress plugin developer and are considering putting a simple CAPTCHA into your plugin, this would be a good choice.
A Note for Contact Form 7 Users
Note: You will need this Really Simple CAPTCHA plugin installed on WordPress if you use CAPTCHA with the next (Version 1.9.4) and subsequent releases of Contact Form 7. If you don’t use CAPTCHA, you don’t have to do so.
The key reason why I’ve separated the CAPTCHA module out is to solve current problems related to the automatic upgrading of the plugin; I often receive trouble reports of failed automatic upgrades from Contact Form 7 users.
I’m guessing that the cause of the problem is in the CAPTCHA module itself. The CAPTCHA module includes font files which are relatively large binary files. It doesn’t normally cause any difficulty on most hosts; however, in some specific environments it is possible that they may cause problems.
To reduce the risk of failing automatic upgrades of Contact Form 7, I have extracted the CAPTCHA module to stand as an independent plugin. As the frequency of updating the CAPTCHA module is much less than the frequency of updating Contact Form 7, it will be less frustrating for you, even if you continue to have trouble when you upgrade the CAPCHA module.
Troubleshooting
-
CAPTCHA does not work; the image does not show up.
Really Simple CAPTCHA needs GD and FreeType library installed on your server. Ask your server administrator if they are installed.
Also, make the temporary file folder writable. The location of the temporary file folder is managed by the instance variable
tmp_dirof ReallySimpleCaptcha class. Note that the setting varies depending on the calling plugin. For example, Contact Form 7 uses wp-contents/uploads/wpcf7_captcha as the temporary folder basically, but it can use different folder depending on your settings.
See also: Tips for troubleshooting Really Simple Captcha issues
(以下、日本語)
Really Simple CAPTCHA は別のプラグインからコールされることを意図して作られた CAPTCHA のモジュールです。元は Contact Form 7 用に作ったモジュールですがこの度スタンドアロンのプラグインとして独立させました。
もしあなたがプラグインの開発者で、自分のプラグインに簡単な CAPTCHA 機能を組み込みたいなら、これを使うと便利かもしれません。
Contact Form 7 をお使いの方へ
お知らせ: 次期バージョン (1.9.4) 以降の Contact Form 7 で CAPTCHA を使用する場合にはこの Really Simple CAPTCHA プラグインのインストールが別途必要になります。CAPTCHA を使用しない場合は必要ありません。
現在、Contact Form 7 のユーザーから「プラグインの自動アップグレードに失敗する」という報告を頻繁に頂いています。CAPTCHA モジュールを分離したことの隠れた真の理由はこれの解決にあります。
自動アップグレードに失敗する原因のひとつとして考えられるのは、CAPTCHA モジュールで同梱使用しているフォントファイルが大きすぎることです。たいていのホストでは問題なく処理できる大きさではあるのですが、一部の環境で問題を生じる可能性は否定できません。
Contact Form 7 の自動アップグレード時の失敗リスクを軽減するために、CAPTCHA モジュールをパッケージの外に出すことにしました。CAPTCHA モジュールを更新する頻度は Contact Form 7 を更新する頻度と比べてずっと低いですので、あるいは今後も CAPCHA モジュールのアップグレード時につまづくことがあるかもしれませんが、それでも今よりイライラの回数は減るはずです。
トラブルシューティング
-
CAPTCHA が機能しません。画像が表示されないのです。
Really Simple CAPTCHA は GD および FreeType ライブラリを必要とします。それらがサーバーにインストールされていることをサーバー管理者にお問い合わせください。
それから、一時ファイルが置かれるフォルダが書き込み可能になっていることを確認してください。一時ファイルのフォルダの位置は ReallySimpleCaptcha クラスの
tmp_dirインスタンス変数の値で指定されます。この設定は呼び出し側のプラグインの設定により異なるので注意してください。例えば Contact Form 7 は通常 wp-contents/uploads/wpcf7_captcha を一時フォルダに使いますが、WordPress の設定によっては別のフォルダが使われます。

Leave a comment