Invalid Recaptcha Impossible To Work - Question | JoomShaper

Invalid Recaptcha Impossible To Work

R

Ruben

SP Page Builder 11 months ago

Hello. I try everything, and it is impossible to make recpatcha invisible to work. Please can you check my url?

https://raicesyalas.es/contacto

The error in the console is: reCAPTCHA couldn't find user-provided function: JoomlaInitReCaptchaInvisible

Thank you very much. Regards.

0
10 Answers
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 11 months ago #174219

Hi Ruben

it's caused by Joomla issue, not by Us. But there is solution for that.

in the media/plg_captcha_recaptcha_invisible/js/recaptcha.min.js there is an issue. Edit & Replace the file code with the code below.

/**
 * @package     Joomla.JavaScript
 * @copyright   (C) 2024 Open Source Matters, Inc. 
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */
 ((a,s)=>{a.JoomlainitReCaptchaInvisible=()=>{const c=["sitekey","badge","size","tabindex","callback","expired-callback","error-callback"];Array.from(s.getElementsByClassName("g-recaptcha")).forEach(t=>{let e={};t.dataset?e=t.dataset:c.forEach(i=>{const r=`data-${c[i]}`;t.hasAttribute(r)&&(e[c[i]]=t.getAttribute(r))}),t.setAttribute("data-recaptcha-widget-id",a.grecaptcha.render(t,e)),a.grecaptcha.execute(t.getAttribute("data-recaptcha-widget-id"))})}})(window,document);

copy whole code 1:1 !

Topic (one of many) > https://www.joomshaper.com/forum/question/35873

0
R
Ruben
Accepted Answer
11 months ago #174316

Hello Paul. I understand. Thank you for your help. I try and will comment you. Regards.

0
R
Ruben
Accepted Answer
11 months ago #174388

Hello Paul. I try in someone and work perfectly. But in other not work, like these:

https://www.ondasspeluqueria.com/contacto https://raicesyalas.es/contacto

Please can yo check it? Thank you for your time and help. Regards.

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 11 months ago #174392

Are you are using there the same recaptcha plugin?

That tip was only for Invisible v2

In each site, you have to update that file: media/plg_captcha_recaptcha_invisible/js/recaptcha.min.js

0
R
Ruben
Accepted Answer
11 months ago #174483

Hello Paul. Yes I use invisible V2. I try to delete plugin, and generate news captcha google keys, but it still doesn't work. I can not see that the tipical image of "Protection reCAPTCHA" in the bottom of the page.

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 11 months ago #174486

You don't have to delete plugin, just put my code inside.

You can share access one of those sites, I can check...

0
R
Ruben
Accepted Answer
11 months ago #174528

Hello Paul,

I share you an access:

Thank you very much.

0
R
Ruben
Accepted Answer
11 months ago #174919

Hello Paul. Excuse me, could you see it?

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 11 months ago #174984

Yes, working now. Look down.

info_2773_2024.gif

0
R
Ruben
Accepted Answer
11 months ago #175070

Hello Paul. Ok, thank you very much. Then I apply that in the other sites. Have a nice weekend!!!

0