• Resolved fotske

    (@fotske)


    Hi,

    I have seen that there is a fatal error related to your plugin in WooCommerce > Status > Log:

    2019-12-18T09:38:37+00:00 CRITICAL Uncaught ArgumentCountError: Too few arguments to function MailChimp_Service::mailchimp_process_single_job(), 0 passed in /home/mywebsite/public_html/wp-includes/class-wp-hook.php on line 288 and exactly 1 expected in /home/mywebsite/public_html/wp-content/plugins/mailchimp-for-woocommerce/includes/class-mailchimp-woocommerce-service.php:806
    Stack trace:
    #0 /home/mywebsite/public_html/wp-includes/class-wp-hook.php(288): MailChimp_Service->mailchimp_process_single_job()
    #1 /home/mywebsite/public_html/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(”, Array)
    #2 /home/mywebsite/public_html/wp-includes/plugin.php(544): WP_Hook->do_action(Array)
    #3 /home/mywebsite/public_html/wp-content/plugins/woocommerce/includes/libraries/action-scheduler/classes/ActionScheduler_Action.php(22): do_action_ref_array(‘MailChimp_WooCo…’, Array)
    #4 /home/mywebsite/public_html/wp-content/plugins/woocommerce/includes/libraries/action-scheduler/classes/ActionScheduler_Abstract_QueueRunner.php(59): ActionScheduler_Action->execute dans /home/mywebsite/public_html/wp-content/plugins/mailchimp-for-woocommerce/includes/class-mailchimp-woocommerce-service.php à la ligne 806

    What is this?
    Could you please correct this?

    Thank you very much in advance.

Viewing 1 replies (of 1 total)
  • Plugin Author ryanhungate

    (@ryanhungate)

    @fotske this is strange – but we’ve got a fix into the next branch of 2.3.1 which will address this issue. If you feel comfortable editing php files on your own, this could be very simple to fix. In this file:

    https://github.com/mailchimp/mc-woocommerce/blob/2.3.1/includes/class-mailchimp-woocommerce-service.php#L810

    You’ll notice the small change here to the function argument = null and:

    `
    if (empty($obj_id)) {
    return false;
    }
    `
    This is the small fix required to remove this error from happening. Only do this if you’re comfortable editing php files, otherwise the new plugin will be released early Jan after QA has completed the work.

    Thanks for writing in!

Viewing 1 replies (of 1 total)
  • The topic ‘Fatal error’ is closed to new replies.