Page 1 of 5

Joomla integrated captcha not working?

Posted: Tue Jan 24, 2012 7:51 pm
by ruud68
Hi,

was using easycalcplus one my site, but this is not compatable anymore with Joomla 2.5, so uninstalled it on my Joomla 1.7.3 test site and upgraded to Joomla 2.5.
Configured the system captcha plugin with the correct public and private keys, The pluging was already enabled (by default)
configured the 'default captcha' in the global configuration to 'Captcha - reCaptcha'.
so far so good...

now when registering a new user of using the contact form, only the text "Captcha *" is displayed.

as a result, no contact can be send and no user can register.
On the same site I am using Kunena also with recaptcha: this one works.

I have tried a different template 'Beez2 - Default' but same issue.

Am I missing something?

Test site is available (please contact me if needed).
Thanks in advance foor looking into this.
regards,
Ruud.

Re: Joomla integrated captcha not working?

Posted: Wed Jan 25, 2012 2:35 am
by imanickam
Try the following:

Go to the User Manager and click on the icon titled Options. For the option Captcha, choose the value "Captcha - ReCaptcha" and save the options and see what happens.

Re: Joomla integrated captcha not working?

Posted: Wed Jan 25, 2012 6:54 am
by ruud68
Hi,

setting was set to 'Use Default changed it to 'Captcha - ReCaptcha'.
Unfortunately no change in behavior.

any other pointers?
Thanks in advance and regards,
Ruud.

Re: Joomla integrated captcha not working?

Posted: Wed Jan 25, 2012 4:18 pm
by CubAfull
There is a problem with google (recaptcha) security certificate:

Code: Select all

https://api-secure.recaptcha.net/js/recaptcha_ajax.js
Firebug say:

Code: Select all

Recaptcha is not defined
...oSAAAAAPiK1oCm_D2Kfjs2DTxWDJtcLpeJ", "dynamic_recaptcha_1", {theme: "white",lang...

Re: Joomla integrated captcha not working?

Posted: Wed Jan 25, 2012 4:32 pm
by ruud68
Thats it!

when I open the url: https://api-secure.recaptcha.net/js/recaptcha_ajax.js in a different tab I am prompted with the unsecure message, when I accept this and refresh my registration form, the captcha displays correctly!

surely we are not the only ones out there?
How can this be fixed?
Can I help?
regards,
Ruud.

Re: Joomla integrated captcha not working?

Posted: Wed Jan 25, 2012 4:52 pm
by CubAfull
ruud68 wrote:How can this be fixed?
Hi,
This is a temporal solution.

Open:

Code: Select all

site_root/plugins/captcha/recaptcha/recaptcha.php
On line 58 change:

Code: Select all

$server = self::RECAPTCHA_API_SECURE_SERVER;
For:

Code: Select all

$server = self::RECAPTCHA_API_SERVER;
... and test.

Re: Joomla integrated captcha not working?

Posted: Wed Jan 25, 2012 5:07 pm
by ruud68
Hi CubAfull

this works!
Thanks for the work around, looking forward to the real fix.

thanks,
Ruud.

Re: Joomla integrated captcha not working?

Posted: Wed Jan 25, 2012 5:14 pm
by Achess
So this a captcha problem not one with my site

Re: Joomla integrated captcha not working?

Posted: Wed Jan 25, 2012 5:18 pm
by CubAfull
ruud68 wrote:Thanks for the work around, looking forward to the real fix.
Hi,
If you can, please report this joomla dev.

Google change the API for recaptcha:

Code: Select all

The transition involves a very simple change to your code.  Any time
between now and April 11, you need to replace all instances of:
https://api-secure.recaptcha.net/XXX
with:
https://www.google.com/recaptcha/api/XXX 
Full story here:

Code: Select all

http://groups.google.com/group/recaptcha-announce/browse_thread/thread/c1ff6844420c9e63?pli=1

Re: Joomla integrated captcha not working?

Posted: Wed Jan 25, 2012 5:32 pm
by alainroger
i had the same problem today :-( so i decided to stay with some plug-ins from 3rd party

Re: Joomla integrated captcha not working?

Posted: Wed Jan 25, 2012 6:32 pm
by alikon
are you all on a https connection ???

Re: Joomla integrated captcha not working?

Posted: Wed Jan 25, 2012 6:38 pm
by ruud68
Yes, I am with my test site.

Re: Joomla integrated captcha not working?

Posted: Wed Jan 25, 2012 6:41 pm
by alikon
quite strange you are using an ssl connection on a test site,
i've checked on some different configuration and unable to reproduce that issue

Re: Joomla integrated captcha not working?

Posted: Wed Jan 25, 2012 7:08 pm
by ruud68
Not so strange for me :)
running my testsite on my own private server, behind a firewall that only passes 443 traffic.
for my joomla sites it is a test server, but for the rest it is my production server.

When I trust this site: https://api-secure.recaptcha.net/ and add the exception permanently it will work 'forever' and the issue will not be reproducable from my pc, perhaps that is what is preventing you from having this error?

regards,
Ruud.

Re: Joomla integrated captcha not working?

Posted: Wed Jan 25, 2012 7:30 pm
by alikon
...could be

Re: Joomla integrated captcha not working?

Posted: Wed Jan 25, 2012 7:43 pm
by ruud68
... you can delete that (at least I can in FF > preferences > [advanced] > [encryption] > [view certificates] > [servers] .... Thawte Consulting (Pty) Ltd. > delete: www.google.com | api.secure.recaptcha.net:443)

Re: Joomla integrated captcha not working?

Posted: Fri Jan 27, 2012 12:26 pm
by Tenni
Thanks CubAfull!
Your workaround is also working on my SSL site.

Hope this will be fixed in 2.5.1 ...

Re: Joomla integrated captcha not working?

Posted: Sun Feb 05, 2012 9:41 pm
by Richard67
Seems it has not been fixed with 2.5.1 :(

Re: Joomla integrated captcha not working?

Posted: Thu Feb 16, 2012 3:23 pm
by BoBInfo
Thanks for the solution. Very helpful. This fix does in fact corrects the issue. However, it seems to break SSL as the attached image shows. My fear is the message may scare away those who are not very technical which is a lot of people. They will likely think the site is not secure.

Re: Joomla integrated captcha not working?

Posted: Thu Feb 16, 2012 6:35 pm
by Richard67
Hi to all here,

no, the intermediate solution provided by CubAfull is not what I would recommend, since it breaks SSL security.

Instead of this, I followed what he pasted later:

Code: Select all

http://groups.google.com/group/recaptcha-announce/browse_thread/thread/c1ff6844420c9e63?pli=1
Means I have changed line 25 of plugins/captcha/recaptcha/recaptcha.php to following:

Code: Select all

const RECAPTCHA_API_SECURE_SERVER = "https://www.google.com/recaptcha/api";
This works, is secure and is the final solution in my opinion.

Best regards,

Richard

Re: Joomla integrated captcha not working?

Posted: Thu Feb 16, 2012 7:32 pm
by BoBInfo
Perfect. This solution solved all issues. Thanks for your time and suggestions!!!

Re: Joomla integrated captcha not working?

Posted: Thu Feb 16, 2012 7:50 pm
by Richard67
Hi,

thanks for the flowers :)

Well, it should be mentioned that files of other extensions may have to be corrected, too.

I have found out that latest version of Phocaguestbook is ok, but e.g. uddeIM needed this fix, too.

To find out which files have to be corrected, you simply could issue the command

Code: Select all

findstr /s /m /i /c:"https://api-secure.recaptcha.net" *.*
in a Windows command shell window (so-called "DOS prompt") on a Windows host, and

Code: Select all

find ./ -type f -exec grep -l "https://api-secure\.recaptcha\.net" {} \;
on a Linux host, both from the Joomla root directory.

Each of these commands lists all files which contain the old, depreceated SSL recaptcha service URL.

I hope the Joomla team will fix the thing in their recaptcha plugin.

Best regards to all,

Richard

P.S.: Joomla 2.5 is great!

Re: Joomla integrated captcha not working?

Posted: Sat Feb 18, 2012 2:31 am
by cojimar
Hello a'm having the same issue but i cant get it to work, help please!!!

Re: Joomla integrated captcha not working?

Posted: Sat Feb 18, 2012 11:46 am
by Richard67
Hi cojimar,

well, it should work if you

1. Change line 25 of plugins/captcha/recaptcha/recaptcha.php like I suggested above, and

2. Do NOT follow the workaround CupAfull suggested before: Both changes to not work together, i.e. my change will not help if then later the non-secure captcha api server is used. So change back line 85 of the same file to the original state.

3. switch on recaptcha use in the global setting.

If all this does not help, describe mor precise please what all you did and how your problem manifests.

Or give us the admin account of your site, then we can help ;-) ... Jooooooke!!!

Best regards,

Richard

Re: Joomla integrated captcha not working?

Posted: Sat Feb 18, 2012 12:51 pm
by EE Photo
I have the same problem but I don´t use a SSL conection. I have tried the solution Richard67 and CubAfull suggests but it doesn´t work.

I guess it doesn´t work since I don´t use SSL, does someone know how to fix this?

Re: Joomla integrated captcha not working?

Posted: Sat Feb 18, 2012 12:57 pm
by Richard67
As I said, you should not use both together, the workaround of CupAfull and my solution.
It does not matter if you use SLL to get to your site, it matters that the recaptcha plugin uses SSL to get to the Google Recaptcha API server!

Re: Joomla integrated captcha not working?

Posted: Sat Feb 18, 2012 1:00 pm
by EE Photo
Ok but I don´t use both togheter, I tried both seperatly and none of them worked.

Re: Joomla integrated captcha not working?

Posted: Sat Feb 18, 2012 1:08 pm
by Richard67
Have you set the captcha to 'Captcha - ReCaptcha' in global settings, and changed in the user manager options the captcha from 'none selected' (or similar) to either 'use default' (or similar) or to 'Captcha - ReCaptcha'?

And for the contact form you have to do the same in the contact manager options.

Please describe more in detail which problem you have with which component (contact form or registration form), if you can see no captcha ta all or if you get some error messages, otherwise is hard to help.

Re: Joomla integrated captcha not working?

Posted: Sat Feb 18, 2012 1:55 pm
by EE Photo
I don´t get any error and is the captcha in the contact form that I have problems with. I have set recatpcha in the global settings and I have entered the keys in the plugin.

Instead of a capatcha form all I see is "Captcha *" you can see it here on my site:

http://www.fotoforalla.se/kontakt

Re: Joomla integrated captcha not working?

Posted: Sat Feb 18, 2012 2:00 pm
by cojimar
Hello there, yes i tried both separate and none of them work for me, switch global and user but no change, i only get the capcha text on the form, thanks for your replies.