Title: [Plugin: MailChimp Widget] Mailchimp Error
Last modified: August 20, 2016

---

# [Plugin: MailChimp Widget] Mailchimp Error

 *  [rgoins](https://wordpress.org/support/users/rgoins/)
 * (@rgoins)
 * [14 years ago](https://wordpress.org/support/topic/plugin-mailchimp-widget-mailchimp-error/)
 * Is there any way to have the widget display a more specific error? For example,
   if an email address is already taken then have the error say something to the
   effect of “the email address is already in use”. This is the BIGGEST complaint
   I have because I get numerous reports of people not being able to submit and 
   it would be a HUGE benefit from a troubleshooting perspective to have a more 
   detailed error.
 * [http://wordpress.org/extend/plugins/mailchimp-widget/](http://wordpress.org/extend/plugins/mailchimp-widget/)

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

 *  [Melfith](https://wordpress.org/support/users/melfith/)
 * (@melfith)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-mailchimp-widget-mailchimp-error/#post-2805971)
 * 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
 *  [Melfith](https://wordpress.org/support/users/melfith/)
 * (@melfith)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-mailchimp-widget-mailchimp-error/#post-2805972)
 * 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;
        }
       }
       ```
   
 *  [yslifeapp](https://wordpress.org/support/users/yslifeapp/)
 * (@yslifeapp)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-mailchimp-widget-mailchimp-error/#post-2805973)
 * 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?

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

The topic ‘[Plugin: MailChimp Widget] Mailchimp Error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/mailchimp-widget.svg)
 * [MailChimp Widget](https://wordpress.org/plugins/mailchimp-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mailchimp-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mailchimp-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/mailchimp-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailchimp-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailchimp-widget/reviews/)

## Tags

 * [submit](https://wordpress.org/support/topic-tag/submit/)

 * 3 replies
 * 3 participants
 * Last reply from: [yslifeapp](https://wordpress.org/support/users/yslifeapp/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-mailchimp-widget-mailchimp-error/#post-2805973)
 * Status: not resolved