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

    (@gvectors-team)

    Please navigate in Dashboard to Comments > Settings > Hide/Show Tab and change CAPTCHA generation type to “use wordpress session” then ave it, delete all caches and do Ctrl+F5 on post front-end.

    Thread Starter bradmaclean

    (@bradmaclean)

    I had it set to “use wordpress session” so I set it to the other option – use file system. That seemed to fix the problem but not before my homepage got deleted for some reason. Not sure if it is related but as soon as I made the change then purged cache it went missing. I’m 100% positive I did not make any other changes. I went to will2walk.org and my homepage was missing. Have you heard of this happening before?

    Plugin Author gVectors Team

    (@gvectors-team)

    Please change it back to session and test again or you can deactivate it. wpDiscuz doesn’t have any chance to affect your home page.

    Thread Starter bradmaclean

    (@bradmaclean)

    changed it back to “session” and still getting invalid captcha every time. please advise.

    Plugin Author gVectors Team

    (@gvectors-team)

    I just asked to change it back to see if the home still affected or not. Please use the file mode. The session doesn’t work for you.

    Hi,
    I have installed the plugin and I had selected ‘use wordpress session’ to generate captcha image.
    N.B: My thing has been hosted at Pantheon, so you can understand I can’t change any file/folder permission at test and live instances.
    Though, I had chosen ‘use wordpress session’ to get the usual result properly at dev.
    But, every time I try to validate the captcha, it says Invalid Captcha error!
    I have been digging the code and found the session variable $_SESSION[‘wpdiscuzc’][$key] doesn’t get evaluated at utils/captcha/captcha.php.
    $sCaptcha = isset($_SESSION[‘wpdiscuzc’][$cnonce]) ? $_SESSION[‘wpdiscuzc’][$cnonce] : false; at forms/wpdFormAttr/Field/DefaultField/Captcha.php should carry the value of $_SESSION[‘wpdiscuzc’][$key].
    So while validating manual entry (i.e the captcha string we put at the comment form) with the session value, it return false i.e satisfying
    if (!$sCaptcha || md5(strtolower($captcha)) !== $sCaptcha) {
    $messageArray[‘code’] = ‘wc_invalid_captcha’;
    wp_die(json_encode($messageArray));
    }
    end error appears.
    So, is there any solution at your end?
    N.B: I can debug print_r($_SESSION); at forms/wpdFormAttr/Field/DefaultField/Captcha.php but do receive nothing at utils/captcha/captcha.php!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Getting Invalid Captcha code every time’ is closed to new replies.