No Code Attached Yet bug
avatar maggus
maggus
17 Oct 2024

Steps to reproduce the issue

  • Install Joomla! 5.2.0
  • Activate reCAPTCHA Invisible Plugin
  • Go to Joomla's password reset page in frontend

Expected result

reCAPTCHA should be executed without error messages, but the plugin does not appear.

Actual result

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)

System information (as much as possible)

Joomla! 5.2.0

Additional comments

This issue seems to be present since Joomla! 5.2.0. In Joomla! 5.1.4 everything was working fine.

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
5.00

avatar maggus maggus - open - 17 Oct 2024
avatar joomla-cms-bot joomla-cms-bot - change - 17 Oct 2024
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 17 Oct 2024
avatar drmenzelit
drmenzelit - comment - 17 Oct 2024

Which reCaptcha plugin are you using?

avatar Fedik
Fedik - comment - 17 Oct 2024

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.

avatar cmirnow
cmirnow - comment - 17 Oct 2024

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?

avatar maggus
maggus - comment - 17 Oct 2024

@Fedik Both Joomla! 5.2.0 Stable Full Package and Stable Update Package ship captcha files for reCAPTCHA Invisible,
see media/plg_captcha_recaptcha_invisible.

Please double check your statement that Joomla! 5 does not provide any files for reCAPTCHA Invisible.

avatar maggus
maggus - comment - 17 Oct 2024

@drmenzelit I am using Joomla! 5 and reCAPTCHA Invisible. As far as I know reCAPTCHA Visible has been removed with Joomla! 5 upgrade.

avatar universewrld
universewrld - comment - 17 Oct 2024

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.

avatar Fedik
Fedik - comment - 17 Oct 2024

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.

avatar Fedik Fedik - change - 17 Oct 2024
Labels Added: bug
avatar Fedik Fedik - labeled - 17 Oct 2024
avatar brianteeman
brianteeman - comment - 18 Oct 2024

The problem is that the media files were incorrectly added to the list of files to be removed from existing installs

'/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',

avatar Fedik Fedik - change - 18 Oct 2024
Status New Closed
Closed_Date 0000-00-00 00:00:00 2024-10-18 11:11:07
Closed_By Fedik
avatar Fedik Fedik - close - 18 Oct 2024
avatar Fedik
Fedik - comment - 18 Oct 2024

Please test the fix #44306

avatar tschombes
tschombes - comment - 31 Oct 2024

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?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44294.

avatar fgsw
fgsw - comment - 31 Oct 2024

@tschombes

Please test the fix #44306

Originally posted by @Fedik in #44294

avatar tschombes
tschombes - comment - 31 Oct 2024

@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.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44294.
avatar tschombes
tschombes - comment - 31 Oct 2024

@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?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44294.

avatar tschombes
tschombes - comment - 31 Oct 2024

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.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44294.
avatar tschombes
tschombes - comment - 8 Nov 2024

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

avatar richard67
richard67 - comment - 9 Nov 2024

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:

  • media/plg_captcha_recaptcha_invisible/js/recaptcha.js
  • media/plg_captcha_recaptcha_invisible/js/recaptcha.min.js
  • media/plg_captcha_recaptcha_invisible/js/recaptcha.min.js.gz

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.

avatar dragonpil
dragonpil - comment - 23 Nov 2024

I tested the 3 recaptcha files on my 5.2.1 installation and now it works again


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44294.

Add a Comment

Login with GitHub to post a comment