• Resolved yonahs

    (@yonahs)


    I updated and now my site won’t load. When I deactivate the plugin, my site loads fine.
    I saw other tickets about OceanWP theme. I am using Divi and have the following error:

    [15-Mar-2020 16:23:26 UTC] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function WC_Facebookcommerce_EventsTracker::set_last_product_added_to_cart_upon_redirect(), 1 passed in /home/customer/www/ree**.com/public_html/wp-includes/class-wp-hook.php on line 288 and exactly 2 expected in /home/customer/www/ree**.com/public_html/wp-content/plugins/facebook-for-woocommerce/facebook-commerce-events-tracker.php:346
    Stack trace:
    #0 /home/customer/www/ree**.com/public_html/wp-includes/class-wp-hook.php(288): WC_Facebookcommerce_EventsTracker->set_last_product_added_to_cart_upon_redirect(‘https://www.ree…’)
    #1 /home/customer/www/ree**.com/public_html/wp-includes/plugin.php(206): WP_Hook->apply_filters(‘https://www.ree…’, Array)
    #2 /home/customer/www/ree**.com/public_html/wp-content/plugins/woo-variations-table-grid/woo-variations-table.php(1462): apply_filters(‘woocommerce_add…’, ‘https://www.ree…’)
    #3 /home/customer/www/ree**.com/public_html/wp-includes/class-wp-hook.php(288): woovartables_scripts(”)
    #4 /home/customer/w in /home/customer/www/ree**.com/public_html/wp-content/plugins/facebook-for-woocommerce/facebook-commerce-events-tracker.php on line 346

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi, having the same error on error logs. still using 1.10.0. version, so havent yet updated this plugin but still having the same issue.

    mod_fcgid: stderr: “PHP” Fatal error: Uncaught ArgumentCountError: Too few arguments to function WC_Facebookcommerce_EventsTracker::set_last_product_added_to_cart_upon_redirect(), 1 …../wp-includes/class-wp-hook.php on line 288 and exactly 2 expected in…./wp-content/plugins/facebook-for-woocommerce/facebook-commerce-events-tracker.php:346

    – Anne

    Hello I have same error. Php version is PHP 7.4.3

    Hey @yonahs, @kotisivutohtori, and @stefanvel!

    Thanks so much for reaching out about this issue. You’re spot on here, the underlying cause for the error is related to the use of the filter, usually found in the theme.

    Tamara did a great write up of the issue with an explanation on this issue post.

    If you all have the same error as noted by the stack trace in the initial post here, it sounds like your theme developers may need to update their template files as well, similar to OceanWP. Wherever the theme applies the filter with one argument, this will need to be changed to two, to match the current WooCommerce release.

    Are you all using Divi, or are there other themes at play here?

    Cheers,

    Simon.

    Thread Starter yonahs

    (@yonahs)

    I am on Divi.

    Are you saying that you did something that is compliant for WooCommerce 4 but not 3?
    I have not updated to 4 yet, as I am waiting on updates from other major plugins, like Stripe and Paypal, before I do.

    whit WooCommerce 4 error is disappear

    @stefanvel: Thanks for confirming the issue is now resolved for you!

    @yonahs: The issue Simon described was believed to be specific to OceanWP users. That being said, we haven’t had clear enough feedback to confirm if the issue is the same for Divi. Would you mind submitting a support request via this form so we can run through some more specific troubleshooting for your site?

    Cheers,
    Ian

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fatal Error on site after updated to 1.10.1’ is closed to new replies.