Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reCAPTCHA Invisble plugin fails execution after Joomla! Core update 5.2.0 #44294

Closed
maggus opened this issue Oct 17, 2024 · 9 comments · May be fixed by #44306
Closed

reCAPTCHA Invisble plugin fails execution after Joomla! Core update 5.2.0 #44294

maggus opened this issue Oct 17, 2024 · 9 comments · May be fixed by #44306

Comments

@maggus
Copy link

maggus commented Oct 17, 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.

@drmenzelit
Copy link
Contributor

Which reCaptcha plugin are you using?

@Fedik
Copy link
Member

Fedik commented Oct 17, 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.

@cmirnow
Copy link

cmirnow commented Oct 17, 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?

@maggus
Copy link
Author

maggus commented Oct 17, 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.

@maggus
Copy link
Author

maggus commented Oct 17, 2024

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

@universewrld
Copy link

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.

@Fedik
Copy link
Member

Fedik commented Oct 17, 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.

@brianteeman
Copy link
Contributor

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

@Fedik
Copy link
Member

Fedik commented Oct 18, 2024

Please test the fix #44306

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
7 participants