Error in reCaptcha plugin after updating to the latest version
-
There is an error in your reCaptcha plugin
um-recaptcha-form.php
line 29:$t_args = compact( 'args', 'attrs', 'options', 'your_sitekey' );
your_sitekey is undefined. This causes some serious problems during the registration and login and some other things.
I’ve fixed it with adding this before the
t_args
definition. This fixed it but I’m not sure if this is a good fix:$your_sitekey = UM()->options()->get( 'g_recaptcha_sitekey' );
Removing it also fixes it. I’ve checked the template captcha.php and can’t find any usage of this key. They are only using it from the options object, also transmitted to the template. So removing it is the better solution.
Please fix it ASAP!! And maybe you should use Intellij because Intellij said, that the variable is undefined ??
- The topic ‘Error in reCaptcha plugin after updating to the latest version’ is closed to new replies.