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.
User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44093
Joined: Sat Apr 05, 2008 9:58 pm

Re: Joomla integrated captcha not working?

Post by Webdongle » Fri Apr 27, 2012 6:17 pm

Have you registered that url on http://www.google.com/recaptcha ? each code is specific to the site(unless you register all your sites to one code).
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

mwweb
Joomla! Intern
Joomla! Intern
Posts: 52
Joined: Tue Sep 20, 2011 4:51 pm
Contact:

Re: Joomla integrated captcha not working?

Post by mwweb » Fri Apr 27, 2012 6:32 pm

Yes. I've tried it's own key and a global. Neither works. Talk about frustrating!
Char

"Remember there's no such thing as a small act of kindness. Every act creates a ripple with no logical end.". Scott Adams

TDZWeb
Joomla! Apprentice
Joomla! Apprentice
Posts: 47
Joined: Thu Feb 24, 2011 11:20 am

Re: Joomla integrated captcha not working?

Post by TDZWeb » Thu Jun 14, 2012 10:54 pm

Hi sorry for bumping an old thread but its right on topic.

I am getting this problem now and traced it to the ajax javascript. The URL is set to http://api.recaptcha.net/js/recaptcha_ajax.js even in SSL mode. All the other elements in the reCaptcha box are loaded from https URLs. Anyone else have this problem?

Site registration url is: https://www.tdz.no/component/users/?view=registration

PS: oh and Joomla version is 2.5.4

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 » Thu Jun 14, 2012 11:23 pm

I also still got the same problem with the recaptcha on Joomla 2.5.4.
Besök gärna min webbplats: http://www.fotoforalla.se/

TDZWeb
Joomla! Apprentice
Joomla! Apprentice
Posts: 47
Joined: Thu Feb 24, 2011 11:20 am

Re: Joomla integrated captcha not working?

Post by TDZWeb » Fri Jun 15, 2012 6:03 pm

Are the hackers gone now? :pop

I guess this is a case for the bug squad, so I posted there.

nicolebh
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Thu Feb 10, 2011 6:15 pm

Re: Joomla integrated captcha not working?

Post by nicolebh » Thu Sep 13, 2012 7:03 pm

It's now September and I am having the same problem as listed several times above. Richard's line 25 fix did not work for me. Just launched this fresh joomla 2.5 install. Anyone get anywhere with this yet?

User avatar
Pesto
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 175
Joined: Sat Sep 17, 2005 2:47 am
Location: In a basement in New Jersey
Contact:

Re: Joomla integrated captcha not working?

Post by Pesto » Wed Sep 19, 2012 9:04 pm

I am having the same problem. public and private key set. I am just trying to get it to work on the register page. The only extension I have installed is JEvents.

site is bizcal365.com

All I see is Captcha* on the Reg.

TIA

Pete

jkeifer
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Nov 01, 2012 3:03 am

Re: Joomla integrated captcha not working?

Post by jkeifer » Thu Nov 01, 2012 3:21 am

Unfortunately, none of the above solutions worked for me.

After a bit of experimenting and troubleshooting, I have worked out the solution for my site at ribitus.com.

I thought I would share this just in case someone else has the same issue that I did.

I simply added this line to the end of my template's styles.css file:

Code: Select all

/* Fix the positioning problem with the recaptcha in the contact form */
#recaptcha_area { display: inline-block; }
For some reason, the text (Captcha *) was displaying, but the actual captcha text-box was out in space somewhere.

Adding the reference for the #recaptcha_area to my styles.css solved the problem. 8)

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44093
Joined: Sat Apr 05, 2008 9:58 pm

Re: Joomla integrated captcha not working?

Post by Webdongle » Thu Nov 01, 2012 12:23 pm

jkeifer wrote:...
I simply added this line to the end of my template's styles.css file:

Code: Select all

/* Fix the positioning problem with the recaptcha in the contact form */
#recaptcha_area { display: inline-block; }
...
Yep, many of the problems mentioned are due to badly written custom Templates.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

dukke
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sat Dec 22, 2012 7:47 pm

Re: Joomla integrated captcha not working?

Post by dukke » Sat Dec 22, 2012 7:56 pm

Hi,

I had the same problem, so I went to firebug to see if any errors where showing on the console. There was an unrelated error there that had to do with me removing the font size changer thing of the template. After I fixed this bug the recaptcha was also fixed and started to appear.

So, the error was a javascript error what I had to do was edit the file "<site dir>/templates/beez_20/javascript/md_stylechanger.js" (I was using beez_20 template)
and comment the following line (at the end of the file):
window.addEvent('domready', addControls);

the line was changed to this:
/*window.addEvent('domready', addControls);*/

User avatar
joliuko
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Tue Aug 24, 2010 10:13 am
Location: Lithuania
Contact:

Re: Joomla integrated captcha not working?

Post by joliuko » Sun Jan 06, 2013 6:37 pm

dukke wrote:Hi,

I had the same problem, so I went to firebug to see if any errors where showing on the console. There was an unrelated error there that had to do with me removing the font size changer thing of the template. After I fixed this bug the recaptcha was also fixed and started to appear.

So, the error was a javascript error what I had to do was edit the file "<site dir>/templates/beez_20/javascript/md_stylechanger.js" (I was using beez_20 template)
and comment the following line (at the end of the file):
window.addEvent('domready', addControls);

the line was changed to this:
/*window.addEvent('domready', addControls);*/
Thanks a lot that helped me a lot!

christian4u
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Tue May 28, 2013 2:59 am

Re: Joomla integrated captcha not working?

Post by christian4u » Tue May 28, 2013 3:27 am

I was trying to speedup my site and found that my mootools was slowing down page loads, searching on the internet I found that if I went to: libraries/joomla/document/html/renderer/head.php and modified the file with the following code, I was going to get some speed improvemente witch I did. But my Captcha will not work with this code:

Code: Select all

// Generate script file links
foreach ($document->_scripts as $strSrc => $strAttr)
{
    // Code to disable mootools for your site (still loads it for your admin)
    // Written by Brad Markle w/ InMotionHosting.com
    $ex_src = explode("/",$strSrc);
    $js_file_name = $ex_src[count($ex_src)-1];
    $js_to_ignore = array("mootools-core.js","mootools-more.js");
    if( in_array($js_file_name,$js_to_ignore) AND substr_count($document->baseurl,"/administrator") < 1 AND $_GET['view'] != 'form')
        continue;

    $buffer .= $tab . '<script src="' . $strSrc . '"';
    if (!is_null($strAttr['mime']))
    {
        $buffer .= ' type="' . $strAttr['mime'] . '"';
    }
    if ($strAttr['defer'])
    {
        $buffer .= ' defer="defer"';
    }
    if ($strAttr['async'])
    {
        $buffer .= ' async="async"';
    }
    $buffer .= '</script>' . $lnEnd;
}

softology3d
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Sat Aug 04, 2012 10:05 pm
Location: Dublin
Contact:

Re: Joomla integrated captcha not working?

Post by softology3d » Tue Jun 04, 2013 10:11 pm

Mine did not work initially too, I transferred the site again through site transfer wizard and setup a new database. It started to work fine after that.

Hope this helps.

bandelier
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Tue Aug 13, 2013 4:23 pm

Re: Joomla integrated captcha not working?

Post by bandelier » Tue Aug 13, 2013 4:35 pm

I realize this is a late post to this topic, but I'm relatively fresh to Joomla. I just upgraded a client site from 1.5 to the current version, and the re-captcha does not appear on the site's main contact form - even when enabled in the contact management settings. The plugin is enabled, selected in the options for the contact management settings under the form tab. Still, nothing. The text "Captcha*" appears, but does not have anything inside the div tag which is just:

Code: Select all

<dt><label id="jform_captcha-lbl" for="jform_captcha" class="hasTip required" title="Captcha::Type in the textbox what you see in the image.">Captcha<span class="star">&#160;*</span></label></dt>

<dd><div id="dynamic_recaptcha_1"></div></dd>
Any help is appreciated! We're getting some abusive spam & want to eliminate it if possible.

Prellyan
Joomla! Apprentice
Joomla! Apprentice
Posts: 28
Joined: Sun Jul 29, 2007 10:17 am

Re: Joomla integrated captcha not working?

Post by Prellyan » Thu Aug 29, 2013 6:39 am

a bit of a different one ...

the global setting in joomla admin is the problem...

i set it to recaptcha and save and it returns to "none" each time rather than update with recaptch as the tool

any thoughts?

cheers

newtampaseo
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Sun Dec 21, 2008 9:13 pm
Contact:

Re: Joomla integrated captcha not working?

Post by newtampaseo » Mon Nov 11, 2013 6:21 pm

The same issue appeared for me on non-secure...

const RECAPTCHA_API_SERVER = "http://www.google.com/recaptcha/api";
const RECAPTCHA_API_SECURE_SERVER = "https://www.google.com/recaptcha/api";

The API_SERVER in Joomla default code was wrong and I updated to above. RECAPTCHA now displayed on my 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 » Mon Nov 11, 2013 6:27 pm

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

TDZWeb
Joomla! Apprentice
Joomla! Apprentice
Posts: 47
Joined: Thu Feb 24, 2011 11:20 am

Re: Joomla integrated captcha not working?

Post by TDZWeb » Wed Nov 13, 2013 5:14 pm

The plugin will still not handle SSL correctly. When the site uses SSL, fsockopen must precede $host with "ssl://" and port must be set to 443, and the verify server has to be set to use "https://". Otherwise browsers will raise warnings of mixed secure and unsecure content.

User avatar
razor7
Joomla! Explorer
Joomla! Explorer
Posts: 374
Joined: Wed Aug 24, 2005 2:06 pm
Location: Argentina
Contact:

Re: Joomla integrated captcha not working?

Post by razor7 » Thu Nov 14, 2013 12:04 pm

TDZWeb wrote:The plugin will still not handle SSL correctly. When the site uses SSL, fsockopen must precede $host with "ssl://" and port must be set to 443, and the verify server has to be set to use "https://". Otherwise browsers will raise warnings of mixed secure and unsecure content.
I don't think so, because in line 68, the script is included into an <script> tag in the header section of the HTML code, thats all, as any other JS script, not downloaded at all...

If you mean method _recaptcha_http_post, all I can see is an unsecured standard port 80 connection to host api-verify.recaptcha.net using fsockopen, thats allways works regardless of the SSL site config!
Visit http://www.mgscreativa.com

Take a look at our downloads section for VirtueMart payment plugins and mouch more! http://www.mgscreativa.com/contenidos/i ... Itemid=214

lrfandet
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Mon Apr 29, 2013 3:33 pm

Re: Joomla integrated captcha not working?

Post by lrfandet » Thu Nov 14, 2013 2:16 pm

I have had the same problem only for the last few days. I'm not using ssl, I am using default templates, I had not changed anything recently.

Since this occurred I have updated to Joomla 2.5.14, but I still have the same problem with the text-box and recaptcha plug-in being absent from User Registration in Beez5. I see the word Captcha but there is no text-box and no Recaptcha image displayed anywhere on the form. The window sliders indicate that Windows is not aware of any page content beyond the edge of the screen.

TDZWeb
Joomla! Apprentice
Joomla! Apprentice
Posts: 47
Joined: Thu Feb 24, 2011 11:20 am

Re: Joomla integrated captcha not working?

Post by TDZWeb » Thu Nov 14, 2013 2:29 pm

razor7 wrote:
TDZWeb wrote:The plugin will still not handle SSL correctly. When the site uses SSL, fsockopen must precede $host with "ssl://" and port must be set to 443, and the verify server has to be set to use "https://". Otherwise browsers will raise warnings of mixed secure and unsecure content.
I don't think so, because in line 68, the script is included into an <script> tag in the header section of the HTML code, thats all, as any other JS script, not downloaded at all...

If you mean method _recaptcha_http_post, all I can see is an unsecured standard port 80 connection to host api-verify.recaptcha.net using fsockopen, thats allways works regardless of the SSL site config!
It may "work", but Firefox and Chrome at least throws up a big red warning screen asking for confirmation to proceed due to the webpage mixing secure and insecure content, probably because the script served uses urls based on what protocol is used to fetch it. The plugin should correctly detect http/https and use the appropriate protocols and ports. Google readily serves the recaptcha api either http or https. It should not be more than a dozen more lines of code to do it.

User avatar
razor7
Joomla! Explorer
Joomla! Explorer
Posts: 374
Joined: Wed Aug 24, 2005 2:06 pm
Location: Argentina
Contact:

Re: Joomla integrated captcha not working?

Post by razor7 » Thu Nov 14, 2013 3:07 pm

TDZWeb wrote:
razor7 wrote:
TDZWeb wrote:The plugin will still not handle SSL correctly. When the site uses SSL, fsockopen must precede $host with "ssl://" and port must be set to 443, and the verify server has to be set to use "https://". Otherwise browsers will raise warnings of mixed secure and unsecure content.
I don't think so, because in line 68, the script is included into an <script> tag in the header section of the HTML code, thats all, as any other JS script, not downloaded at all...

If you mean method _recaptcha_http_post, all I can see is an unsecured standard port 80 connection to host api-verify.recaptcha.net using fsockopen, thats allways works regardless of the SSL site config!
It may "work", but Firefox and Chrome at least throws up a big red warning screen asking for confirmation to proceed due to the webpage mixing secure and insecure content, probably because the script served uses urls based on what protocol is used to fetch it. The plugin should correctly detect http/https and use the appropriate protocols and ports. Google readily serves the recaptcha api either http or https. It should not be more than a dozen more lines of code to do it.
Oh, I got it!, please fill in aa bug report with some screenshots, that's the correc t way to raise awareness of bugs!
Visit http://www.mgscreativa.com

Take a look at our downloads section for VirtueMart payment plugins and mouch more! http://www.mgscreativa.com/contenidos/i ... Itemid=214


User avatar
trogladyte
Joomla! Guru
Joomla! Guru
Posts: 583
Joined: Sat May 03, 2008 9:27 pm
Location: Phoenix, AZ
Contact:

Re: Joomla integrated captcha not working?

Post by trogladyte » Thu Nov 14, 2013 9:40 pm

I got the patch off http://joomlacode.org/gf/project/joomla ... 76&start=0 but I have absolutely no idea how to apply it. Can anyone help a non-coder please?
Ian Shere - Phoenix Website Design & Hosting
http://www.citruskiwi.com
Certified Flight Instructor http://www.flygoodyear.com

Surel
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Fri Feb 01, 2013 11:09 pm

Re: Joomla integrated captcha not working?

Post by Surel » Sat Nov 16, 2013 2:53 am

trogladyte wrote:I got the patch off http://joomlacode.org/gf/project/joomla ... 76&start=0 but I have absolutely no idea how to apply it. Can anyone help a non-coder please?
You need to find the reCaptcha folder in the Plugins folder of your Joomla install. There you edit the php file. You open the patch file, copy the lines that are marked as + and paste them into the php file in the reCaptcha folder instead of the lines that are marked as - in the patch file.


The patch works on a clean install of joomla 3.2 with default template. Just tried it.

The problem seems to be mostly caused by some template troubles. The change in the Google api seems to be causing troubles to the templates. I had reCaptcha working on a Joomla 2.5 install with PixelDot template. It stopped working recently. Patch is not helping. It just shows reCaptcha*.

Similarly on a site with Joomla 3.2 clean install the reCaptcha doesnt work. When the patch is applied it starts to work. When different template is applied. The reCaptcha stops working. When I turn back to default template, the reCaptcha shows up but with overflow.

So I guess the changes in the google API cause some trouble with the templates. Would be nice if anyone could hint where could be the trouble most probably in the templates. Thx.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44093
Joined: Sat Apr 05, 2008 9:58 pm

Re: Joomla integrated captcha not working?

Post by Webdongle » Sat Nov 16, 2013 4:44 pm

@Surel

I am not setup to apply patches from github ... could you attach the patched file please ? You may need to rename it from .php to .xyz to attach it
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

User avatar
leolam
Joomla! Master
Joomla! Master
Posts: 20652
Joined: Mon Aug 29, 2005 10:17 am
Location: Netherlands/ Germany/ S'pore/Bogor/ North America
Contact:

Re: Joomla integrated captcha not working?

Post by leolam » Sat Nov 16, 2013 5:30 pm

Patch for 3.2.0 is posted here and is also valid as posted on the tracker for Joomla 2.5 seemingly. http://docs.joomla.org/J3.2:The_reCaptc ... Joomla_3.2 This patch works fine for J3.2.0 and must work fine for 2.5. as well if you just change sthe API url's as posted

Leo 8)
Joomla's #1 Professional Services Provider:
#Joomla Professional Support: https://gws-desk.com -
#Joomla Specialized Hosting Solutions: https://gws-host.com -

Surel
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Fri Feb 01, 2013 11:09 pm

Re: Joomla integrated captcha not working?

Post by Surel » Sat Nov 16, 2013 7:44 pm

When I run the site in debug mode the reCaptcha reappears.

The reCaptcha works with default clean install and default template.

It doesn't work with non default template. However, once I apply debug mode. It reappears. Anyone having suggestion to where could I find the problem and solve it? Txh.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44093
Joined: Sat Apr 05, 2008 9:58 pm

Re: Joomla integrated captcha not working?

Post by Webdongle » Sat Nov 16, 2013 8:09 pm

Template override in the custom template ?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

Surel
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Fri Feb 01, 2013 11:09 pm

Re: Joomla integrated captcha not working?

Post by Surel » Sun Nov 17, 2013 4:27 am

Webdongle wrote:Template override in the custom template ?
I am not that skilled in php to know what is wrong just like that. What I have atm:

1) When I run the non-default template in debug mode, the reCaptcha shows up and works just fine

2) Looking at the difference in the html, the problem is that when not in debug mode the one of the two reCaptcha javascripts does not load in the head and the style is not generated as well. I.e. this is missing in the head:
<script type="text/javascript" src="http://www.google.com/recaptcha/api/cha ... 15&lang=en">
<style type="text/css">
My questions are thus:

1) What change does running the website in debug mode make, that it changes the head.
2) Where could I find in the template what is repressing the javascript to load.

thx.


Locked

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