Support » Plugin: Contact Form 7 Confirm Email Field » Works, but no red error message

  • I installed the Contact Form 7 plugin, and then the Confirm email plugin. It works, but does not show the red error message under the email field; it only shows the validation error message down at the bottom of my form. Also, I noticed that the plugin details gives me a message: Warning: This plugin has not been tested with your current version of WordPress. I don’t know if this might be the problem. Can you tell me what I might be doing wrong, or let me know if you are going to update this plugin if that is the issue? Thanks much! Ann

Viewing 5 replies - 1 through 5 (of 5 total)
  • same here, just get error message
    Validation errors occurred. Please confirm the fields and submit it again.
    at the bottom of form.
    I think it’s error because no invalid_confirm_email message

    elseif (  $value != $_SESSION['emailval'] ) {
                $result->invalidate( $tag, wpcf7_get_message( 'invalid_confirm_email' ) );

    This seems like it would be a really nice plugin if the author would maintain/fix it. I am NOT a coder, but I waded into this because I really think this sort of validation is valuable.

    I found the comment by aswitahidayat to be correct. There was no message in the code for invalid_confirm_email. Digging back into a much older support thread, I found this:

    add_filter( 'wpcf7_messages', 'confirm_email_messages');
    function confirm_email_messages($messages) {
        $messages['invalid_confirm_email'] = array(
                'description' => __('The email addresses do not match.'),
                'default' => __('The email addresses do not match.'),
            return $messages;

    After some fiddling around, I determined where to insert the “add_filter…” and “function…” pieces. Plugin seems to work now. What I don’t understand is why the author says he fixed this some 8 months ago, but the above fix is not in the plugin I installed today. I’m going to give this plugin a 2-star rating in hopes the author will respond and get it right for others to use.

    Hi everybody,
    I need too install this plugin and I need help plese.
    I install this plugin but but something doesn’t work.
    I had no error messages. If I add the above code in function.php, the plugin will work?
    Thanks very much

    Hello… Great code! I added it as well…

    So now here is WHER to add it 🙂

    1. Open the php file
    –> Named : contact-form-7-confirm-email.php
    –> In folder : […]wp-content/plugins/contact-form-7-confirm-email-feild (yes, f e i l d, this is a typo from the author of the plug in)

    2. Add the filter:
    –> What : add_filter( ‘wpcf7_messages’, ‘confirm_email_messages’);
    –> Where : at line 23 (for example, must be with the others)

    3. Add the function it refers to :
    –> What :
    //add error message
    function confirm_email_messages($messages) {
    $messages[‘invalid_confirm_email’] = array(
    ‘description’ => __(‘The email addresses do not match.’),
    ‘default’ => __(‘The email addresses do not match.’),

    return $messages;
    –> Where : at line 109 (for example, must be outside an existing function.

    I don’t know if I’m allowed to paste the complete code, due to any copyright or so, thus I’ll make a second post just underneath with it… It might get banned though.

    Hope this adds up to the wonderful post from Kliffblack!

    I’ll give still a 4 stars…

    Also added that the plugin gets the TEXT class so the look would be exactly the same as the email…

    So here is what to do :
    What : $class .= ‘ ‘.wpcf7_form_controls_class( $tag->type, ‘wpcf7-text’ );
    Where : at line 50

    Hope all this help…

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Works, but no red error message’ is closed to new replies.