Title: PHP 8 Compatibility Changes
Last modified: October 26, 2021

---

# PHP 8 Compatibility Changes

 *  Resolved [KevinPlusPlus](https://wordpress.org/support/users/kevinplusplus/)
 * (@kevinplusplus)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/php-8-compatibility-changes-2/)
 * Hello,
 * Since updating from PHP 7.4.x to PHP 8.0.x, there is a warning occurring regularly
   in the PHP logs that should be addressed for full PHP 8 compatibility.
 * PHP Warning: Undefined array key “detail” in /mailchimp-for-woocommerce/includes/
   api/class-mailchimp-api.php on line 1894
 * The existence of $data[‘detail’] just needs to be checked before referencing 
   it. isset would do the trick. 🙂
 * Hopefully this can make it into the next release for better PHP 8 compatibility.
 * Kevin

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

 *  Plugin Support [Jordan Rich](https://wordpress.org/support/users/builtbyjordan/)
 * (@builtbyjordan)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/php-8-compatibility-changes-2/#post-15029949)
 * [@kevinplusplus](https://wordpress.org/support/users/kevinplusplus/) Hey and 
   thanks for bringing that to our attention. I’ll be sure to get this in front 
   of our development teams eyes. I can’t however, promise this will make it to 
   the next update. However, when we know more , we’ll update this thread.
 * Thanks again.
 *  Plugin Support [Jordan Rich](https://wordpress.org/support/users/builtbyjordan/)
 * (@builtbyjordan)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/php-8-compatibility-changes-2/#post-15037883)
 * Just to chime back in on this, we’re currently testing a solution for this. While
   I can’t provide an exact date on solution being made publicly available, I can
   say we’re getting close.
 *  Thread Starter [KevinPlusPlus](https://wordpress.org/support/users/kevinplusplus/)
 * (@kevinplusplus)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/php-8-compatibility-changes-2/#post-15038027)
 * Jordan,
 * Thank you so much, appreciate it!
 * Kevin
 *  Plugin Support [khungate](https://wordpress.org/support/users/khungate/)
 * (@khungate)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/php-8-compatibility-changes-2/#post-15115217)
 * Hi [@kevinplusplus](https://wordpress.org/support/users/kevinplusplus/), this
   has been resolved in the latest release (v2.5.4). Please let us know if we can
   help out in any other way.
 *  Thread Starter [KevinPlusPlus](https://wordpress.org/support/users/kevinplusplus/)
 * (@kevinplusplus)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/php-8-compatibility-changes-2/#post-15119060)
 * Jordan,
 * Unfortunately, with 2.5.4 we have a new one:
 * PHP Warning: Undefined array key “detail” in /mailchimp-for-woocommerce/includes/
   api/class-mailchimp-api.php on line 1898
 * It seems that the ‘detail’ array element is being referenced when it may not 
   exist:
 *  throw new MailChimp_WooCommerce_Error($data[‘detail’], (int) $data[‘status’]);
 * Thanks,
 * Kevin Hock
 *  [stevebloomer](https://wordpress.org/support/users/stevebloomer/)
 * (@stevebloomer)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/php-8-compatibility-changes-2/#post-15507678)
 * Hi [@kevinplusplus](https://wordpress.org/support/users/kevinplusplus/) and [@khungate](https://wordpress.org/support/users/khungate/),
 * Any progress on the above error on line 1898.
 * Steven
 *  Plugin Support [khungate](https://wordpress.org/support/users/khungate/)
 * (@khungate)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/php-8-compatibility-changes-2/#post-15507747)
 * [@stevebloomer](https://wordpress.org/support/users/stevebloomer/) it should 
   be resolved now. Can you grab the latest version of the plugin (v2.6.2) to be
   sure? If not, please create a new issue in Github: [https://github.com/mailchimp/mc-woocommerce/issues](https://github.com/mailchimp/mc-woocommerce/issues).
 * Thanks!
 *  [stevebloomer](https://wordpress.org/support/users/stevebloomer/)
 * (@stevebloomer)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/php-8-compatibility-changes-2/#post-15507780)
 * Just got it and seems to be fixed, thank you.

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

The topic ‘PHP 8 Compatibility Changes’ 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/)

 * 8 replies
 * 4 participants
 * Last reply from: [stevebloomer](https://wordpress.org/support/users/stevebloomer/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/php-8-compatibility-changes-2/#post-15507780)
 * Status: resolved