• Resolved elvagabundo

    (@elvagabundo)


    I get errors like this Trying to access array offset on value of type bool in /x/wp-content/plugins/mailchimp-for-woocommerce/includes/class-mailchimp-woocommerce-service.php on line 801 and PHP Deprecated: strpos(): Passing null to parameter #2 ($needle) of type string is deprecated in

    The page I need help with: [log in to see the link]

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

    (@kjvextras)

    Hi! Thank you for contacting us. Can you confirm which plugin version you are using? Can you?

    1. Update the Plugin: Check for updates to the Mailchimp for WooCommerce plugin. The issue might already be fixed in a newer version compatible with PHP 8.1+.

    Could you also turn on remote diagnostic? Enable the?Remote Diagnostics?feature found in the plugin’s Settings tab. This allows the Mailchimp for WooCommerce development team to diagnose and fix the issue remotely.

    Thread Starter elvagabundo

    (@elvagabundo)

    As i have a dutch version i think the option is ‘ondersteuning inschakelen, as it says something about this is the developing team option for help.

    I use 4.4.1. If you need to know more please let me know, and thanks for your attention and help

    Plugin Author ryanhungate

    (@ryanhungate)

    @elvagabundo this is kind of a new one. Since this can easily be resolved with a “cast to a string”, we can include this in our next release no problem. We will get that handled and report back here when it’s complete. If you feel comfortable editing php files temporarily we can give you a quick patch in the meantime to resolve things quicker.

    On that last line of the function – you can simply cast both arguments to a string:

    On line 801 of:

    mailchimp-for-woocommerce/includes/class-mailchimp-woocommerce-service.php

    Simply change this line so it casts strings into this function.

    return strpos( (string) $current_url['path'] ?? '/', (string) $rest_url['path'], 0 ) === 0;

    If you would rather wait for the plugin update that’s perfectly fine, but we know sometimes that timing is critical so this would allow you to fix that particular error without waiting for an update. Please only do this if you’re comfortable editing php files.

    KJ

    (@kjvextras)

    Hi there, @elvagabundo – just letting you know we have implemented this change in Mailchimp for WooCommerce v5.0

    We just wanted to check back with you to see if this was still a problem with our latest plugin Mailchimp for WooCommerce v5.0. Please let us know when you get a moment, we’ll be happy to help troubleshoot further if necessary.

    Plugin Support khungate

    (@khungate)

    Hi there, we’re going to close out this ticket for now since it’s been a few weeks since we’ve been in touch.

    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/. From there, you can receive direct responses from the development team, log new issues, download the latest version, and track existing support tickets.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.