INVINCIBLE RECAPTCHA STOPPED WORKING ON J5 - Question | JoomShaper

INVINCIBLE RECAPTCHA STOPPED WORKING ON J5

Rhema

Rhema

Template 11 months ago

Hi, i updated my joomla site from j4 to j5 and noticed the invisible recapcha stopped working! any solutions?

  • Rhema
0
6 Answers
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 11 months ago #174975

Hi Rhema.

in the media/plg_captcha_recaptcha_invisible/js/recaptcha.min.js there is an issue (it's not our issue btw). Replace the file code with the code below (Copy & Paste):

/**
 * @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);

Then clear Joomla and Browser cache, and Let me know if the problem still persists.

0
Rhema
Rhema
Accepted Answer
11 months ago #175068

i did asyou said, i keep getting errors when i test the contact form from the front end of the site

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

Here is example from today, also forum User Site. info_2773_2024.gif




You have to also install correct Recpatcha plugin ... link below

0
Rhema
Rhema
Accepted Answer
11 months ago #175084

Hi Paul, i did all that , i even re-installed the invisible recaptcha plugin from the new link you shared , i copied all codes you gave and pasted at the file directory in my server (media/plg_captcha_recaptcha_invisible/js/recaptcha.min.js) that is i replaced all the codes inside recaptcha.min.js with your codes and saved , i cleared cache still issue persist

please help, i will my admin login credentials in private.

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

Hmm. I don't know to be honest, I have to ask @Toufiq.

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 11 months ago #175184
0