Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When the module is first enabled a number of PHP warnings are generated because no captcha 'type' (image, math etc) has yet been selected.
The module trys to loads an empty string - 'captcha_.inc' file name.
Comment | File | Size | Author |
---|---|---|---|
#1 | patch_16.txt | 747 bytes | xeniac |
Comments
Comment #1
xeniac CreditAttribution: xeniac commented_captcha_load() tries to access a system variable that does not exist at this moment.
Way 1 to solve the Problem:
change
$captcha_type = variable_get("captcha_type", NULL);
to$captcha_type = variable_get("captcha_type", 'math');
Way 2:
Check if variable_get() returns NULL and exit with FALSE.
Comment #2
arnabdotorg CreditAttribution: arnabdotorg commentedFixed.