• Resolved rodeista

    (@rodeista)


    Hi, thanks for great plugin. But after update I have problem – I have custom register form and I am using this code to signup people to list based on their language (together with registration on my website):

    <p class="zaskrtavatko"><label>
    	<input type="checkbox" name="mc4wp-subscribe" value="1" checked />
     <?php if (ICL_LANGUAGE_CODE == "cs"): ?>
      <input type="hidden" name="_mc4wp_lists[]" value="b927578daf" />
      <?php endif; ?>
      <?php if (ICL_LANGUAGE_CODE == "en"): ?>
      <input type="hidden" name="_mc4wp_lists[]" value="482e380410" />
      <?php endif; ?>

    But now nothing happens after the registration ?? Where is the mistake?

    Website is: https://www.wctips.net

    THanks a lot!
    Tomas

    https://www.ads-software.com/plugins/mailchimp-for-wp/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Danny van Kooten

    (@dvankooten)

    Hi Tomas,

    Is this after the most recent update, version 3.0.12?

    Your PHP error log should give us a pointer in case anything fails when trying to subscribe someone to your MailChimp list. Can you please find it and see if there’s anything that’ll help us to debug this issue?

    https://www.ads-software.com/plugins/error-log-monitor/ may be of help here.

    Let me know please!

    Thread Starter rodeista

    (@rodeista)

    Yes, I it is after update to 3.0.12

    I runned Error log monitor and I am trying register new user, but nothing happens – and “The log file is empty.”

    If I am setting list which I want directly in the code, I don’t need setup anything in plugin settings, right?

    Plugin Author Danny van Kooten

    (@dvankooten)

    Hi Tomas,

    If you add a list through the hidden HTML field, then there is nothing you need to configure in the plugin settings.

    That said, it might be helpful to let the plugin handle the correct HTML for the checkbox by removing the checkbox from your own HTML and enabling the registration form integration explicitly. You can keep the custom HTML for the list, although I’d remove that from the form and use the mc4wp_lists filter for that.

    add_filter( 'mc4wp_lists', function( $lists ) {
    	if( ICL_LANGUAGE_CODE === "cs" ) {
    		$lists = array( 'b927578daf' );
    	}
    
    	if( ICL_LANGUAGE_CODE === "en" ) {
    		$lists = array( '482e380410' );
    	}
    
    	return $lists;
    });

    Alternatively, you can use mc4wp_integration_lists (all integrations) or mc4wp_integration_wp-registration-form_lists (registration form) to only target specific integrations.

    Let me know if enabling the integration in the plugin settings does resolve this please.

    Thread Starter rodeista

    (@rodeista)

    Ok,

    I deleted my check box – code with lists no, enabled “Registration Form integration” and try to register user – and nothing happens.

    So I tried delete code with lists and set the list directly in Registration Form integration and nothing happens.

    Thread Starter rodeista

    (@rodeista)

    Danny, did you find what could be wrong pls?

    Thread Starter rodeista

    (@rodeista)

    So I updated for the last version, but it looks that problem is still here ??

    Could you hepl me pls??

    In old version – before big update – worked everything great

    Thanks
    Tomas

    Plugin Author Danny van Kooten

    (@dvankooten)

    Hi Tomas,

    Sorry for my delay in getting back to you. Did you manage to figure this one out already? I recall having an email conversation but I’m not entirely sure.

    Any way: does your debug log on MailChimp for WP > Other show any errors or warnings which will help us in debugging this issue?

    Thanks!

    Thread Starter rodeista

    (@rodeista)

    Hi Danny,

    sory for my delay now ?? I littlebit missed your message. But problem is still there ?? (I have last updated version of plugin)

    And no errors ??

    I dont know, If I have some error in code, but before I wrote you first message everything worked great – and subscribers was added to mailchimp correctly

    I am waiting for your reply
    Thanks a lot!
    Tomas

    Hi I am having the same problem. no errors are being recorded and the additional data is not being sent through to mailchimp. I am using just a standard contact form 7

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘MC4WP and WPML problem – does not send to the list’ is closed to new replies.