• Resolved David Rosendo

    (@drosendo)


    Hi,

    heads up:

    
    Fatal error: Uncaught ArgumentCountError: Too few arguments to function WPcleverWoosb::woosb_cart_item_quantity(), 2 

    I replaced:

    function woosb_cart_item_quantity($quantity, $cart_item_key, $cart_item )

    with:

    function woosb_cart_item_quantity($quantity = '', $cart_item_key = '', $cart_item = array())

    Just to have it working.

    Cheers, And nice work!
    David

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WPClever

    (@wpclever)

    Thank you for sharing this.

    Thread Starter David Rosendo

    (@drosendo)

    Hello,

    When do you hope to apply the fix?

    I have to apply the patch every time.

    Or please provide way to remove filter and add my.

    cheers,
    David

    Thread Starter David Rosendo

    (@drosendo)

    Hello,

    This issue still persists. Why cant you just change to:

    function woosb_cart_item_quantity($quantity = '', $cart_item_key = '', $cart_item = array())

    IT may be theme related, im using PORTO.

    It not like it’s going to break anything but I assure you that at least the user will not get:

    [15-Jul-2020 12:29:40 UTC] PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function WPCleverWoosb::woosb_cart_item_quantity(), 2 passed in /home/XXXX/public_html/wp-includes/class-wp-hook.php on line 288 and exactly 3 expected in /home/XXXX/public_html/wp-content/plugins/woo-product-bundle/includes/class-woosb.php:1641
    Stack trace:
    #0 /home/XXXX/public_html/wp-includes/class-wp-hook.php(288): WPCleverWoosb->woosb_cart_item_quantity('\t<div class="qu...', '3267bbcedce5428...')
    #1 /home/XXX/public_html/wp-includes/plugin.php(206): WP_Hook->apply_filters('\t<div class="qu...', Array)
    #2 /home/XXX/public_html/wp-content/themes/porto/woocommerce/cart/cart-v1.php(100): apply_filters('woocommerce_car...', '\t<div class="qu...', '3267bbcedce5428...')
    #3 /home/XXX/public_html/wp-includes/template.php(724): require('/home/sitiodob/...')
    #4 /home/XXXX/public_html/wp-includes/template.php(671): load_template('/home/XXXXXX/...', false)
    #5 /home/XXXX/public_html/wp-includes/general-template.php(168): locate_tem in /home/XXXX/public_html/wp-content/plugins/woo-product-bundle/includes/class-woosb.php on line 1641
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal error on cart page’ is closed to new replies.