You can choose to update the subscriber instead of throwing an error. In the mcapi.class.php line 1567 put $update_existing=true instead of false in the listSubscribe function
You could add the lines below in the ns_widget_mailchimp.class.php :
Just before the line 156
$subscribed = $mcapi->listSubscribe($this->get_current_mailing_list_id($_GET['ns_mc_number']), $_GET[$this->id_base . '_email'], $merge_vars);
Put :
$listMemberInfo = $mcapi->listMemberInfo($this->get_current_mailing_list_id($_GET['ns_mc_number']), array($_GET[$this->id_base . '_email']));
if ($mcapi->errorCode){
$response = json_encode($result);
exit($response);
}
else{
if ($listMemberInfo['success']){
$result['error'] = 'The email address is already in use';
$response = json_encode($result);
exit($response);
}
}
And just before the line 207
$subscribed = $mcapi->listSubscribe($this->get_current_mailing_list_id($_POST['ns_mc_number']), $_POST[$this->id_base . '_email'], $merge_vars);
Put :
$listMemberInfo = $mcapi->listMemberInfo($this->get_current_mailing_list_id($_POST['ns_mc_number']), array($_POST[$this->id_base . '_email']));
if ($mcapi->errorCode)
return false;
else{
if ($listMemberInfo['success']){
$this->subscribe_errors = 'The email address is already in use';
return false;
}
}
Ok I am getting an error message…When I go to Settings>Mailchimp Setup…I get an error message: Parse error: syntax error, unexpected T_REQUIRE_ONCE in /home/sarah12/yslifeapp.com/wp-admin/options-general.php on line 12
I went through the FTP couldn’t find the error and went through the MYSQL and even clicked Plugins>Installed Plugins>Edit and still wasn’t able to see the error, where do I go and what is the error on Line 12?