By Thomas Thrane on Saturday, 19 September 2015
Posted in Technical Issues
Likes 0
Views 1.9K
Votes 0
I have enables reCAPTCHA on my site, but it fails on submitting the form.
What can I have done wrong?
Hi Thomas,

Hm, you are right. I've made the modification to use CURL instead of file_get_contents function inside your /components/com_komento/classes/captcha/recaptcha.php and it should be working fine now even if allow_url_fopen is turn off. Can you verify it for me?
·
Friday, 25 September 2015 18:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Thomas,

What errors are you getting? Is it possible for you to provide us with the back end and FTP access to your site to check on this issue?
·
Saturday, 19 September 2015 00:32
·
0 Likes
·
0 Votes
·
0 Comments
·
It says the reCAPTCHA is not right...

Nad another thing, where do I turn off that you have to subscribe to post?
·
Saturday, 19 September 2015 01:56
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Thomas,

I am really sorry for the delay of this reply as it weekends for all of us here.

Hm, I've checked all the code and it should be working correctly. The error is coming right after komento are submitting the information to recaptcha api server and the api are returning false for every request. Can you double check if you are using the correct public and secret key for your recaptcha on komento?
·
Monday, 21 September 2015 18:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi

Don't be sorry! :-)

I have doublechecked the keys and they are correct:
See details...
·
Monday, 21 September 2015 20:14
·
0 Likes
·
0 Votes
·
0 Comments
·
What errors ?
·
Monday, 21 September 2015 23:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Like NOT VALID CAPCTHA ANSWER (in danish...)
·
Monday, 21 September 2015 23:49
·
0 Likes
·
0 Votes
·
0 Comments
·
And I also have to check "Tilmeld kommentaropdateringer" (subscribe to notifications) to submit form...
·
Tuesday, 22 September 2015 00:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Hope for a solution soon, as I have to get the site online... :-)
·
Tuesday, 22 September 2015 23:46
·
0 Likes
·
0 Votes
·
0 Comments
·
Any news on this? :-)
·
Thursday, 24 September 2015 17:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Thomas,

It took me quite some time to identify the real error behind the recaptcha issue and I finally found it after I've disabled the following plugin on your site, System - Open Graph Protocol. Below is the error that got generated when I'm trying to post a comment with recaptcha,
Warning:  file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0


It seems like your server did not enable allow_url_fopen as you can see from your backend > system > system information > php information, http://screencast.com/t/c9No7WnNTCdP hence komento does not able to fetch the content returned by google recaptcha api. Can you consult with your webhosting provider and ask them to enable "allow_url_fopen" and then clear all the cache on your site and see how it goes?
·
Friday, 25 September 2015 16:46
·
0 Likes
·
0 Votes
·
0 Comments
·
Oh, I see...
But isn't enabling allow_url_fopen bad in some way?
·
Friday, 25 September 2015 17:31
·
0 Likes
·
0 Votes
·
0 Comments
·
It works! Wuhuuu!!!! Thanks... :-)
Great service...

Will this be implemented in a future update or do I have to save the edtied file for future use?

BTW:
How come the "Send Comment" button isn't highlighted when I can post? It stays grey...
·
Friday, 25 September 2015 18:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Thomas,

You are most welcome. Yes the fix will be included in the next release of Komento.

Regarding on the submit button issue, this is actually a normal behavior where komento will always trying to perform live validation of minimum character require inside komento form where it then will make the button to automatically become enable once the requirement is met. I've helped you to turn off this feature by enabling advance mode inside your komento backend and then turn off "Enable Live Form Validation" so that the button will always enabled.
·
Friday, 25 September 2015 19:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok, but I would like it to make LIVE validation, but it was grey even if I had the required characters.

Where is advanced mode and Live Form Validation found?
·
Friday, 25 September 2015 19:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Thomas,

There are some issue with the live validation when recaptcha is enabled on the site and I already forward this issue to our developer so it can be fix in the next release of komento. By the way you can access advance mode by using the following url on your administrator area, http://yoursite.com/administrator/index.php?option=com_komento&view=system&layout=advance .
·
Friday, 25 September 2015 20:02
·
0 Likes
·
0 Votes
·
0 Comments
·
I can live without live validation :-)

Again, thank you so much for the best support ever! :-)
·
Friday, 25 September 2015 20:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for updating Thomas, glad that your issues are resolved now
·
Monday, 28 September 2015 00:15
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post