• Resolved Rafal Sokolowski

    (@rafalsokolowski)


    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

    (@builtbyjordan)

    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.

    Hi, will be awaiting for your results, this issue is important for me too.

    Have a good work!

    Plugin Support khungate

    (@khungate)

    Hi @senquiem, @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.

    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>’;
    }

    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.