Title: fatal error on plugin settings page
Last modified: November 21, 2016

---

# fatal error on plugin settings page

 *  Resolved [cpaprotna](https://wordpress.org/support/users/cpaprotna/)
 * (@cpaprotna)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-on-plugin-settings-page/)
 * I am getting the following error messages in my debug.log file when I try to 
   enter the settings page on my site:
 * [21-Nov-2016 19:50:10 UTC] PHP Notice: Undefined index: detail in /home/energyratersplus/
   public_html/wp-content/plugins/mailchimp/lib/mailchimp/mailchimp.php on line 
   52
    [21-Nov-2016 19:50:10 UTC] PHP Fatal error: Cannot use object of type WP_Error
   as array in /home/energyratersplus/public_html/wp-content/plugins/mailchimp/mailchimp.
   php on line 584
 * Is there an update coming soon for WordPress 4.6.1?

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

 *  [mcsupport](https://wordpress.org/support/users/mcsupport/)
 * (@mcsupport)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-on-plugin-settings-page/#post-8468572)
 * Hi [@cpaprotna](https://wordpress.org/support/users/cpaprotna/),
 * Thanks for the post! I definitely want to take a look and see what’s going on
   here. Can you please get back to me with the following details?
 * – What version of PHP is currently running on your site?
    – What theme is currently
   installed? – What other plugins are currently active? – If you temporarily revert
   to a default WordPress theme and deactivate all other installed plugins, does
   the issue persist? (This may sound a bit silly but it helps us rule out potential
   theme/plugin conflicts)
 * That being said, while we are experts at the plugin we developed, we aren’t as
   intimately familiar with WordPress and because that is the case we won’t be your
   best resource for questions relating to WordPress specifically. However, I did
   locate this WordPress release archive that notes the most current available secured
   version of WordPress being 4.6.1, with some Beta variations of WordPress 4.7 
   available as well: [https://wordpress.org/news/category/releases/](https://wordpress.org/news/category/releases/)
 * I’ll keep my eyes open for your reply – thanks again!
 * Pearl
 *  [pcarvalho](https://wordpress.org/support/users/pcarvalho/)
 * (@pcarvalho)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-on-plugin-settings-page/#post-8475113)
 * Hi, sorry to interrupt,
 * but in that file
 * /home/energyratersplus/public_html/wp-content/plugins/mailchimp/lib/mailchimp/
   mailchimp.php, line 48 to 62
 * should look like this:
 *     ```
               if( is_array( $request ) && !empty( $request['response']['code'] ) ){
                   if( $request['response']['code'] == 200 ) {
                       return json_decode( $request['body'], true );
                   } else {
                       $error = json_decode( $request['body'], true );
                       if( isset( $error['detail'] ) ){
                           $error = new WP_Error('mailchimp-get-error', $error['detail']);
                       } else {
                           $error = new WP_Error('mailchimp-get-error', __( "An error occured", 'mailchimp_i18n' ) );
                       }
                       return $error;
                   }
               } else {
                   return false;
               }
       ```
   
 * hope it helps,
    p.
 *  Thread Starter [cpaprotna](https://wordpress.org/support/users/cpaprotna/)
 * (@cpaprotna)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-on-plugin-settings-page/#post-8503876)
 * When I finally went back to work on this, the error was gone. I’m not sure what
   was changed on the site.
 *  [mcsupport](https://wordpress.org/support/users/mcsupport/)
 * (@mcsupport)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-on-plugin-settings-page/#post-8507146)
 * Hey [@cpaprotna](https://wordpress.org/support/users/cpaprotna/),
 * Glad to hear things seem to have sorted themselves out here. That said, if something
   crops up and you have more questions, always feel free to let us know!
 * Thanks,
    Malachite

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

The topic ‘fatal error on plugin settings page’ is closed to new replies.

 * ![](https://ps.w.org/mailchimp/assets/icon.svg?rev=3156997)
 * [Mailchimp List Subscribe Form](https://wordpress.org/plugins/mailchimp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mailchimp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mailchimp/)
 * [Active Topics](https://wordpress.org/support/plugin/mailchimp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailchimp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailchimp/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [mcsupport](https://wordpress.org/support/users/mcsupport/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-on-plugin-settings-page/#post-8507146)
 * Status: resolved