Title: captcha not validating
Last modified: August 22, 2017

---

# captcha not validating

 *  Resolved [bep_11](https://wordpress.org/support/users/bep_11/)
 * (@bep_11)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/captcha-not-validating-2/)
 * Hello,
    thanks for your excellent plugin!
 * It seems that since the last upgrade the form captcha is not validating anymore
   i.e. it is always returning false – but the record is stored correctly.
 * code:
    #_CAPTCHAHTML{<tr><th scope=’row’>Please fill in the code displayed here:
   </th><td>#_CAPTCHA</td></tr>}
 * Do I have to adjust anything?
 * Thanks and best regards,
    Bernd
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcaptcha-not-validating-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Franky](https://wordpress.org/support/users/liedekef/)
 * (@liedekef)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/captcha-not-validating-2/#post-9431810)
 * Seems to work as expected here … is php-gd installed and working?
 *  Thread Starter [bep_11](https://wordpress.org/support/users/bep_11/)
 * (@bep_11)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/captcha-not-validating-2/#post-9437611)
 * Hello Franky,
    thanks for your answer.
 * Well, the captcha is showing and if I press Refresh it is changing.
    Do you know
   off head which program verifies the code?
 * Thanks and best regards,
    Bernd
 *  Thread Starter [bep_11](https://wordpress.org/support/users/bep_11/)
 * (@bep_11)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/captcha-not-validating-2/#post-9448125)
 * Helly Franky,
    I did some debugging. In eme_functions.php I added: … function
   eme_captcha_generate() { eme_session_start(); … $randomtext=$random1.$random2.
   $random3.$random4.$random5; $_SESSION[$sessionvar] = md5($randomtext); //debug
   $File = “eme_captcha_log1.txt”; $Handle = fopen($File, ‘w’); fwrite($Handle, “
   captchatext: $randomtext \n”); fclose($Handle);
 * …
    function eme_check_captcha($post_var,$session_var=””,$cleanup=1) { if (empty(
   $session_var)) $session_var=”captcha”; $eme_captcha_no_case=get_option(’eme_captcha_no_case’);
 * //debug
    $File = “eme_captcha_log2.txt”; $Handle = fopen($File, ‘w’); fwrite(
   $Handle, “post_var: $post_var – session_var: $session_var \n”); fwrite($Handle,“
   post value: $_POST[$post_var] – session value: $_SESSION[$session_var] \n”); 
   $par = print_r($_POST, true); $sar = print_r($_SESSION, true); fwrite($Handle,”‘
   $_POST’ array: $par \n ‘$_SESSION’ array: $sar \n”); fclose($Handle); …
 * which resulted in:
 * eme_captcha_log1.txt:
    captchatext: c7s9t
 * eme_captcha_log2.txt:
    post_var: captcha_check – session_var: eme_add_booking
   post value: – session value: ‘Array’ array: Array ( [eme_rsvp_nonce] => 638a4d238a[
   honeypot_check] => [eme_eventAction] => add_bookings [eme_register_empty_seats]
   => 0 [eme_event_id] => 131 [lastname] => tester1 [firstname] => tester1 [FIELD2]
   => test [email] => [b168@bluesky11.com](https://wordpress.org/support/topic/captcha-not-validating-2/b168@bluesky11.com?output_format=md)[
   phone] => [bookings] => Array ( )
 *  [FIELD1] => XS
    [comment] => b9z9w )
 *  ‘Array’ array: Array
    ( [cptch_login] => 1 ) ———————– I also entered the captcha
   code to the comment field – and as you can see this value is different from the
   previously created. Also, I can’t see a $_POST value for the captcha.
 * Could you check this?
    Feel free to check on the website (event 609) – but make
   sure that the entry is recognized as test.
 * Thanks and best regards,
    Bernd
 *  Plugin Author [Franky](https://wordpress.org/support/users/liedekef/)
 * (@liedekef)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/captcha-not-validating-2/#post-9448149)
 * Can it be that your recaptcha plugin is causing this? I’ll test myself this evening…
 *  Plugin Author [Franky](https://wordpress.org/support/users/liedekef/)
 * (@liedekef)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/captcha-not-validating-2/#post-9448619)
 * I tried posting: it succeeded, but the repost to show the hank-you resulted in
   a 403 forbidden (but still showed a page). I’m guessing some kind of security
   plugin?
 *  Thread Starter [bep_11](https://wordpress.org/support/users/bep_11/)
 * (@bep_11)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/captcha-not-validating-2/#post-9449497)
 * Hello Franky,
 * >I tried posting: it succeeded, but the repost to show the hank-you resulted 
   in a 403 forbidden (but still showed a page).
 * Hm, how did you check this?
    I didn’t see the 403 message, only the error page.
 * I have the following plugins: Captcha by BestWebSoft, Contact Form 7, Wordfence
   Security.
    Disabled them but this didn’t help.
 * Thanks and best regards,
    Bernd
 * For now I have disabled the Captcha …

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘captcha not validating’ is closed to new replies.

 * ![](https://ps.w.org/events-made-easy/assets/icon-256x256.png?rev=1856035)
 * [Events Made Easy](https://wordpress.org/plugins/events-made-easy/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-made-easy/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-made-easy/)
 * [Active Topics](https://wordpress.org/support/plugin/events-made-easy/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-made-easy/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-made-easy/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [bep_11](https://wordpress.org/support/users/bep_11/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/captcha-not-validating-2/#post-9449497)
 * Status: resolved