Viewing 1 replies (of 1 total)
  • Thread Starter StevenP94

    (@stevenp94)

    I found a cause:
    I’m using Conditional Fields for Contact Form 7 and when there are hidden fields, this instruction

    $result->invalidate( $tag, self::getErrorTextByForm( $form_id ) );

    has no effect.

    This is into the ContactForm.php at line 470

    I’m writing on support page of that plugin for this.

    During my tests I found another error:
    in the same file Integration/Plugins/ContactForm.php, in the

    public function addAcceptedDate( int $form_id = 0 ) {

    there is a missing ! in the line 323, in this way the _mail meta is never populated with the [wpgdprc] tag.

    I changed from:

    $pattern = '/(\[' . $this->getFieldTag() . '\])/';
                    preg_match( $pattern, $value['body'], $matches );
                    if ( empty( $matches ) ) {
                            return;
                    }

    to

    $pattern = '/(\[' . $this->getFieldTag() . '\])/';
                    preg_match( $pattern, $value['body'], $matches );
                    if ( ! empty( $matches ) ) {
                            return;
                    }

    Still investigating

Viewing 1 replies (of 1 total)
  • The topic ‘CF7 send mails with no gdpr acceptance’ is closed to new replies.