• Resolved geniuscbd

    (@geniuscbd)


    Hi,

    Intro
    I’ve been using Mailchimp for Woo together with MC4WP, but now I have an issue that makes impossible to activate the extension. When I try to activate it, I got the following PHP Fatal Error:

    Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function "activate_mailchimp_woocommerce" not found or invalid function name in /wp-includes/class-wp-hook.php on line 303
    ( ! ) TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function "activate_mailchimp_woocommerce" not found or invalid function name in wp-includes/class-wp-hook.php on line 303
    Call Stack
    #	Time	Memory	Function	Location
    1	0.0000	394096	{main}( )	.../plugins.php:0
    2	2.7443	53704120	do_action( $hook_name = 'activate_mailchimp-for-woocommerce/mailchimp-woocommerce.php' )	.../plugins.php:193
    3	2.7443	53704496	WP_Hook->do_action( $args = [0 => ''] )	.../plugin.php:470
    4	2.7443	53704496	WP_Hook->apply_filters( $value = '', $args = [0 => ''] )	.../class-wp-hook.php:327

    I tried to remove and reinstall the plugin. The uninstall process also failed when using the plugin page from wordpress with the following error:

    PHP Fatal error:
    Uncaught Error: Class "MailChimp_WooCommerce_MailChimpApi" not found in /wp-content/plugins/mailchimp-for-woocommerce/uninstall.php:43
    Stack trace:
    #0 /wp-content/plugins/mailchimp-for-woocommerce/uninstall.php(58): mailchimp_woocommerce_uninstall()
    #1 /wp-admin/includes/plugin.php(1248): include_once('...')
    #2 /wp-admin/includes/plugin.php(965): uninstall_plugin()
    #3 /wp-admin/includes/ajax-actions.php(4598)

    In order to uninstall I have to remove the plugin folder from wp-content/plugins.

    Configuration

    • PHP FPM v8.0.14
    • WordPress v5.8.2
    • WooCommerce v5.9.0
    • MC4WP v4.8.6
    • MailChimp for WooCommerce v2.5.4

    Could you help please ? Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Jordan Rich

    (@builtbyjordan)

    Hey there,

    Thanks for reaching out.

    Would it be possible for you to retest by installing only the Mailchimp for WooCommerce Plugin?

    We want to first zero in on if it is an issue that is specific to the plugin.

    If this issues is due to the two plugins working in concert we’ll be limited on the amount of support we could provide in that regard, however we can at least take a look at the Error logs and see if there is anything underlying that might be able to help out. But first we’ll need a further test from your end isolating the install of plugins to only Mailchimp for WooCommerce.

    Thread Starter geniuscbd

    (@geniuscbd)

    Hi there,

    I finally found the issue. It was related to the file permissions. I was using SSH auth for plugin installation, and I recently change back to the default behavior, with file ownership granted to the web server user. This operation fixed the issue.

    My best guess is that the plugin partially and silently fail installation when the FS_METHOD is set to ssh.

    Thanks for your time anyway!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Impossible to activate Mailchimp WooCommerce’ is closed to new replies.