• Resolved LinkAdvisor

    (@linkadvisor)


    Hello, please help,

    I got the following error after submitting my cf7 form:

    Invalid Resource Page: Checkbox Integrations ||
    Type: Checkbox Integration Subscribe User

    I read, the filter above could be used to see the data that’s being sent to MailChimp. However, my associated CFDB databse shows me all fields being used correctly… at least as far as the path to CFDB goes.

    Of course I prepared the integrations and I added the [yikes_mailchimp_checkbox] shortcode to cf7. But no data is transfered to MailChimp, not even the email field.

    Any help would be much appreciated.

    Thanks/Rainer

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Tracy Levesque

    (@liljimmi)

    ?????? YIKES, Inc. Co-Owner

    Hello.

    Is your form single opt-in or double?

    Thank you.
    -Tracy

    Thread Starter LinkAdvisor

    (@linkadvisor)

    Hi Tracy,

    It is single optin, but I use that filter too:

    add_filter( 'yikes-mailchimp-checkbox-integration-body', 'set_integrations_to_single_optin', 10, 2 );
    
    function set_integrations_to_single_optin( $request_body, $integration_type ) {
    	$request_body['status_if_new'] = 'subscribed';
    	$request_body['status']        = 'subscribed';
    
    	return $request_body;
    }

    [Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]

    Not sure that filter works, though. I saw no difference.

    Thanks looking into it.

    Rainer

    • This reply was modified 6 years, 11 months ago by bdbrown.
    Thread Starter LinkAdvisor

    (@linkadvisor)

    p.s.

    I also use:

    // Defining the filter
    add_filter( 'yikes-mailchimp-contact-form-7', 'additional_contact_form_7_data', 10, 2 );
    
    // And defining our function to grab CF7 form data and send it off to MC
    function additional_contact_form_7_data( $merge_variables, $cf7_variables ) {
     
    	$merge_variables['XFNAME'] = isset( $cf7_variables['your-full_name'] ) ? $cf7_variables['your-full_name'] : '';

    [Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]

    etc etc etc

    • This reply was modified 6 years, 11 months ago by bdbrown.
    Thread Starter LinkAdvisor

    (@linkadvisor)

    Hi,

    Any idea what to do? I need urgently your suggestions…

    And yes, I used the filter ‘yikes-mailchimp-checkbox-integration-body’ already , but I think you have more options for it how to use it re finding out where my problem is (re invalid resources). Beyond the use of the filter as I did already. That is the reason why I asked.

    Thanks

    Rainer

    • This reply was modified 6 years, 11 months ago by LinkAdvisor. Reason: Adding info
    Plugin Contributor Jeremy Pry

    (@jpry)

    Hi Rainer,

    Based on the error message you mentioned, I think there might be a problem with the merge variables that the API is receiving. Here are the different things I think might be wrong:

    • The merge variable named XFNAME might be incorrect. Double-check that this is the correct variable name in MailChimp.
    • The API could be giving an error because you’re sending an empty value for the merge variable in some cases. I would suggest modifying your code to send the data if it exists in your form, but don’t set the variable at all when that data is not present in the form.
    • It’s possible that the data being added to the merge variable is posing a problem to the API. This could mean that the data needs to be cleaned or processed more before being sent to MailChimp’s API.

    In your previous messages, you mentioned a few different filters, and you provided a few different code samples. Could you provide a full sample of the code you’re using, as well as the exact error response that you’re seeing? That would make it easier to help troubleshoot what’s going wrong.

    Thanks,
    Jeremy

    • This reply was modified 6 years, 11 months ago by Jeremy Pry.
    Thread Starter LinkAdvisor

    (@linkadvisor)

    Hello Jeremy,

    I can’t find a problem on my side.

    I have changed your MailChimp plugin against another one and I got no problems. Everything is working now. I did not needed to modify codes anywhere (except the mapping which could be done easily)

    While your provided wp-form with connectivity to MailChimp works entirely, your integration with contact form 7 does NOT so on my wordpress site and with the cf7 plugin.

    I give up the issue now as my new replacement of your plugin works fine for me. All data will be correctly transferred to MailChimp now. In addition, I can make a local backup of the forms data with CFDB as a double back-up, but that was of course not the mentioned problem.

    Thank you for your help,

    Rainer

    Plugin Contributor Tracy Levesque

    (@liljimmi)

    ?????? YIKES, Inc. Co-Owner

    Hi Rainer,

    Thank you for the update.

    -Tracy

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to use the filter: yikes-mailchimp-checkbox-integration-body?’ is closed to new replies.