Captcha problem

May 2014 WordPress Theme
GK User
Wed Sep 24, 2014 3:20 pm
Hello,

I have problem with "contact page". When i add all info in form(name, message, send to me, etc...) and click "send". I see error("The reCAPTCHA wasn't entered correctly. Go back and try it ")

Ur template has this problem too, try to send message:
http://gavick.com/demo/wordpress/storefront/?page_id=74

So, how i can repair this?
User avatar
Junior Boarder

GK User
Thu Sep 25, 2014 7:05 am
Hi,

I've checked this page, add all information with captcha code and I have message:
"Your message was sent to us successfully."

I don't understand, you don't want to have captcha validation?
User avatar
Moderator

GK User
Thu Sep 25, 2014 11:26 am
Hello,

First i see:
Image

and i click "send message"

Now back to top of page(so someone can think message was send sucessfully). When i scroll down I see:

After this i see:

Image

How u can see it can make problem for potential client:
-Why I dont see captcha on the beginnig?
-It disable "Send copy of the message to yourself ".
User avatar
Junior Boarder

GK User
Thu Sep 25, 2014 10:12 pm
Ok, I understand now, but I can't reproduce this issue. I can see the captcha at the beginning, which browser version are you using?
User avatar
Moderator

GK User
Tue Oct 07, 2014 1:20 am
Hello, I have a very similar problem at my website running WP 4.0 Shop&Buy Version: 1.3.

My captcha key has been entered in the Template Options but when navigating to any page with Contact Form template it won't show the captcha input.

I've discovered this is because Google's Captcha is not loading secure image for the captcha code but my site is https-only.

Screen-Shot-2014-10-06-at-21.12.48.png


This is what I did:

I discovered by looking at gavern/classes/class.recaptchalib.php that recaptcha_get_html function signature accepts optional parameter $use_ssl

So I went to Edit Themes and edited the template.contact.php template, looked for recaptcha_get_html($publickey) and added the true parameter:

Code: Select all
echo recaptcha_get_html($publickey, true);


It didn't work, so I went to gavern/classes/class.recaptchalib.php and "forced" the parameter to true:

Code: Select all
function recaptcha_get_html ($pubkey, $error = null, $use_ssl = true)


Nasty, but it worked. I'm open to suggestions on why adding "true" didn't worked as a parameter.

Useful link: https://developers.google.com/recaptcha/docs/tips
Useful tip: Use firebug!

2014-03-25-07-10-44-1aa0ef.png
User avatar
Senior Boarder

GK User
Tue Oct 07, 2014 8:04 am
Hello @nvhsac,

Thank you for your research :)

Please try to change the code from template.contact.php file into:

Code: Select all
echo recaptcha_get_html($publickey,null,true);


because this function have 3 parameters.
User avatar
Moderator

GK User
Mon Oct 13, 2014 3:37 pm
Piotr Kunicki wrote:Hello @nvhsac,

Thank you for your research :)

Please try to change the code from template.contact.php file into:

Code: Select all
echo recaptcha_get_html($publickey,null,true);


because this function have 3 parameters.


I try to change code:
from

Code: Select all
echo recaptcha_get_html($publickey);


to

Code: Select all
echo recaptcha_get_html($publickey,null,true);


but still i have the same problem.
User avatar
Junior Boarder

GK User
Mon Oct 13, 2014 9:27 pm
@skarbona, could you provide your website URL? (here or via PM)
User avatar
Moderator

GK User
Sat Dec 20, 2014 3:21 pm
Hello Piotr

I believe I have the same issue as described here. It took a while to work out what my client was saying as I could see and enter the reCAPTCHA successfully just as you describe.

However it turns out they are using Firefox browser (I am on Chrome) and the reCAPTCHA is initially not visible. It only shows after hitting send when the error alert box also shows

URL:
http://kamil.edu.af/contact-page/

Thanks,
Steven
User avatar
Fresh Boarder

GK User
Mon Dec 22, 2014 10:22 am
Hi,
Add the following code into the theme’s css/override.css file (make sure to enable the “Use the override.css file” option in Template options > Advanced in the WordPress backend)

Code: Select all
#recaptcha_widget_div {
   clear: both;
}
#gk-contact {
   overflow: visible;
}

Probably tommorow themes upadte with new version of recaptcha will be used, and this issue should be also fixed.
User avatar
Moderator


cron