Black Friday 2026 50% off every plan Our biggest deal of the year on #1 Joomla products.
Ends in 11d 22h 55m 38s
Claim 50% off
Awaiting an answer SP Page Builder

Invalid Recaptcha Impossible to Work

Asked by Ruben 2 years ago Last activity 2 years 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.

10 replies

Paul Frankowski Senior Staff
2 years ago · edited

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

Ruben Asked this

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

Paul Frankowski Senior Staff

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

Ruben Asked this

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.

Paul Frankowski Senior Staff

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

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

Ruben Asked this

Hello Paul,

I share you an access:

Thank you very much.

Ruben Asked this

Hello Paul.
Excuse me, could you see it?

Paul Frankowski Senior Staff

Yes, working now. Look down.

info_2773_2024.gif

Ruben Asked this

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

Log in to reply.