Currently 18:23:04 GMT

(Login | Register)

Owner: Valery Dachev

Type: WPMU Plugin

Created: 2007-05-13 10:14:58

Last Modified: 2008-05-15 11:04:15


wpmu-signup-captcha-1.3.zip (419 download(s))

wpmu-signup-captcha-1.2.zip (2017 download(s))

wpmu-signup-captcha-1.1.zip (86 download(s))

wpmu-signup-captcha-1.0.zip (118 download(s))

WPMU-Signup-Captcha is a plugin to add a captcha image to your WordPress MU new blog/user registration form in order to prevent spambots from registering in your website. It doesn't require any file modification. Just copy the whole directory structure to the root of your WordPress MU installation. Note that this plugin works with versions r925 and above! The latest version fixes a nasty bug setups with a PHP optimizer enabled. If you experience any problems with the old version try upgrading. Note: The patch installs a plugin in the mu-plugins/ directory. This means the plugin doesn NOT appear in your plugin management screens.



Posted 2007-05-15 05:45:00 by skcsknathan001.

Sorry this doesn't work.
There is no captcha displayed and no input box. But the sign up page is displayed again even after filling up username and email address and pressing next >>


Posted 2007-05-15 06:53:42 by Valery Dachev.

I use this plugin on two sites: BgIT.net and BlogHub.org and it works perfectly. Do you use the latest WordPress MU release ? You can use this plugin in versions r925 and later, as the "signup_extra_field" handler was added with Changeset 925.


Posted 2007-05-15 07:22:10 by Valery Dachev.

I've added version 1.1 of the plug-in with some cosmetic fixes. I've fixed the error visualization and moved one session_start() call in the validation function.


Posted 2007-05-15 07:35:35 by bishop.

Valery, I've got this error message trying to sign up at my lank.ru site: Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /data/home/bishop/lankru/wp-blog-header.php:22) in /data/home/bishop/lankru/wp-content/mu-plugins/wpmu-signup-captcha.php on line 26 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /data/home/bishop/lankru/wp-blog-header.php:22) in /data/home/bishop/lankru/wp-content/mu-plugins/wpmu-signup-captcha.php on line 26 But the captcha is shown.


Posted 2007-05-15 21:02:43 by Valery Dachev.

bishop, for some reason there is already output sent before the plugin is loaded in your setup. I have an idea to fix that, but I can't reproduce it on my sites. Could you contact me on e-mail (valery-at-bgit-dot-net), so I can send you a version to test with ?


Posted 2007-05-16 17:21:12 by ChrisW.

I think it doesn't remember the entered Captcha code when it gets to the second page of the "Gimme a blog" option. I fixed this with (in v1.0, but v1.1 still seems to have the problem) function user_signup_captcha_filter($content) { if (!empty($_POST['captcha'])) $_SESSION['entered_captcha'] = $_POST['captcha']; if(empty($_SESSION['entered_captcha']) || $_SESSION['captcha'] != $_SESSION['entered_captcha']) $content['errors']->add('captcha', __('Please enter correct verification number.')); return $content; } There's also a typo: "maxlenght" instead of "maxlength". I added an alt="Captcha code" for the image and some text suggesting an e-mail address to send requests to for those that can't use the Captcha, for accessibility.


Posted 2007-05-16 20:43:44 by Valery Dachev.

@ChrisW: Thanks to your note. I've applied your patch but there's a bit of testing going on by bishop so I'll release it as soon as it is finished.


Posted 2007-05-16 21:54:21 by Valery Dachev.

I've just uploaded version 1.2 with the corresponding fixes and credits. Have fun !


Posted 2007-05-20 04:01:46 by skcsknathan001.

Oh yes, my version is r910. That's why I don't see any captcha. I had new blog signup problem with r971. So I downgraded to r910. I'll wait and upgrade


Posted 2007-06-29 01:32:55 by exedgeman.

I loaded the plug-in. The pages loads but it hangs at it tries to load the captcha image.


Posted 2007-06-29 01:36:50 by exedgeman.

I loaded the plug-in. The pages loads but it hangs at it tries to load the captcha image.


Posted 2007-07-04 00:46:05 by phredcode.

exedgeman: sounds like you're missing the graphics library needed to generate the image. Try: curl -I http://your-site.dom/wp-captcha.php Should come back with something like: ????JFIF?CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), default quality ....


Posted 2007-07-07 22:34:21 by mrjcleaver.

You mention a graphics library needed but don't say which one or where we should get it from. Is there a thread about this, or how about an error message?


Posted 2007-07-07 23:24:29 by mrjcleaver.

I get back Fatal error: Call to undefined function imagettfbbox() in /home/.../public_html/blogs/wp-captcha.php on line 38
http://www.phpfreaks.com/phpmanual/page/function.imagettfbbox.html says: This function requires both the GD library and the FreeType library. Like http://www.mail-archive.com/php-install@lists.php.net/msg14586.html phpinfo showed GD was installed but FreeType is not.


Posted 2007-07-20 10:42:45 by Valery Dachev.

You can get the actual error message it you open the image URL in a separate browser window/tab. Yes, this plugin requires the GD and FreeType libraries which are available in the most of the Linux distributions in order to generate the image and put the text in it. For Windows you can visit the following links: LibGD and FreeType If your WordPress MU installation is in hosting service provider, ask them to install those PHP extensions.


Posted 2007-08-01 08:08:39 by Tim.

Works fantastic, also using the security question with it too. Thanks for this, your a star!!!


Posted 2007-08-17 15:42:03 by MusicTeacher.

This is the best plugin I've installed on our site! Thank you.


Posted 2007-09-02 02:35:38 by thesysop.

I plug it in and the graphic shows up great but every time I type the number in it tells me to type the correct number in


Posted 2007-10-14 05:32:41 by PG.

There was a problem generated by this script for me, it did however prevent you from signing up / adding a blog if you didn't enter in the code. 12-Oct-2007 01:35:30] PHP Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/website/public_html/blog/wp-captcha.php on line 52 I don't know why it was screwing stuff up, but if you added a blog while this was active, you could never log in regardless of how you wanted to, the way the user or cookie or blog was created was just slightly off. I changed the password by hand in the db, and by WP site admin forms and couldn't get anything to work. Deleted the plugin and created a new blog and everything worked finel. I really wanted to use this.


Posted 2007-11-15 07:35:28 by Valery Dachev.

@Tim, @MusicTeacher: Thank you, guys! @thesysop: It is probably some kind of a cookie problem. @PG: Unfortunately you haven't posted the whole error message. I could help if you paste it all - the exact line where the error is generated (it's at the end of that error message). I suppose WordPress MU for some reason is trying to tune php session limiter via the session_cache_limiter() function somewhere after the plugin has made a call to session_start()...


Posted 2007-12-07 04:37:31 by moose123.

Hello, I have installed this plugin in both my WPMu plugins directory and in the root, as you suggest, but I still can't see it in my Plugin Management list. Can you suggest what I might be doing wrong? Thanks in advance. Moose


Posted 2007-12-20 06:16:50 by Shaythong.

Hi @Valery and anyone: I see a error_log and it includes: [20-Dec-2007 00:11:53] PHP Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/web/public_html/wp-captcha.php:44) in /home/web/public_html/wp-captcha.php on line 52 Line 52 on that page: session_start();


Posted 2007-12-20 06:20:38 by Shaythong.

I've got a fix for the PHP Warning session_start() problem in a error_log file. Open wp-captcha.php: Go to line 52, delete the line. Go to the top and find


Posted 2007-12-20 06:20:50 by Shaythong.


Posted 2008-02-28 23:58:46 by simos.

I've just look to my eaccellerator log and the plugin is loaded from every blog. Isn't better putting it in plugins folder an make it load only from the main site ?


Posted 2008-02-29 03:48:08 by gmorehou.

I'm also getting the line 52 cache limiter errors on wp-captcha.php because it's starting a session before WPMU does. I'm also running eAccelerator. A day or so after I installed this plugin, pages on the backend started taking a very long time to load, on the order of 20 seconds when clicking to write a post, etc. Disabling this plugin fixed it.


Posted 2008-05-15 11:05:57 by Valery Dachev.

Sorry for not visiting this page for some time and respectively not answering your comments. Feel free to write me bug reports to the e-mail provided in the patch archive. I've just uploaded a new version when the mentioned bug is hopefully fixed. Looking for your feedback. Thank you!


You must be registered and logged in to post comments. Not registered? Click here to get your free account!