• Resolved knuxchan

    (@knuxchan)


    This issue was brought up a year ago from another user who had to edit the plugin code for it to work. I’m using Mailerlite, and I have Double Opt-In enabled on my Mailerlite account page (under the ‘Subscribe Settings’ option). I set up an embed form via Hustle on my website, and the double opt-in would not trigger. After doing a Google search, it came up with this exact same issue from a year ago in these forums: https://wordpress.org/support/topic/allowing-double-opt-in-with-mailerlite/

    The code was slightly different than what it is now, but I had to comment out this parameter on line 166 of file wp-content/plugins/wordpress-popup/inc/providers/mailerlite/hustle-mailerlite-form-hooks.php:

    'member_status' => $member_status

    Here is the code block in context (lines 160-169) with my commented-out code:

    $entry_fields = array(
        array(
    	'name'  => 'status',
    	'value' => array(
    		'is_sent'       => $is_sent,
    		'description'   => $details,
    		//'member_status' => $member_status,
    	),
        ),
     );

    After commenting out the code, the double opt-in worked as expected. I received the confirmation email and everything. Is it possible for you guys to revisit this issue again? Or was it ever fixed from a year ago? Maybe set a flag or something to enable/disable this if the Mailerlite user wants double opt-in enabled?

    It will be very inconvenient in the meantime to have to keep commenting out this line every time this plugin gets updated. Thanks!

    • This topic was modified 6 years ago by knuxchan. Reason: clarification

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @knuxchan,

    The previous report was fixed quite some time ago and the code that you mentioned is different from the one reported there so it doesn’t seem like the same issue.
    However, I’ll need to have our devs check this out further and see why that code caused issues for you so I have forwarded it over to them for further investigation.

    Cheers,
    Predrag

    Thread Starter knuxchan

    (@knuxchan)

    Thanks for your response and look forward to hearing the results about this issue.

    Hi @knuxchan,

    Our devs checked the code and everything should be in order and such change that you’ve made wasn’t required on our test sites in order to get the email confirmation with Double opt-in enabled.

    Do you perhaps have another plugin or function in a theme that is also using Mailerlite?

    Could you perform a conflict test by disabling your plugins and switching to default WP theme to see if it works after that and the default Hustle code?

    I suggest doing this test on a staging site or if you don’t have one make sure to have a full backup of your live site before performing the test.

    Cheers,
    Predrag

    Thread Starter knuxchan

    (@knuxchan)

    Hey there. Thanks for looking into this issue. No I do not have any other plugins or themes using Mailerlite. I had looked over the code and tested things some more, and it seems I still do not get the double opt in email unless I make that change to the code. I guess ai will just have to look for a way to make a child version of this plugin so it will automatically incorporate the changes if the plugin gets updated.

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @knuxchan ,

    Can you confirm that you’ve run the full conflict test? Maybe there is something else conflicting with Hustle.
    Can you also tell us what PHP version you have on the site?

    kind regards,
    Kasia

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Mailerlite double opt-in does not work’ is closed to new replies.