[Resolved] PHP Error Deprecated Hook

Home Forums Support [Resolved] PHP Error Deprecated Hook

Home Forums Support PHP Error Deprecated Hook

  • This topic has 7 replies, 3 voices, and was last updated 2 months ago by Ying.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2359576
    Stephen

    Hi, I’m not sure if this is a GeneratePress Error or Woocommerce.

    On the GeneratePress standard Woocommerce basket page.

    Change cart Quantity of any Product to Zero and click Update gives the following PHP error about using a deprecated hook.

    Deprecated: Hook woocommerce_before_cart_item_quantity_zero is deprecated since version 3.7.0! Use woocommerce_remove_cart_item instead. in /var/www/html/wordpress/wp-includes/functions.php on line 5754

    #2359993
    Ying
    Staff
    Customer Support

    Hi there,

    /var/www/html/wordpress/wp-includes/functions.php is in the WordPress folder, not GP’s folder.

    Can you make sure your WordPress version is up to date?

    Let me know!

    #2360654
    Stephen

    Hi, yes thats all up to date.

    Maybe be a wordpress error and nothing to worry about?

    #2360937
    Fernando
    Customer Support

    Hi Stephen,

    Do you have any add-on WooCommerce related plugins?

    To clarify, what version of WordPress are you using?

    #2361399
    Stephen

    Current version: 6.0.2

    I’ve added the link in private info

    You can see for yourself – add something to shopping cart – then go to shopping cart – then change quantity to zero – then click update.

    When you click update to change quantity to zero in cart then I will get the PHP error:

    Deprecated: Hook woocommerce_before_cart_item_quantity_zero is deprecated since version 3.7.0! Use woocommerce_remove_cart_item instead. in /var/www/html/wordpress/wp-includes/functions.php on line 5754

    #2361897
    Ying
    Staff
    Customer Support

    Hum, I tried this but did not see the error or any errors in the developer tool’s console tab.

    Can you try switching to the twenty twenty one theme to test?

    Let me know!

    #2362072
    Stephen

    Thanks for your great help as always.

    I’ll get right onto that.

    #2362181
    Ying
    Staff
    Customer Support

    Keep us updated 🙂

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.