Support » Plugin: Mailchimp for WooCommerce » Website backend shuts off when syncing

  • Resolved costaarvan

    (@costaarvan)


    I have uploaded the Mailchimp plugin onto my wordpress site and as I am going through the setup stages once I go to the last step “Audience Setting” and click start sync my website crashes and turns off.

    You can view the error message here that pops up on my screen https://drive.google.com/open?id=1dfLXVZdOdodM26RkdNnHzClL5HSq058Z

    Also below are the error details which are emailed to me following this:
    Error Details
    =============
    An error of type E_ERROR was caused in line 600 of the file /home/barkerstcom/public_html/wp-content/plugins/mailchimp-for-woocommerce/bootstrap.php. Error message: Uncaught Error: Call to undefined function mb_strpos() in /home/barkerstcom/public_html/wp-content/plugins/mailchimp-for-woocommerce/bootstrap.php:600
    Stack trace:
    #0 /home/barkerstcom/public_html/wp-content/plugins/mailchimp-for-woocommerce/admin/class-mailchimp-woocommerce-admin.php(1191): mailchimp_string_contains(‘We were unable …’, ‘woocommerce alr…’)
    #1 /home/barkerstcom/public_html/wp-content/plugins/mailchimp-for-woocommerce/admin/class-mailchimp-woocommerce-admin.php(748): MailChimp_WooCommerce_Admin->syncStore(Array)
    #2 /home/barkerstcom/public_html/wp-content/plugins/mailchimp-for-woocommerce/admin/class-mailchimp-woocommerce-admin.php(374): MailChimp_WooCommerce_Admin->validatePostNewsletterSettings(Array)
    #3 /home/barkerstcom/public_html/wp-includes/class-wp-hook.php(290): MailChimp_WooCommerce_Admin->validate(Array)
    #4 /home/barkerstcom/public_html/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array)
    #5 /home/barkerstcom/public_html/wp-includes/formatting.php(4812): apply_filter

    Thank you for your help.

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author ryanhungate

    (@ryanhungate)

    @costaarvan your PHP must not have the Multibyte String extension enabled for some reason – https://www.php.net/manual/en/ref.mbstring.php

    Do you know if it’s possible to have your web host enable it for you? If not, we could provide some sort of fallback to use a different function in a future version but right now it’s actually required to install the plugin.

    mbstring is active and php is 7.3

    please see attached https://drive.google.com/open?id=1NVTTmttrl0G9HuuQ5qK3okftMyiXzip6

    whats the next step?

    hello

    Plugin Author ryanhungate

    (@ryanhungate)

    @costaarvan if mbstring is active, you should have no problem at all running this sync.

    Have you retried things again since you enabled it?

    Have you had your web host restart your NGINX or Apache to make use of the new module? That might be all you need to do if it’s still not active.

    Hi Ryan,

    Thank you for the reply.

    Yes i have tried it multiple times and still have the same issue.

    Its a shared hosting and its already been restarted as scheduled.

    Why dose your plugin needs restart of server?

    What else can we try?

    Plugin Author ryanhungate

    (@ryanhungate)

    @costaarvan so – our plugin doesn’t NEED to restart the server, it’s just the nature of changing PHP settings. In order to have the new value set, typically PHP FPM / NGINX or APACHE needs to restart. Typically this happens in a matter of milliseconds. Not the entire server.

    That being said, it seems as if the problem remains, the best thing to do is talk with your web host and make sure that the function exists mb_strpos. If they can validate that you should be able to use that function, we need to dig deeper.

    Also – in version 2.3.1, we’ve written a helper function to avoid using this mb_strpos in situations like yours, and use a fallback function of strpos which isn’t as good but it’s better than errors happening.

    The next version 2.3.1 is going through a QA process, and will be released shortly after everything has been verified, but we don’t have an absolute date on this yet. Stay tuned, it’s certainly coming, but please do verify with your web host that this function should be available first and let us know what they say 🙂

    Plugin Support khungate

    (@khungate)

    @costaarvan we wanted to let you know that v2.3.1 was released yesterday that most likely will address the issue you were having. Please let us know how things go if you have a chance to update.

    Plugin Support khungate

    (@khungate)

    Hi @costaarvan. 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, the best way to reach us is over at the GitHub plugin page. From there, you can receive direct responses from the development team, log new issues, download the latest version and track existing support tickets.

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