• Resolved bep_11

    (@bep_11)


    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 to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Franky

    (@liedekef)

    Seems to work as expected here … is php-gd installed and working?

    Thread Starter bep_11

    (@bep_11)

    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

    (@bep_11)

    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] => [email protected]
    [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

    (@liedekef)

    Can it be that your recaptcha plugin is causing this? I’ll test myself this evening …

    Plugin Author Franky

    (@liedekef)

    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

    (@bep_11)

    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.