Moodle

captcha notice found in logs

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.9.2
  • Fix Version/s: 1.9.3
  • Component/s: Authentication
  • Labels:
    None
  • Database:
    Any
  • Affected Branches:
    MOODLE_19_STABLE
  • Fixed Branches:
    MOODLE_19_STABLE

Description

Was looking some apache log files (at moodle.org) when I found a lot of:

PHP Notice: Undefined index: recaptcha_challenge_field in /var/www/html/moodle/login/signup_form.php on line 142, referer: http://moodle.org/login/signup.php

Ciao

Activity

Hide
Nicolas Connault added a comment -

This should solve it. Please confirm, Eloy.

Show
Nicolas Connault added a comment - This should solve it. Please confirm, Eloy.
Hide
Petr Škoda (skodak) added a comment -

I think this is not correct:
function signup_captcha_enabled() { global $CFG; return isset($CFG->recaptchapublickey) && isset($CFG->recaptchaprivatekey) && get_config('auth/email', 'recaptcha'); }

there should be !empty() because there is empty string in it

Show
Petr Škoda (skodak) added a comment - I think this is not correct: function signup_captcha_enabled() { global $CFG; return isset($CFG->recaptchapublickey) && isset($CFG->recaptchaprivatekey) && get_config('auth/email', 'recaptcha'); } there should be !empty() because there is empty string in it
Hide
Petr Škoda (skodak) added a comment -

isset() fixed, reclosing

Show
Petr Škoda (skodak) added a comment - isset() fixed, reclosing
Hide
Eloy Lafuente (stronk7) added a comment -

Closing, thanks!

Show
Eloy Lafuente (stronk7) added a comment - Closing, thanks!

Dates

  • Created:
    Updated:
    Resolved: