Contact form 7 integration fails
-
I am trying to configure the contact 7 integration but it fails.
All plugins are latest versions.
The Contact 7 part of the functionality works fine.
I have two mandatory fields in the MailChimp list, FNAME and LNAME. In the Contact 7 form there are two corresponding fields, also named FNAME and LNAME. Thus, I add the following code to functions.php:function additional_contact_form_7_data( $merge_variables, $cf7_variables ) { // Check our $cf7_variables array for 'FNAME' if ( isset( $cf7_variables['FNAME'] ) ) { // Filter name and add it to our MailChimp merge variables array $merge_variables['FNAME'] = filter_var( $cf7_variables['FNAME'], FILTER_SANITIZE_STRING ); } if ( isset( $cf7_variables['LNAME'] ) ) { // Filter name and add it to our MailChimp merge variables array $merge_variables['LNAME'] = filter_var( $cf7_variables['LNAME'], FILTER_SANITIZE_STRING ); } return $merge_variables; } add_filter( 'yikes-mailchimp-contact-form-7', 'additional_contact_form_7_data', 10, 2 );
When completing the form, there is no doubt that the fields FNAME and LNAME are completed, as I see them in the email that Contact 7 sends me.
I can also confirm that the Contact 7 field for the subscriber’s email address is defined as ‘[email* your-email]’ and that the integration checkbox field is defined as ‘[yikes_mailchimp_checkbox]’.Nonetheless, no subscriber is recorded at MailChimp and no mail is sent to that subscriber by MailCHimp to confirm the subscription.
The debug log contains the entry:
Yikesinc_eme_missing_body Page: Checkbox Integrations || Type: Checkbox Integration Subscribe User || Time: 9 February 2019 11:45I am not sure how to interpret that message. What does “eme_missing_body” mean? Do you see what I have forgotten or done wrong?
- The topic ‘Contact form 7 integration fails’ is closed to new replies.