• Resolved Joss

    (@tropicaljoss)


    I’ve just installed the plugin (v 3.2) and was trying to connect MailChimp with WooCommerce on my WP installation and received the following error:

    Fatal error: Uncaught TypeError: unserialize(): Argument #1 ($data) must be of type string, array given in /home/…/….com/wp-content/plugins/mailchimp-for-woocommerce/includes/class-mailchimp-woocommerce-options.php:188 Stack trace: #0 /home/…/….com/wp-content/plugins/mailchimp-for-woocommerce/includes/class-mailchimp-woocommerce-options.php(188): unserialize() #1 /home/…/….com/wp-content/plugins/mailchimp-for-woocommerce/admin/class-mailchimp-woocommerce-admin.php(1374): MailChimp_WooCommerce_Options->getCached() #2 /home/…/….com/wp-content/plugins/mailchimp-for-woocommerce/admin/partials/mailchimp-woocommerce-admin-tabs.php(48): MailChimp_WooCommerce_Admin->hasValidApiKey() #3 /home/…/….com/wp-content/plugins/mailchimp-for-woocommerce/admin/class-mailchimp-woocommerce-admin.php(268): include_once('/home/…/…') #4 /home/…/….com/wp-includes/class-wp-hook.php(310): MailChimp_WooCommerce_Admin->display_plugin_setup_page() #5 /home/…/….com/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters() #6 /home/…/….com/wp-includes/plugin.php(517): WP_Hook->do_action() #7 /home/…/….com/wp-admin/admin.php(259): do_action() #8 {main} thrown in /home/…/….com/wp-content/plugins/mailchimp-for-woocommerce/includes/class-mailchimp-woocommerce-options.php on line 188

    The email notice also said this:

    WordPress version 6.3.2
    Current theme: Storefront (version 4.5.3)
    Current plugin: Mailchimp for WooCommerce (version 3.2)
    PHP version 8.1.24
    
    
    
    Error Details
    =============
    An error of type E_ERROR was caused in line 188 of the file /home/…/….com/wp-content/plugins/mailchimp-for-woocommerce/includes/class-mailchimp-woocommerce-options.php. Error message: Uncaught TypeError: unserialize(): Argument #1 ($data) must be of type string, array given in /home/…/….com/wp-content/plugins/mailchimp-for-woocommerce/includes/class-mailchimp-woocommerce-options.php:188
    Stack trace:
    #0 /home/…/….com/wp-content/plugins/mailchimp-for-woocommerce/includes/class-mailchimp-woocommerce-options.php(188): unserialize()
    #1 /home/…/….com/wp-content/plugins/mailchimp-for-woocommerce/admin/class-mailchimp-woocommerce-admin.php(1374): MailChimp_WooCommerce_Options->getCached()
    #2 /home/…/….com/wp-content/plugins/mailchimp-for-woocommerce/admin/class-mailchimp-woocommerce-admin.php(1354): MailChimp_WooCommerce_Admin->hasValidApiKey()
    #3 /home/…/….com/wp-content/plugins/mailchimp-for-woocommerce/admin/partials/tabs/store-info.php(16): MailChimp_WooCommerce_Admin->validateApiKey()
    #4 /home/…/….com/wp-content/plugins/mailchimp-for-woocommerce/admin/partials/mailchimp-woocommerce-admin-tabs.php(270): include_once('/home/…/pa...')
    #5 /home/…/….com/wp-content/plugins/mailchimp-for-woocommerce/admin/class-mailchimp-woocommerce-admin.php(268): include_once('/home/…/pa...')
    #6 /home/…/….com/wp-includes/class-wp-hook.php(310): MailChimp_WooCommerce_Admin->display_plugin_setup_page()
    #7 /home/…/….com/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #8 /home/…/….com/wp-includes/plugin.php(517): WP_Hook->do_action()
    #9 /home/…/….com/wp-admin/admin.php(259): do_action()
    #10 {main}
      thrown

    Please advise on any solutions.

    • This topic was modified 1 year, 5 months ago by Joss.
    • This topic was modified 1 year, 5 months ago by Joss. Reason: Added notice received on email
Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Joss

    (@tropicaljoss)

    Any updates or suggestions?

    Plugin Support khungate

    (@khungate)

    Hi @tropicaljoss, thank you for your patience and reporting the fatal error issue on PHP version 8.1.24. Our team has identified the problem stems from a lack of strict type checks in our plugin.

    We are working on updates to address this and enhance compatibility with both newer and older PHP versions. In the meantime, you might consider using PHP version 7.4 to 8.0, which are supported by WooCommerce.

    We’ll keep you informed on our progress. Your patience and collaboration are much appreciated.

    Thread Starter Joss

    (@tropicaljoss)

    Thank you for your update. I really appreciate it! I’ll keep it deactivated for now and will re-activate on the next update ??

    Plugin Support khungate

    (@khungate)

    Appreciate the heads-up @tropicaljoss! We’ve got this on our radar for a future update. It most likely won’t make it into v3.3 since that’s already in the last stages before release, but we’re aiming to tackle it soon after. For now, if it’s not too much trouble, could you work with an earlier version of PHP?

    Plugin Support khungate

    (@khungate)

    Hi @tropicaljoss, thanks again for your patience. We wanted to let you know that a patch was applied for this particular issue in v3.4 of the plugin. Don’t hesitate to get in touch if you need any other help.

    Thread Starter Joss

    (@tropicaljoss)

    Hi there! Sorry for the delay. I finally logged into my website today and completed the update. I was able to complete the setup and I think it’s all good now. Thank you for your prompt action!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Connecting WooCommerce – Fatal error: Uncaught TypeError: unserialize()’ is closed to new replies.