Title: Warning: Undefined array key &#8220;SERVER_NAME&#8221;
Last modified: September 4, 2025

---

# Warning: Undefined array key “SERVER_NAME”

 *  Resolved [eclev91](https://wordpress.org/support/users/eclev91/)
 * (@eclev91)
 * [9 months ago](https://wordpress.org/support/topic/warning-undefined-array-key-server_name-2/)
 * Warning: Undefined array key “SERVER_NAME” in …/wp-content/plugins/mailchimp-
   for-woocommerce/includes/class-mailchimp-woocommerce-enhanced-logger.php on line
   258
 * In a WP-CLI environment.

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

 *  Plugin Support [KJ](https://wordpress.org/support/users/kjvextras/)
 * (@kjvextras)
 * [9 months ago](https://wordpress.org/support/topic/warning-undefined-array-key-server_name-2/#post-18629890)
 * Hi [@eclev91](https://wordpress.org/support/users/eclev91/) thanks for surfacing
   this – We will look into it and will circle back. If you like us to take a deeper
   dive, please provide your URL and turn on remote diagnostics. Any other context
   of where this error was surfaced would also be beneficial.
 *  [richardmichael](https://wordpress.org/support/users/richardmichael/)
 * (@richardmichael)
 * [6 months, 3 weeks ago](https://wordpress.org/support/topic/warning-undefined-array-key-server_name-2/#post-18722661)
 * Happening for my sites too. What is the latest PHP version you support/test against,
   KJ?
 * Edit: error_log in the filesystem is 150 KB, all filled with this error repeatedly.
    -  This reply was modified 6 months, 3 weeks ago by [richardmichael](https://wordpress.org/support/users/richardmichael/).
 *  Plugin Support [KJ](https://wordpress.org/support/users/kjvextras/)
 * (@kjvextras)
 * [2 months, 4 weeks ago](https://wordpress.org/support/topic/warning-undefined-array-key-server_name-2/#post-18846883)
 * Hi there, we tested up to PHP: 7.4 – check out our latest plugin [v6.0](https://github.com/mailchimp/mc-woocommerce).
 * Please let us know if you still need any help and we’ll be glad to reopen and
   troubleshoot further. Please note, that the best way to reach us is over at the
   GitHub plugin page: [https://github.com/mailchimp/mc-woocommerce/](https://github.com/mailchimp/mc-woocommerce/).
   From there, you can receive direct responses from the development team, log new
   issues, download the latest version, and track existing support tickets.

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwarning-undefined-array-key-server_name-2%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](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/)

 * 4 replies
 * 3 participants
 * Last reply from: [KJ](https://wordpress.org/support/users/kjvextras/)
 * Last activity: [2 months, 4 weeks ago](https://wordpress.org/support/topic/warning-undefined-array-key-server_name-2/#post-18846883)
 * Status: resolved