Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • M Mailing
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Development
  • Mailing
  • Issues
  • #102
Closed (moved) (moved)
Open
Created Oct 30, 2021 by chris_bluejac@chris_bluejac

Undefined index: error-codes in recaptcha_check_answer()

Overview

When non-authenticated user subscribes to mailing list at /civicrm/mailing/subscribe, checks the "I am not a robot" reCAPTCHA, and clicks subscribe. The subscription request is processed properly, but an error is thrown:

Notice: Undefined index: error-codes in recaptcha_check_answer() (line 159 of /bitnami/drupal/modules/contrib/civicrm/ext/recaptcha/lib/recaptcha/recaptchalib.php).

Reproduction steps

  1. /civicrm/mailing/subscribe
  2. complete email address, check relevant mailing list (in this case, "General Newsletter")
  3. Check "I'm not a robot" in reCAPTCHA
  4. Click "Subscribe"
  5. Subscription is processed properly.
  6. Error reported on confirmation page.

Current behaviour

Error message presented. Functionality of reCAPTCHA and subscription is okay.

Notice: Undefined index: error-codes in recaptcha_check_answer() (line 159 of /bitnami/drupal/modules/contrib/civicrm/ext/recaptcha/lib/recaptcha/recaptchalib.php).

Expected behaviour

No error message

Environment Information

  • CiviCRM: 5.40.2
  • PHP: 7.3.27
  • CMS: Drupal 7.82
  • Database: MySQL 5.7.33
  • Web Server: Apache 2.4.46
  • reCAPTCHA: Version 5.40.2

Screenshot_2021-10-31_084608

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking