• Rincewind

    (@rincewind)


    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

Viewing 1 replies (of 1 total)
  • 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,

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Contact Form 7] Doesn't work with Captcha code’ is closed to new replies.