Joomla integrated captcha not working?

General questions relating to Joomla! 2.5. Note: All 1.6 and 1.7 releases have reached end of life and should be updated to 2.5. There are other boards for more specific help on Joomla! features and extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
ruud68
Joomla! Apprentice
Joomla! Apprentice
Posts: 38
Joined: Tue Jan 24, 2012 7:23 pm

Joomla integrated captcha not working?

Post by ruud68 » Tue Jan 24, 2012 7:51 pm

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.

User avatar
imanickam
Joomla! Master
Joomla! Master
Posts: 28193
Joined: Wed Aug 13, 2008 2:57 am
Location: Chennai, India

Re: Joomla integrated captcha not working?

Post by imanickam » Wed Jan 25, 2012 2:35 am

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.
Ilagnayeru (MIG) Manickam | இளஞாயிறு மாணிக்கம்
Joomla! - Global Moderators Team | Joomla! Core - Tamil (தமிழ்) Translation Team Coordinator
Former Joomla! Translations Coordination Team Lead
Eegan - Support the poor and underprivileged

ruud68
Joomla! Apprentice
Joomla! Apprentice
Posts: 38
Joined: Tue Jan 24, 2012 7:23 pm

Re: Joomla integrated captcha not working?

Post by ruud68 » Wed Jan 25, 2012 6:54 am

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.

User avatar
CubAfull
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Tue Oct 23, 2007 5:09 am

Re: Joomla integrated captcha not working?

Post by CubAfull » Wed Jan 25, 2012 4:18 pm

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...

ruud68
Joomla! Apprentice
Joomla! Apprentice
Posts: 38
Joined: Tue Jan 24, 2012 7:23 pm

Re: Joomla integrated captcha not working?

Post by ruud68 » Wed Jan 25, 2012 4:32 pm

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.

User avatar
CubAfull
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Tue Oct 23, 2007 5:09 am

Re: Joomla integrated captcha not working?

Post by CubAfull » Wed Jan 25, 2012 4:52 pm

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.

ruud68
Joomla! Apprentice
Joomla! Apprentice
Posts: 38
Joined: Tue Jan 24, 2012 7:23 pm

Re: Joomla integrated captcha not working?

Post by ruud68 » Wed Jan 25, 2012 5:07 pm

Hi CubAfull

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

thanks,
Ruud.

Achess
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Mon Jan 23, 2012 7:50 pm
Contact:

Re: Joomla integrated captcha not working?

Post by Achess » Wed Jan 25, 2012 5:14 pm

So this a captcha problem not one with my site

User avatar
CubAfull
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Tue Oct 23, 2007 5:09 am

Re: Joomla integrated captcha not working?

Post by CubAfull » Wed Jan 25, 2012 5:18 pm

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

User avatar
alainroger
Joomla! Explorer
Joomla! Explorer
Posts: 438
Joined: Sat Apr 25, 2009 4:48 am
Location: France
Contact:

Re: Joomla integrated captcha not working?

Post by alainroger » Wed Jan 25, 2012 5:32 pm

i had the same problem today :-( so i decided to stay with some plug-ins from 3rd party
what does not kill you, makes you stronger

User avatar
alikon
Joomla! Champion
Joomla! Champion
Posts: 5941
Joined: Fri Aug 19, 2005 10:46 am
Location: Roma
Contact:

Re: Joomla integrated captcha not working?

Post by alikon » Wed Jan 25, 2012 6:32 pm

are you all on a https connection ???
Nicola Galgano
i know that i don't know
www.alikonweb.it

ruud68
Joomla! Apprentice
Joomla! Apprentice
Posts: 38
Joined: Tue Jan 24, 2012 7:23 pm

Re: Joomla integrated captcha not working?

Post by ruud68 » Wed Jan 25, 2012 6:38 pm

Yes, I am with my test site.

User avatar
alikon
Joomla! Champion
Joomla! Champion
Posts: 5941
Joined: Fri Aug 19, 2005 10:46 am
Location: Roma
Contact:

Re: Joomla integrated captcha not working?

Post by alikon » Wed Jan 25, 2012 6:41 pm

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
Nicola Galgano
i know that i don't know
www.alikonweb.it

ruud68
Joomla! Apprentice
Joomla! Apprentice
Posts: 38
Joined: Tue Jan 24, 2012 7:23 pm

Re: Joomla integrated captcha not working?

Post by ruud68 » Wed Jan 25, 2012 7:08 pm

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.

User avatar
alikon
Joomla! Champion
Joomla! Champion
Posts: 5941
Joined: Fri Aug 19, 2005 10:46 am
Location: Roma
Contact:

Re: Joomla integrated captcha not working?

Post by alikon » Wed Jan 25, 2012 7:30 pm

...could be
Nicola Galgano
i know that i don't know
www.alikonweb.it

ruud68
Joomla! Apprentice
Joomla! Apprentice
Posts: 38
Joined: Tue Jan 24, 2012 7:23 pm

Re: Joomla integrated captcha not working?

Post by ruud68 » Wed Jan 25, 2012 7:43 pm

... 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)

Tenni
Joomla! Apprentice
Joomla! Apprentice
Posts: 21
Joined: Thu Jan 26, 2012 1:01 pm

Re: Joomla integrated captcha not working?

Post by Tenni » Fri Jan 27, 2012 12:26 pm

Thanks CubAfull!
Your workaround is also working on my SSL site.

Hope this will be fixed in 2.5.1 ...

Richard67
Joomla! Explorer
Joomla! Explorer
Posts: 270
Joined: Fri Sep 16, 2011 6:13 pm
Location: Germany
Contact:

Re: Joomla integrated captcha not working?

Post by Richard67 » Sun Feb 05, 2012 9:41 pm

Seems it has not been fixed with 2.5.1 :(

User avatar
BoBInfo
Joomla! Apprentice
Joomla! Apprentice
Posts: 26
Joined: Mon Apr 11, 2011 4:16 am

Re: Joomla integrated captcha not working?

Post by BoBInfo » Thu Feb 16, 2012 3:23 pm

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.
You do not have the required permissions to view the files attached to this post.

Richard67
Joomla! Explorer
Joomla! Explorer
Posts: 270
Joined: Fri Sep 16, 2011 6:13 pm
Location: Germany
Contact:

Re: Joomla integrated captcha not working?

Post by Richard67 » Thu Feb 16, 2012 6:35 pm

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

User avatar
BoBInfo
Joomla! Apprentice
Joomla! Apprentice
Posts: 26
Joined: Mon Apr 11, 2011 4:16 am

Re: Joomla integrated captcha not working?

Post by BoBInfo » Thu Feb 16, 2012 7:32 pm

Perfect. This solution solved all issues. Thanks for your time and suggestions!!!

Richard67
Joomla! Explorer
Joomla! Explorer
Posts: 270
Joined: Fri Sep 16, 2011 6:13 pm
Location: Germany
Contact:

Re: Joomla integrated captcha not working?

Post by Richard67 » Thu Feb 16, 2012 7:50 pm

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!

cojimar
Joomla! Apprentice
Joomla! Apprentice
Posts: 35
Joined: Sun Sep 18, 2011 6:44 pm

Re: Joomla integrated captcha not working?

Post by cojimar » Sat Feb 18, 2012 2:31 am

Hello a'm having the same issue but i cant get it to work, help please!!!

Richard67
Joomla! Explorer
Joomla! Explorer
Posts: 270
Joined: Fri Sep 16, 2011 6:13 pm
Location: Germany
Contact:

Re: Joomla integrated captcha not working?

Post by Richard67 » Sat Feb 18, 2012 11:46 am

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

EE Photo
Joomla! Ace
Joomla! Ace
Posts: 1858
Joined: Mon Dec 14, 2009 4:17 pm

Re: Joomla integrated captcha not working?

Post by EE Photo » Sat Feb 18, 2012 12:51 pm

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?
Besök gärna min webbplats: http://www.fotoforalla.se/

Richard67
Joomla! Explorer
Joomla! Explorer
Posts: 270
Joined: Fri Sep 16, 2011 6:13 pm
Location: Germany
Contact:

Re: Joomla integrated captcha not working?

Post by Richard67 » Sat Feb 18, 2012 12:57 pm

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!

EE Photo
Joomla! Ace
Joomla! Ace
Posts: 1858
Joined: Mon Dec 14, 2009 4:17 pm

Re: Joomla integrated captcha not working?

Post by EE Photo » Sat Feb 18, 2012 1:00 pm

Ok but I don´t use both togheter, I tried both seperatly and none of them worked.
Besök gärna min webbplats: http://www.fotoforalla.se/

Richard67
Joomla! Explorer
Joomla! Explorer
Posts: 270
Joined: Fri Sep 16, 2011 6:13 pm
Location: Germany
Contact:

Re: Joomla integrated captcha not working?

Post by Richard67 » Sat Feb 18, 2012 1:08 pm

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.

EE Photo
Joomla! Ace
Joomla! Ace
Posts: 1858
Joined: Mon Dec 14, 2009 4:17 pm

Re: Joomla integrated captcha not working?

Post by EE Photo » Sat Feb 18, 2012 1:55 pm

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
Besök gärna min webbplats: http://www.fotoforalla.se/

cojimar
Joomla! Apprentice
Joomla! Apprentice
Posts: 35
Joined: Sun Sep 18, 2011 6:44 pm

Re: Joomla integrated captcha not working?

Post by cojimar » Sat Feb 18, 2012 2:00 pm

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.
You do not have the required permissions to view the files attached to this post.


Locked

Return to “General Questions/New to Joomla! 2.5”