• Resolved ucsendre

    (@ucsendre)


    Hello,

    I get this error when I try to delete WooCommerce orders from trash: PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, class W3TC\Util_AttachToActions does not have a method "on_comment_status"

    Everything on site is updated to latest version:
    PHP 8.2.1
    WordPress: 6.1.1
    WooCommerce: 7.3.0
    W3 Total Cache: 2.2.11

    Please release a fix for this.

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @ucsendre

    I am sorry about the issue you are experiencing and I am happy to assist you with this.
    We are checking this and as a temporary fix please comment out line 33 of Util_AttachToActions.php

     //add_action( 'wp_set_comment_status', array( $o, 'on_comment_status' ), 0, 2 );
    		
    		

    Let me know if this helps!

    Thanks!

    Thread Starter ucsendre

    (@ucsendre)

    Hello @vmarko

    Yes, it works when line 33 is commented out.
    Thank you for the quick fix.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @ucsendre

    Thank you for the confirmation. This will be fixed in the next release.
    Thanks again for your patience.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘fatal error when deleting woocommerce orders’ is closed to new replies.