I get the error

Call to undefined function recaptcha_get_signup_url() in /.../drupal-7.14/sites/all/modules/recaptcha/recaptcha.admin.inc on line 21

which I try to configure reCAPTCHA

Any ideas?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Liam Morland’s picture

Status: Active » Needs review
FileSize
1.5 KB

If recaptcha_get_signup_url() does not exist, it means recaptchalib failed to load in the call to module_load_include() in _recaptcha_load_library() at the bottom of recaptcha.module. I don't know why that would happen. Check that the file "recaptcha-php-1.11/recaptchalib.php" exists inside the recaptcha module directory and is readable.

Try this patch. It should give a better error message instead of white screen when the library doesn't load.

Liam Morland’s picture

Sorry, use this patch. The other had a deliberately broken library path for testing purposes.

Liam Morland’s picture

Version: 7.x-1.9 » 7.x-1.x-dev
Status: Needs review » Fixed
Liam Morland’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev
Status: Fixed » Patch (to be ported)

  • Liam Morland committed a008f74 on 7.x-1.x, 7.x-2.x
    Issue #1921794: Better error message when unable to load recaptchalib.
    

  • Liam Morland committed a008f74 on 8.x-2.x
    Issue #1921794: Better error message when unable to load recaptchalib.
    

  • Liam Morland committed a008f74 on 6.x-2.x
    Issue #1921794: Better error message when unable to load recaptchalib.
    
hass’s picture

Issue summary: View changes
Status: Patch (to be ported) » Fixed

  • hass committed 4db7ac9 on 6.x-1.x
    Issue #1921794 by hass: Call to undefined function...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.