- Posts: 24
COMMUNITY FORUM
[SOLVED] Re: reCaptcha not working
- philingbb
-
- Offline
- Junior Member
Thanks - Merci. J'ai gagné du temps.
- chrissie
-
- Offline
- New Member
- Posts: 1
- Erik Lindquist
-
- Offline
- New Member
- Posts: 1
I have installed:
1. Joomla 2.5.8
2. K2 2.6.5
3. LoginRadius to use social media to connect,'
When I login through LoginRadius and one of the social media connectors I get the error:
"The words you typed did not match the ones displayed. Please try again"
I have followed the above instructions.
1. Disabled the Captcha ReCaptcha Extension
2. Disabled the Captcha ReCaptcha Plugin
3. Set User Configuration - Captcha "None selected"
4. Set K2 Parameters for Comments to Enable reCaptcha in Comments to "Yes"
5. Copied and Pasted Keys to K2 Advanced Parameters
6. Enabled reCaptcha on Registration Form
7.Enable StopForumSpam.com integration on the user registration form = Yes
However, I still get the message:
"The words you typed did not match the ones displayed. Please try again"
Any help would be GREAT.
Thanks,
Erik Lindquist
- Brad
-
- Offline
- New Member
- Posts: 2
Joomla 3.0.3
K2 2.6.5
Disabled the system default Captcha - ReCaptcha plugin.
Set K2 to load a local copy of jQuery v1.8.2.
Changed Captcha setting in Users Manager Options to '- None Selected -'.
Updated public and private keys in the K2 -> advanced ->anti-spam settings section and set enable reCaptcha to 'Yes'.
The captcha to solve appears in the comment section as expected.
Entering a comment and leaving the captcha solution empty results in the message 'The words you typed did not match the ones displayed. Please try again.'
Entering any solution (correct or not) and submitting does nothing.
I've confirmed that my public and private keys are for the domain in question. Similarly, I am not getting any scripting in the browser debugger for Chrome or IE10.
Anyone have any suggestions?
Brad
- Brad
-
- Offline
- New Member
- Posts: 2
It seems that recaptcha requests via IPv6 have some sort of issue going on, so any box with a v6 address is likely going to have socket errors trying to verify a captcha response.
The solution to this is to either remove IPv6 from the machine running Joomla, which isn't terribly optimal, or hack any references in the recaptcha libraries to not make requests via IPv6.
This can be done by changing the fsockopen call made in /administrator/components/com_k2/lib/recaptchalib.php on line 91
from
...@fsockopen($host, $port,...
to
...@fsockopen(gethostbyname($host), $port,...
Similarly, the default system recaptcha plugin at /plugins/captcha/recaptcha/recaptcha.php can be changed on line 189.
As gethostbyname() doesn't support IPv6, it gets around the problem.
Probably not the best solution, but until requests made using IPv6 are reliable, this will work until someone goes about adding an actual option to determine what protocol(s) the request will use.
For what it's worth, 3.0.2 and 2.6.5 appear to be just fine with both recaptcha plugins (system / k2) enabled.
Brad
- Carrie Furness
-
- Offline
- New Member
- Posts: 1
I tried your idea Brad, and it still won't work. As it stands now, no one can register on my site because of this.
Odd thing is, it worked last week and the only thing I have done is instal JFBConnect. I was actually testing this out and decided to make a test account when I ran into this issue. Problem was, I could not get 'facebook login' to work, but I did figure out that if I disabled K2 captcha it worked fine. Problem with that is, I would end up with this message:
Empty solution not allowed.
So I followed the steps in the other post. and this is what I end up with:
The words you typed did not match the ones displayed. Please try again.
Is anyone with this problem using JFBConnect?
- EasiStudio
-
- Offline
- Junior Member
- Posts: 32
Many thanks this worked for me.Khalil wrote: As-salamu alaykum,
I have resolved the problem :)
You don't have to disable anything, just to get the Captcha - ReCaptcha plugin working on K2 comment you have to follow these steps:
1 - ON www.google.com/recaptcha Go to
- USE reCAPTCHA ON YOUR SITE
- ADD Gmail account if you don't have, or log in if you have.
- Go MY ACCOUNT -> + Add a New Site
- Create a reCAPTCHA key -> ADD your Domain -> Create a Key.
- Copy (Public Key and then you will copy the Private Key)
2 - On your admin panel go to:
- Component -> K2 -> Parameters -> Comments-> Active reCaptcha -> Yes.
- Go to Component -> K2 -> Parameters -> Advanced -> Anti-spam.
- Past the two Key that you have from Google. (Public and Private Key)
-> Refresh you site and you got it ^_^
IF YOU STILL DON'T HAVE THE CAPTCHA WORKING:
Make sure you have enabled the K2 plugin and Comments on the Category options.
That should be resolving your problem.
- IF, IF that is still not working:
- Go to your site
- Click " F12 " on Google Chrom / Control+F12 (Firebugs, Firefox)
- Refresh your web site
- If you have a JavaScript errors try to find what is your problems and solutions.
- Last thing if you don't have any JS problem, You should re-install joomla xD
That is all
Thank you, your brother from Tunisia :)
- Imke Philipoom
-
- Offline
- New Member
- Posts: 2
Carrie Furness wrote: Does anyone have a fix for this yet?
I tried your idea Brad, and it still won't work. As it stands now, no one can register on my site because of this.
Same thing here. I haven't been able to make it work: Any way I fill in the captcha it will still tell me it's wrong. The only thing I can think of now is to uninstall K2 :-( because I need users to be able to register. Still, I hope someone finds a solution for this problem.
- Imke Philipoom
-
- Offline
- New Member
- Posts: 2
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
As far for registrations and reCaptcha As-salamu alaykum has posted a very thorough step by step solution.
- jorge mejia gallegos
-
- Offline
- Junior Member
- Posts: 25
How can recaptcha work for all components?
- B.A. Umberger
-
- Offline
- New Member
- Posts: 2
There are FOUR areas where reCaptcha is configured in Joomla/K2 installation ... most everyone has been only adjusting the settings from THREE areas, the last setting is sooooo tucked away many of us missed it.
Here is a revised set of instructions for getting reCaptcha to work with Joomla and K2 ...
- Goto www.google.com/recaptcha and get your Public Key and Private Keys.
- Goto Joomla Admin > Plug-in Manager > Captcha - ReCaptcha and enter your Keys and ENABLE Plug-in.
- Goto Joomla Admin > Global Configuration > Default Captcha and set it to use "Captcha - ReCaptcha".
- Goto Joomla Admin > Components > K2 > Parameters > Comments > Anti-spam protection and set it to use "Google reCaptcha" (or Both), plus ENABLE "reCaptcha for registered users".
- Goto Joomla Admin > Components > K2 > Parameters > Advanced > down to "Anti-spam Settings" and enter your Keys again, plus set "Enable reCaptcha on registration form" to YES.
Many of us have done those steps several times trying to figure out the right combination, however there is one final step, mentioned earlier in the forum, a conflict with the default reCaptcha in Joomla vs. K2. The answer to get it to work is this ...
- Goto Joomla Admin > User Manager > Options (button) > Captcha and set it to use "NONE". This will turn-off the default user registration reCaptcha loading in the background behind K2 and causing the conflict.
End of Madness! ... Good luck everyone ... :woohoo:
Umby
- Tanto Soft
-
- Offline
- New Member
Joomla plugin:
Edit plugins/captcha/recaptcha/recaptcha.php and change URL
Line 24: const RECAPTCHA_API_SERVER = "api.recaptcha.net/recaptcha/api";
Save file.
K2:
Edit components/com_k2/views/item/view.html.php and change URL
Line 168: change URL to "api.recaptcha.net/recaptcha/api/js/recaptcha_ajax.js"
Save file.
Done! Working for me now!
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
This has been fixed in the newer versions of K2. For older ones your fix does the trick :)
- Zehnder
-
- Offline
- New Member
- Posts: 2
Funny thing is, that in the beginning it worked without any problems. But I think after I switched my website to german the images stopped to appear. Are there any known issues with the languages and the recaptcha function in k2? If no, has anyone an idea how to solve the problem? Would it help if I show you the website with the problem? Thanks a lot for your efforts!
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
- Zoran Kanti-Paul
-
- Offline
- New Member
- Posts: 6
I get told that the words I have entered are wrong every time.
I have settings on my Joomla 2.5 as above.
I have tried as registered and unregistered users, no difference. IN my case I really only want my site users have the ability to post comments. And I would love them to use recaptcha.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
You can deactivate caching as well to make sure this not a caching issue.
Finally are you using any third party caching plugins?
- Zoran Kanti-Paul
-
- Offline
- New Member
- Posts: 6
Krikor Boghossian wrote: You have deactivated the default Joomla! reCaptcha plugins, right?
You can deactivate caching as well to make sure this not a caching issue.
Finally are you using any third party caching plugins?
No 3rd party caching plugins. Disabled caching still the same problem.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Did you try the solution of B.A. Umberger ?