WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
Doesn't work with Captcha code (2 posts)

  1. Rincewind
    Member
    Posted 3 years ago #

    This plugin doesn't work with the captcha on the form, I keep getting these errors when have debug turned on.

    On the website :-
    Notice: Undefined offset: 0 in /home/daniel/public_html/development-sites/epia.homelinux.net/web/public/wordpress/wp-content/plugins/contact-form-7/modules/captcha.php on line 64

    In the admin area :-
    Notice: Undefined index: name in /home/daniel/public_html/development-sites/epia.homelinux.net/web/public/wordpress/wp-content/plugins/contact-form-7/includes/classes.php on line 179

    Notice: Undefined index: name in /home/daniel/public_html/development-sites/epia.homelinux.net/web/public/wordpress/wp-content/plugins/contact-form-7/includes/classes.php on line 184

  2. scariou
    Member
    Posted 3 years ago #

    I had the same problem and finally found the solution.

    The captcha.php script requires a "value" to be defined in the captchar and captchac tags (see here for details of the tag syntax). So I used the following trick : add "" at the end of the captchar and captchacfield.

    The code of your contact form 7 will look like this :

    <p>Your Name (required)<br />
        [text* your-name] </p>
    
    <p>Your Email (required)<br />
        [email* your-email] </p>
    
    <p>Subject<br />
        [text your-subject] </p>
    
    <p>Your Message<br />
        [textarea your-message] </p>
    
    <p>Security code [captchac captcha-818 ""]<br />
    [captchar captcha-818 ""]

    Regards,

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic