reCAPTCHA should be executed without error messages, but the plugin does not appear.
Error message appears in development console:
recaptcha.min.js?261654:5 Uncaught (in promise) TypeError: s.getElementsByClassName(...).forEach is not a function at a.JoomlainitReCaptchaInvisible (recaptcha.min.js?261654:5:182)
Joomla! 5.2.0
This issue seems to be present since Joomla! 5.2.0. In Joomla! 5.1.4 everything was working fine.
Labels |
Added:
No Code Attached Yet
|
Joomla 5 does not provide any Captcha, however while update from 4 to 5 we keep reCAPTCHA Invisible Plugin from Joomla 4.
From quick look j4 reCAPTCHA does not have such code as in your reaport, probably something mixed with your update.
You can try to copy media/plg_captcha_recaptcha_invisible/js/
folder from latest j4. But make backup of course.
reCAPTCHA should be executed without error messages, but the plugin does not appear.
This issue seems to be present since Joomla! 5.2.0. In Joomla! 5.1.4 everything was working fine.
I have a similar problem. After updating Joomla from 5.1.4 to 5.2.0 reCAPTCHA Invisble plugin stops working.
Any ideas?
@drmenzelit I am using Joomla! 5 and reCAPTCHA Invisible. As far as I know reCAPTCHA Visible has been removed with Joomla! 5 upgrade.
Joomla 5 does not provide any Captcha, however while update from 4 to 5 we keep reCAPTCHA Invisible Plugin from Joomla 4.
was captcha separated as a component of weblinks?
can anyone add captcha from @joomla 4 to this directory?
I think this could be supported by the community as a weblinks component.
Both Joomla! 5.2.0 Stable Full Package and Stable Update Package ship captcha files for reCAPTCHA Invisible,
see media/plg_captcha_recaptcha_invisible
And that is another bug.
Copy js files from prev version as a temporary fix, that should help, untill someoen will find a better fix.
Labels |
Added:
bug
|
The problem is that the media files were incorrectly added to the list of files to be removed from existing installs
joomla-cms/administrator/components/com_admin/script.php
Lines 1247 to 1249 in 59b1341
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-10-18 11:11:07 |
Closed_By | ⇒ | Fedik |
Hi,
same Problem here. I migrated from J4 to J5 and Invisible Recaptcha worked fine.
After update to 5.2 invisible recaptcha was broken. I installed ReCaptcha V3 from SharkyKZ and this works only on User Registration and Reset Password page, but NOT on my contact forms.
The recaptcha incon appears, but when sending the form it always says "please complete the captcha field".
Same issue when i am using the joomla built-in invisible captcha.
Could anyone fix this?
@fgsw This #44306 is not a fix? Why should i reinstall with J4? Makes so sense to me.
I now did the following:
I restored a backup with my previous Joomla 5.1.4 (taken before update to 5.2) to a seperate folder and copied this three files to my Joomla 5.2 live site:
/media/plg_captcha_recaptcha_invisible/js/recaptcha-es5.js
/media/plg_captcha_recaptcha_invisible/js/recaptcha-es5.min.js
/media/plg_captcha_recaptcha_invisible/js/recaptcha-es5.min.js.gz
Now invisible recaptcha is working again.
Dont know if this will last after the next Joomla update, but for now it is ok.
@fgsw
Maybe i dont get it how to use your fix on a live site, do you have any hints how to use it without reinstallation of J4?
So i testet the fix like the following:
I restored the original Joomla 5.2 files, which i changed before against the 5.1.4 ones.
After that, i replaced the recaptcha.js file against the one from #44306
But it does not work, the invisible Recaptcha Logo does not appear at any form.
I then changed the three files against the Joomla 5.1.4 ones again and the invisible recaptcha works fine.
So the fix is not working on my site.
Same Problem with Joomla 5.2.1
Fix from ##44306 does not work, had to replace the 3 files with the Joomla 5.1.4 ones to make the invisible recaptcha plugin working again
@tschombes How did you apply the fix from PR #44306 ? As that PR has not been merged yet, it is of course not included in 5.2.1. If you want to help that it becomes included in the upcoming 5.2.2, you can test that PR, because every PR needs 2 successful human test before it can be merged.
One way to apply the PR would be to download the update zip for that PR here
https://artifacts.joomla.org/drone/joomla/joomla-cms/5.2-dev/44306/downloads/80218/
and unpack the following files from that zip:
Then backup the existing 3 files on your site which you had copied from 5.1.4 and then replace the existing files by the one unpacked from the zip. Finally clear your browser cache to make sure your browser doesn't use the old, cached files and test if it works. Please report back the result in PR #44306 . Thanks in advance.
I tested the 3 recaptcha files on my 5.2.1 installation and now it works again
Which reCaptcha plugin are you using?