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 の設定によっては別のフォルダが使われます。

180 replies on “Really Simple CAPTCHA”
Hi,
I have using contact form 7 1.9.3, I want addin Really Simple CAPTCHA, how to do? The setting unable no show the Really Simple CAPTCHA.
petmyforum, you don’t have to do anything. Contact Form 7 1.9.3 includes the Really Simple CAPTCHA out of the box. You need it only when you use CAPTCHA with Contact Form 7 1.9.4 (next version) and greater.
Thanks for updating your contact form. However, with the new Really Simple Captcha I get a safe-mode restriction error:
The directory is writable and it worked without problems with the previous version.
Any hints?
Chris, the error seems to mean that the script can’t create wp-content/images/wpcf7_captcha directory. Check again if the wp-content/images directory is surely writable.
Seems that there indeed was a problem with the directory permissions. I deleted and re-created the directory and then it worked.
Thanks and sorry for the bandwidth.
Call to undefined function: imagettftext() in …wp-content/plugins/really-simple-captcha/really-simple-captcha.php on line 96 !! What is going wrong???
I installed the new version, but it dosent work’s. No CAPTCHA image is seen and no messages in the logfiles.
I use the new Version from Contact Form 7.
Please use elements for the text labels of checkboxes and radio buttons, so users can click these to activate the checkbox.
See This [1] for a patch for the latest release of wp-contact-form-7.php (version contact-form-7.1.9.4.zip)
1. http://wordpress.org/support/topic/255464?replies=1
Thank you!
hello
does the contact form 7 update does need to have the separate captcha?
why are you making it more complicated??
This new and required plugin does NOT work! There is NO captcha image… I had to disable captcha for now.
I am using Contact Form 7 v 1.9.4 on all WP blogs.
Worse, I had to restore a BACKUP to make the site(s) work again..
Anybody an idea about another plugin?
Hi, is there a way to make the captcha longer than the default of 4 characters?
Lisa, yes, there is. The
char_lengthinstance variable ofReallySimpleCaptchaclass manages the length of characters. Change the value as you like.Hello, im getting such error while trying to apply captcha to contact form:
Fatal error: Call to undefined function imagettftext() in /vhost/home/nzs/nzs.pk.edu.pl/var/www/html/wp-content/plugins/really-simple-captcha/really-simple-captcha.php on line 96
Can You please send me tip how can i fix it? ;)
Hi Miyoshi, I changed the length to 5 and it truncates the captcha image (displays half of the last character) – what else do I need to change? Thanks.
@miyoshi, why do you reply to Lisa and not to my post/problem? Could you please reply since the problem still persists. Thank you.
Separating the CAPTCHA from the plugin actually caused me to have bigger problems. Especially when email from the blog stopped – because nobody could send messages. I have had to downgrade to the older version to get the functions working again.
I hope this input experience is helpful? Are you able to put the two back together in the future?
Thanks for letting me speak out with my opinion. :)
Steven, there is a WordPress forum: http://wordpress.org/support/ If you haven’t already, you might try posting your question there too. In all fairness to Miyoshi, your last post here did mention that you were looking for another plugin. I haven’t had any problems yet with the plugin, it works fine in WP 2.7.1. I’m assuming you added the Captcha tag to your form in the correct format ;) If the tag looks okay then it could be a conflict with your theme.
I fixed your contact-form-7
Then I fixed your really-simple-captcha
And now while the contact form appears at
http://info.faridabadmetro.com/?p=2381
the information never gets submitted and I get
“Validation errors occurred. Please confirm the fields and submit it again.”
A small message also flashes that says “Your Entered Code is Incorrect”
Please Help
Jazz, it is the intended work of CAPTCHA. You don’t have to use CAPTCHA if you don’t need it.
Lisa, yes, you need to adjust
img_size,base,font_size, andfont_char_width. This plugin is so simple that it doesn’t do it automatically.Dear Miyoshi-
First a big THANK YOU for putting this together.. very awesome of you to help out the WordPress community.
I have the same issue as Jazz..
I get “Validation errors occurred. Please confirm the fields and submit it again.”
A small message also flashes that says “Your Entered Code is Incorrect”
I’m entering the correct CAPTCHA into the form.
Any idea?
@Lisa and @Miyoshi,
The plugin Role Scoper was the problem. This plugin automatically got disabled after updating which made the Captcha stopped working.
Took me some time to get to this solution.
Thanks a lot for your reply.
Hello,
I have the Contact Form 7 and Really Simple Captcha plugins successfully installed — and working in my form. However, the answer entered for the captcha — even when correct — always says “Your Entered Code is Incorrect” and won’t allow the form to submit. So, it seems like it’s not actually validating properly. Any thoughts?
Thanks, Courtney
Thank you for this plugin, I got it working perfectly with the Contact Form, after referencing the FAQ. I’d like to integrate it with WP Wall (http://www.prelovac.com/vladimir/wordpress-plugins/wp-wall), although I’m having some problems getting it to work. I read through your examples, although I don’t think that I’m using them correctly. Is there just a simple way to open the WP Wall PHP file, paste some code for the Captcha, and upload?
I have the same problem !
Miyoshi- why did you decide to go this route rather than integrating reCAPTCHA? (http://recaptcha.net/) I have seen this integrated into many other apps/plugins and it seems like a superior option?
I figured out my issue above — somehow the id numbers in the two fields (image and text) were not the same…
Now, on a second site — it’s working, except on submit the captcha image always disappears and just says “captcha.” ??
HI: The Security Code shows Capital Letters, but you must enter small letters not caps for this to work.
Is that the way it is suppose to work???
Thank you,
John
JWLW, no, it’s case-insensitive, so small letters and caps should go through.
HI: It is not case insensitive or is not working correctly. I tried several times but it did not except capital letters.
Blog link http://jwlwgardens.com
Have not tried it with internet explorer I am using Firefox.
Thanks, John
Got mine working with
contact-form-7.1.9.4
really-simple-captcha.1.0
I followed some of the suggestions in the FAQ.
I had to set the writable folder under “Settings > Miscellaneous”
and created a folder under /wp-content/uploads/wpcf7_captcha and made sure it was writable.
Thanks!
gr8 plugins……i was so badly in search for contact form..n ur plugins r life saver…using
contact-form-7.1.9.4
really-simple-captcha.1.0
thankz a lot :)
keep up d gud work :)
Hi, I hope someone can suggest a workaround/fix for my issue.
I have installed Contact Form 7 and it works fine in testing.
However, I also installed Really Simple Captcha, and the images are not showing so when I put Captcha in a form, of course it doesn’t work and the form doesn’t submit.
I do have FreeType and GD support on my server.
I have made sure the permissions on the directory
/wp-contents/uploads/wpcf7_captcha
is 755 which is the default for all directories on the server.
Note that the above directory is empty after trying to run the script.
PHP runs under my userID and safe_mode is disabled.
I checked the PHP error logs, and there are no errors showing.
I’d be appreciative of any suggestions. Thanks,
Sheila
Could somone point me in a direction of where to download and how to install GD and FreeType library?
Thanks!
I just installed this and just like the others the captcha image does not show up, instead you just see the text captcha. My server does have GD and Freetype installed so I’m not sure why this isn’t working can someone please help us?
If you are confused with how to activate the really simple captcha and then use it with Simple form 7 this is a simple how to article.
http://thehowtoguide.net/46/how-to-make-really-simple-captcha-work-on-contact-form-7
my server is using a screwy recursive directory structure. so the WP directory is above my wwwroot How do I configure the Captcha?
May I know what does this plugin do? I don’t really understand what does CAPTCHA stand for.
Regards.
Robin Lee, CAPTCHA is image of funny strings. See the description in Wikipedia. This Really Simple CAPTCHA plugin provides CAPTCHA feature for other plugins.
I see. Thanks for your information! I just knew that kind of images are some sorts of verification method. Now I know the official name.
Thank you.
Thanks for the great plugins and also to Paul (May 6, 2009 at 11:17 am)
I downloaded and installed both the form and captcha on WP 2.7.1.
Followed the instructions provided by Paul’s message here:
http://thehowtoguide.net/46/how-to-make-really-simple-captcha-work-on-contact-form-7
Working perfectly. Thanks again.
Cheers
Love using Comment Form 7 with Really Simple CAPTCHA. Nice one. Thanks!
I have this installed on several WP sites on the same server. It’s working on all but one. Why would this be?
Re: Lisa, miyoshi. For changing # of characters… img_size, img_base are arrays. How should I override these arrays? This does not work:
[captchac captcha-225 img_size:200,24]
jahshuwaa, no, it’s not related to the tag use. You need to change the plugin source code.
This might be helpful for you:
captcha.php
@miyoshi: Thanks, I will override defaults on the switch block (lines 112 – 131 at time of writing, for reader reference)
I found the solution to my problem here: http://wordpress.org/support/topic/265478
[…] Really Simple CAPTCHA by Takayuki Miyoshi. […]
I had this working on one blog and then the blog was moved to a different host – it was Windows, now I think its Linux
The captcha image doesnt appear
Looked in the code and the bit of code to display the image isnt there??