2021-11-26, 10:54 AM
hi, i can't update anything from admin panel. it gives the following error.
Fatal error: Uncaught Error: Undefined class constant 'NOCAPTCHA_RECAPTCHA' in xxx/admin/modules/config/settings.php:1035 Stack trace: #0 xxx/admin/index.php(822): require() #1 {main} thrown in xxx/admin/modules/config/settings.php on line 1035
:1035 codeblock like this
Fatal error: Uncaught Error: Undefined class constant 'NOCAPTCHA_RECAPTCHA' in xxx/admin/modules/config/settings.php:1035 Stack trace: #0 xxx/admin/index.php(822): require() #1 {main} thrown in xxx/admin/modules/config/settings.php on line 1035
:1035 codeblock like this
if(in_array($captchaimage, array(captcha::NOCAPTCHA_RECAPTCHA, captcha::RECAPTCHA_INVISIBLE)) && (!$recaptchaprivatekey || !$recaptchapublickey))
{
$set_captcha_image = true;
}
else if(in_array($captchaimage, array(captcha::RECAPTCHA_V3)) && (!$recaptchaprivatekey || !$recaptchapublickey || !$recaptchascore))
{
$set_captcha_image = true;
}
else if(in_array($captchaimage, array(captcha::HCAPTCHA, captcha::HCAPTCHA_INVISIBLE)) && (!$hcaptchaprivatekey || !$hcaptchapublickey))
{
$set_captcha_image = true;
}