• Resolved dpbraun

    (@dpbraun)


    On a couple of sites, when I install the official Mailchimp WooCommerce plugin, I get a fatal error and the dashboard doesn’t load. But when I disable the bloat plugin, all seems good. Here’s the error:

    [23-Sep-2020 12:43:51 America/Los_Angeles] PHP Fatal error: Uncaught Exception: Invalid data store. in /html/wp-content/plugins/woocommerce/includes/class-wc-data-store.php:107
    Stack trace:
    #0 /html/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(139): WC_Data_Store->__construct(‘admin’)
    #1 /html/wp-content/plugins/mailchimp-for-woocommerce/admin/class-mailchimp-woocommerce-admin.php(283): WC_Data_Store::load(‘admin-note’)
    #2 /html/wp-includes/class-wp-hook.php(287): MailChimp_WooCommerce_Admin->initial_notice(”)
    #3 /html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
    #4 /html/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #5 /html/wp-admin/admin-header.php(292): do_action(‘admin_notices’)
    #6 /html/wp-admin/plugins.php(603): require_once(‘/home/s24/html/…’)
    #7 {main}
    thrown in /home/s24/html/wp-content/plugins/woocommerce/includes/class-wc-data-store.php on line 107

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor ospiotr

    (@ospiotr)

    Hi @dpbraun

    Since version 2.4.6, Mailchimp for WooCommerce plugin uses WooCommerce Admin notification system. If you use Disable WooCommerce Bloat for disabling WooCommerce Admin, an error will occur.

    Please consider contacting Mailchimp support and letting them know about the issue.

    Plugin Contributor ospiotr

    (@ospiotr)

    @dpbraun

    There is a bug in Mailchimp plugin. When Mailchimp is trying to display a notice when Mailchimp is installed but not yet configured, fatal error happens with WooCommerce Admin disabled.

    I have already submitted a Pull Request in Mailchimp GitHub: https://github.com/mailchimp/mc-woocommerce/pull/715/files

    As soon as the Mailchimp team accepts my commit and release a new version, it will be fixed.

    For now, you can try following steps to avoid the fatal error:
    1. Disable Mailchimp for WooCommerce
    2. Set Disable WooCommerce Admin to off in the plugin settings
    3. Configure Mailchimp for WooCommerce. Complete all steps during the connection wizard.
    4. Set Disable WooCommerce Admin to on in the plugin settings

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Getting fatal error when enabling Mailchimp for WooCommerce plugin’ is closed to new replies.