I just had your same issue and I finally fixed it. To use reCaptcha in "ask a question" page, you need to adjust \includes\classes\observers\class.google_recaptcha.php Otherwise "ask a question" page will still show reCaptcha section but not in use.
Near line 24, add following code:
$pages_to_check[] = 'NOTIFY_ASK_A_QUESTION_CAPTCHA_CHECK';
Near line 40 below if (!$resp->isSuccess()) { Change the following code from:
$event_array = array('NOTIFY_CONTACT_US_CAPTCHA_CHECK' => 'contact', 'NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK' => 'create_account', 'NOTIFY_REVIEWS_WRITE_CAPTCHA_CHECK' => 'review_text');
To
$event_array = array('NOTIFY_CONTACT_US_CAPTCHA_CHECK' => 'contact', 'NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK' => 'create_account', 'NOTIFY_REVIEWS_WRITE_CAPTCHA_CHECK' => 'review_text','NOTIFY_ASK_A_QUESTION_CAPTCHA_CHECK' => 'contact');
zc version is 157 with Observer bug fixed. reCAPTCHA version 3.4



Reply With Quote
