Title: Undefined array key &#8220;detail&#8221;
Last modified: October 12, 2021

---

# Undefined array key “detail”

 *  Resolved [Rafal Sokolowski](https://wordpress.org/support/users/rafalsokolowski/)
 * (@rafalsokolowski)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/undefined-array-key-detail/)
 * PHP message: PHP Warning: Undefined array key “detail” in /www/playground/public/
   wp-content/plugins/mailchimp-for-woocommerce/includes/api/class-mailchimp-api.
   php on line 1894
 * PHP 8
    Mailchimp for WooCommerce 2.5.3

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

 *  Plugin Support [Jordan Rich](https://wordpress.org/support/users/builtbyjordan/)
 * (@builtbyjordan)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/undefined-array-key-detail/#post-15030094)
 * Thanks for writing in and bringing this to our attention. I’ve gone ahead and
   reported this to our development team. I’ll be sure to get this thread updated
   once we know more how to resolve this.
 *  [senquiem](https://wordpress.org/support/users/senquiem/)
 * (@senquiem)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/undefined-array-key-detail/#post-15108700)
 * Hi, will be awaiting for your results, this issue is important for me too.
 * Have a good work!
 *  Plugin Support [khungate](https://wordpress.org/support/users/khungate/)
 * (@khungate)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/undefined-array-key-detail/#post-15115219)
 * Hi [@senquiem](https://wordpress.org/support/users/senquiem/), [@rafalsokolowski](https://wordpress.org/support/users/rafalsokolowski/),
   thanks for your patience. This should be resolved now in the latest release (
   v2.5.4). Please let us know if you need anything else.
 *  [stevebloomer](https://wordpress.org/support/users/stevebloomer/)
 * (@stevebloomer)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/undefined-array-key-detail/#post-15500446)
 * Hi,
 * I am on the latest version of Mailchimp for WooCommerce plugin but get this same
   error message having upgraded to PHP 8:
 * > [27-Mar-2022 20:30:46 UTC] PHP Warning: Undefined array key “detail” in …wp-
   > content/plugins/mailchimp-for-woocommerce/includes/api/class-mailchimp-api.
   > php on line 1898
 * Line 1898 is a single } that follows this segment of the code:
 * `// if we have an array of error data push it into a message
    if (isset($data[‘
   errors’])) { $message = ”; foreach ($data[‘errors’] as $error) { $message .= ‘
   <p>’.$error[‘field’].’: ‘.$error[‘message’].'</p>’; }
 *  [dinodigital](https://wordpress.org/support/users/dinodigital/)
 * (@dinodigital)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/undefined-array-key-detail/#post-15502548)
 * I can see the same problem as this in V2.6.1
 * [28-Mar-2022 13:23:30 UTC] PHP Warning: Undefined array key “detail” in /public/
   wp-content/plugins/mailchimp-for-woocommerce/includes/api/class-mailchimp-api.
   php on line 1898
 * Using PHP 8.

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

The topic ‘Undefined array key “detail”’ 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/)

 * 5 replies
 * 6 participants
 * Last reply from: [dinodigital](https://wordpress.org/support/users/dinodigital/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/undefined-array-key-detail/#post-15502548)
 * Status: resolved