• I noticed these entries in my error log, triggering in the checkout:

    [07-Dec-2024 14:57:12 UTC] The WC_Cart->fees function is deprecated since version 3.2. Replace with the fees API (WC_Cart::add_fee).
    [07-Dec-2024 14:57:19 UTC] The WC_Cart->fees function is deprecated since version 3.2. Replace with the fees API (WC_Cart::get_fees).

    [proxy_fcgi:error [pid 1058766:tid 1058862 [client xx.xxx.xx.xx:0 AH01071: Got error ‘PHP message: The WC_Cart->fees function is deprecated since version 3.2. Replace with the fees API (WC_Cart::get_fees).PHP message: The WC_Cart->fees function is deprecated since version 3.2. Replace with the fees API (WC_Cart::add_fee).’, 

    I put in a Debug Backtrace in woocommerce/includes/legazy/class-wc-legacy-cart.php and here’s the results:

    [07-Dec-2024 14:57:19 UTC] Array
    (
    [0] => Array
    (
    [file] => /public_html/wp-content/plugins/simple-sales-tax/includes/frontend/class-sst-cart-proxy.php
    [line] => 111
    [function] => __get
    [class] => WC_Legacy_Cart
    [type] => ->
    )

    [1] => Array
    (
    [file] => /public_html/wp-content/plugins/simple-sales-tax/includes/frontend/class-sst-checkout.php
    [line] => 409
    [function] => set_fee_item_tax
    [class] => SST_Cart_Proxy
    [type] => ->
    )

    [2] => Array
    (
    [file] => /public_html/wp-content/plugins/simple-sales-tax/includes/frontend/class-sst-checkout.php
    [line] => 338
    [function] => set_fee_tax
    [class] => SST_Checkout
    [type] => ->
    )

    [3] => Array
    (
    [file] => /public_html/wp-content/plugins/simple-sales-tax/includes/abstracts/class-sst-abstract-cart.php
    [line] => 53
    [function] => reset_taxes
    [class] => SST_Checkout
    [type] => ->
    )

    [4] => Array
    (
    [file] => /public_html/wp-content/plugins/simple-sales-tax/includes/frontend/class-sst-checkout.php
    [line] => 130
    [function] => calculate_taxes
    [class] => SST_Abstract_Cart
    [type] => ->
    )

    )

    Could you please confirm, and advise when a fix will be deployed?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Deprecated Function’ is closed to new replies.