MyBB Community Forums

Full Version: admin panel settings update not working
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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;
	}
See if there are any problems in Admin CP's Tools & Maintenance → File Verification.