Mailchimp Server Error when a user is already subscribed
-
Hello,
I use this plugin on my website. The newsletter subscription is done in a custom registration function that use the WordPress API. So I had only add this checkbox : <input type=”checkbox” name=”mc4wp-subscribe” value=”1″ />
to the form like said here : https://mc4wp.com/kb/add-sign-checkbox-custom-form/The plugin do his job and subscribe the user, but when a user is already subscribed to the list, it stops my registration script to display a Big Error page (tried to translate well) :
MailChimp for WordPress – Error
The Mailchimp server sent the following error message after your subscription request :
[email protected] is already subscribed to the list.
Here you can see data sent to Mailchimp :Email Address :
[email protected]
Merge vars :
Array
(
[NAME] => Jane Doe
[FNAME] => Jane
[LNAME] => Doe
[OPTIN_IP] => 11.111.111.111
)This message is only visible to administrators in order to allow debugging.
I got this message with WP_DEBUG constant to true or false.
I tried to hack the plugin to avoid this by override to true the update_existing_user arg but it didn’t work.
Is there a way to get around this bug please ? It’s really annoying to block user registrations for a little issue like that.
Kind regards.
- The topic ‘Mailchimp Server Error when a user is already subscribed’ is closed to new replies.