reCAPTCHA is not shown

Phoca Guestbook - creating guestbooks in Joomla! CMS
RonalddeWaal
Phoca Member
Phoca Member
Posts: 18
Joined: 19 Aug 2013, 20:17

reCAPTCHA is not shown

Post by RonalddeWaal »

L.s.,
I upgraded my website remdewaal.nl from Joomla 2.5 to Joomla 3.6. In the options of the Guestbook I entered:
  • Captcha inschakelen: reCAPTCHA
    Captcha - Gebruiker: Alle (User - ALl)
    Captcha URL: Retalief pad (relative path)
But the recaptcha is not shown. See nieuw.remdewaal.nl/index.php/teken-het-gastenboek?id=1
On the same website the captcha is shown by the Contacts.
Can anybody tell me why is the recaptcha not shown in the Guestbook?
With kind regards,
Ronald
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: reCAPTCHA is not shown

Post by Jan »

Hi, I see another captcha there.

When you enable recaptcha there, try to see the site with some developer tool and check the javascript console if you don't get any javascript error there, see:

https://www.phoca.cz/news/16-joomla/joomla/7 ... -conflicts
Jan
If you find Phoca extensions useful, please support the project
RonalddeWaal
Phoca Member
Phoca Member
Posts: 18
Joined: 19 Aug 2013, 20:17

Re: reCAPTCHA is not shown

Post by RonalddeWaal »

Hi Jan,
Thanks for your quick answer!
When I select the standard Joomla captcha the captcha you have seen on the website is present and working. But when I select the reCaptcha of Google there is no captcha.
But the standard captcha will do on this website.
With kind regards,
Ronald
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: reCAPTCHA is not shown

Post by Jan »

Ok, and did you check the javascript console when displaying the reCaptcha?

Jan
If you find Phoca extensions useful, please support the project
RonalddeWaal
Phoca Member
Phoca Member
Posts: 18
Joined: 19 Aug 2013, 20:17

Re: reCAPTCHA is not shown

Post by RonalddeWaal »

Hello Jan,
Yes I did. I saw no errors in Firefox/Firebug.
The options are now set to the Recaptcha. And I see no ReCaptcha (nieuw.remdewaal.nl/index.php/teken-het-gastenboek?id=1).
With kind regards
Ronald
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: reCAPTCHA is not shown

Post by Jan »

Hi, the link is redirected to main page and there is no guestbook?

Jan
If you find Phoca extensions useful, please support the project
RonalddeWaal
Phoca Member
Phoca Member
Posts: 18
Joined: 19 Aug 2013, 20:17

Re: reCAPTCHA is not shown

Post by RonalddeWaal »

Strange. That is not what I see.
And when you go to the homepage https://nieuw.remdewaal.nl/index.php. Select 'Gastenboek'(https://nieuw.remdewaal.nl/index.php/20 ... 1-14-46-54) and then the button 'Teken ons Gastenboek' (https://nieuw.remdewaal.nl/index.php/te ... nboek?id=1)?
The website is on a 'work'-location. The only difference with the real location is the .htacces is now renamed.
With kind regards,
Ronald
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: reCAPTCHA is not shown

Post by Jan »

Hi, I see it now:

"Mixed Content: The page at '...index.php/teken-het-gastenboek?id=1' was loaded over HTTPS, but requested an insecure script 'http://www.google.com/recaptcha/api/cha ... AYC-elcLNC'. This request has been blocked; the content must be served over HTTPS."

Do you run version 3.0.5, if yes try to go to:
components\com_phocaguestbook\models\fields\phocacaptcha.php
line cca 47
and change FROM:
$retval = '</div><div>' . PhocaGuestbookHelperReCaptcha::recaptcha_get_html($publicKey);
TO:
$retval = '</div><div>' . PhocaGuestbookHelperReCaptcha::recaptcha_get_html($publicKey, null, true);
Save, test and let me know if it works?

Jan
If you find Phoca extensions useful, please support the project
RonalddeWaal
Phoca Member
Phoca Member
Posts: 18
Joined: 19 Aug 2013, 20:17

Re: reCAPTCHA is not shown

Post by RonalddeWaal »

Hello Jan,
You solved the 'problem'. THANKS.
With kind regards,
Ronald
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: reCAPTCHA is not shown

Post by Jan »

Ok, thank you for the info, I will change it in next version.

Jan
If you find Phoca extensions useful, please support the project
Post Reply