Title: Fatal error: API key invalid
Last modified: January 26, 2022

---

# Fatal error: API key invalid

 *  Resolved [andreu](https://wordpress.org/support/users/andreu/)
 * (@andreu)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-api-key-invalid/)
 * Hi,
 * We had a problem with our API key and suddenly it stopped working. We created
   a new one but when we access your plugin panel it says:
 * Mailchimp says: API Request Error – API Key InvalidYour API key may be invalid,
   or you’ve attempted to access the wrong datacenter. on 1861 in /www/public/wp-
   content/plugins/mailchimp-for-woocommerce/includes/api/class-mailchimp-api.php
 * Is there any way we can reset the settings to enter the new API key somehow?
 * Thanks

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

 *  Plugin Support [khungate](https://wordpress.org/support/users/khungate/)
 * (@khungate)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-api-key-invalid/#post-15303062)
 * Hi [@andreu](https://wordpress.org/support/users/andreu/), if this has happened
   to you, you’re unfortunately going to have to re-install the plugin.
 * Things that could possibly have been a problem:
 * 1. Did you by chance have someone help with your Mailchimp account and then remove
   them?
 * 2. Did you happen to do a database rollback?
 * Either way at this stage you’ll have to uninstall and reinstall the plugin I’m
   afraid. You’ll also need to make sure that Mailchimp delete’s the “old store”
   from your account to make sure you don’t have duplicate stores getting in the
   way.
 * Please let us know if you’re running into any trouble – but also make sure to
   hop on your Mailchimp support ticket while you’re logged into your account and
   they’ll be more than happy to get you all squared up!
    -  This reply was modified 4 years, 4 months ago by [khungate](https://wordpress.org/support/users/khungate/).
 *  Thread Starter [andreu](https://wordpress.org/support/users/andreu/)
 * (@andreu)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-api-key-invalid/#post-15306952)
 * Hi,
 * Deactivating + removing the plugin to re-install it has worked.
    What happened
   is very strange, we may lost a lot of subscribers because during months we had
   this trouble without knowing it.
 * Thanks for your help!
 *  [MikevHoenselaar](https://wordpress.org/support/users/mikevhoenselaar/)
 * (@mikevhoenselaar)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-api-key-invalid/#post-15323891)
 * “Mailchimp says: API Request Error – API Key InvalidYour API key may be invalid,
   or you’ve attempted to access the wrong datacenter. on 1861 in wp-content/plugins/
   mailchimp-for-woocommerce/includes/api/class-mailchimp-api.php”
 * This is what I am getting as well.
    Not sure what is causing it.

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

The topic ‘Fatal error: API key invalid’ is closed to new replies.

 * ![](https://ps.w.org/mailchimp-for-woocommerce/assets/icon-256x256.png?rev=1509501)
 * [Mailchimp for WooCommerce](https://wordpress.org/plugins/mailchimp-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mailchimp-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mailchimp-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/mailchimp-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailchimp-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailchimp-for-woocommerce/reviews/)

 * 3 replies
 * 5 participants
 * Last reply from: [MikevHoenselaar](https://wordpress.org/support/users/mikevhoenselaar/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-api-key-invalid/#post-15323891)
 * Status: resolved