• Resolved omnigiga

    (@omnigiga)


    After updating the plugin getting fatal error

    [11-Aug-2020 09:13:18 UTC] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function xoo_wsc_suggested_product_addtocart_link(), 2 passed in /home/********/public_html/wp-includes/class-wp-hook.php on line 287 and exactly 3 expected in /home/********/public_html/wp-content/plugins/woocommerce-side-cart-premium/includes/xoo-wsc-functions.php:56
    Stack trace:
    #0 /home/********/public_html/wp-includes/class-wp-hook.php(287): xoo_wsc_suggested_product_addtocart_link(‘<a href=”?add-t…’, Object(WC_Product_Simple))
    #1 /home/********/public_html/wp-includes/plugin.php(206): WP_Hook->apply_filters(‘<a href=”?add-t…’, Array)
    #2 /home/********/public_html/wp-content/themes/porto/woocommerce/loop/add-to-cart.php(70): apply_filters(‘woocommerce_loo…’, ‘<a href=”?add-t…’, Object(WC_Product_Simple))
    #3 /home/********/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(344): include(‘/home/********/p…’)
    #4 /home/********/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(1268): wc_get_template(‘loop/a in /home/********/public_html/wp-content/plugins/woocommerce-side-cart-premium/includes/xoo-wsc-functions.php on line 56

    The page I need help with: [log in to see the link]

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

    (@xootix)

    Hello,

    The error is related outdated version of template themes/porto/woocommerce/loop/add-to-cart.php
    Considering the popularity of theme, it seems unlikely.
    Make sure you have not edited the template & woocommerce version > 3.3
    If that doesn’t resolve, please share the template file.
    The error is related to pro version so kindly leave a message here with this forum link. I am closing this thread.

Viewing 1 replies (of 1 total)
  • The topic ‘Fatal Error after plugin update’ is closed to new replies.