W3TC\Util_AttachToActions does not have a method “on_comment_status”
-
Hi, starting yesterday the checkout page would display an error at the top “Internal Server Error” when the user tries to complete their order..
After looking at the debug, it seems to be this plugin. Disabling it allows the checkout process to complete without error.
Below is the error log:
[13-Jan-2023 14:42:34 UTC] 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" in /opt/bitnami/wordpress/wp-includes/class-wp-hook.php:308
Stack trace: 0 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() 1 /opt/bitnami/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action() 2 /opt/bitnami/wordpress/wp-includes/comment.php(1506): do_action() 3 /bitnami/wordpress/wp-content/plugins/atum-stock-manager-for-woocommerce/classes/Inc/Hooks.php(241): wp_delete_comment() 4 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(310): Atum\Inc\Hooks->remove_order_comment() 5 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() 6 /opt/bitnami/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action() 7 /opt/bitnami/wordpress/wp-includes/comment.php(2070): do_action() 8 /bitnami/wordpress/wp-content/plugins/woocommerce/includes/class-wc-order.php(1909): wp_insert_comment() 9 /bitnami/wordpress/wp-content/plugins/woocommerce/includes/wc-stock-functions.php(248): WC_Order->add_order_note() 10 /bitnami/wordpress/wp-content/plugins/woocommerce/includes/wc-stock-functions.php(207): wc_trigger_stock_change_notifications() 11 /bitnami/wordpress/wp-content/plugins/woocommerce/includes/wc-stock-functions.php(107): wc_reduce_stock_levels() 12 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(310): wc_maybe_reduce_stock_levels() 13 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() 14 /opt/bitnami/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action() 15 /bitnami/wordpress/wp-content/plugins/woocommerce/includes/class-wc-order.php(387): do_action() 16 /bitnami/wordpress/wp-content/plugins/woocommerce/includes/class-wc-order.php(245): WC_Order->status_transition() 17 /bitnami/wordpress/wp-content/plugins/woocommerce/includes/class-wc-order.php(357): WC_Order->save() 18 /bitnami/wordpress/wp-content/plugins/woocommerce/includes/gateways/cheque/class-wc-gateway-cheque.php(122): WC_Order->update_status() 19 /bitnami/wordpress/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(1050): WC_Gateway_Cheque->process_payment() 20 /bitnami/wordpress/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(1279): WC_Checkout->process_order_payment() 21 /bitnami/wordpress/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(481): WC_Checkout->process_checkout() 22 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(308): WC_AJAX::checkout() 23 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() 24 /opt/bitnami/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action() 25 /bitnami/wordpress/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(94): do_action() 26 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(308): WC_AJAX::do_wc_ajax() 27 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() 28 /opt/bitnami/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action() 29 /opt/bitnami/wordpress/wp-includes/template-loader.php(13): do_action() 30 /opt/bitnami/wordpress/wp-blog-header.php(19): require_once('…') 31 /opt/bitnami/wordpress/index.php(17): require('…') 32 {main} thrown in /opt/bitnami/wordpress/wp-includes/class-wp-hook.php on line 308
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘W3TC\Util_AttachToActions does not have a method “on_comment_status”’ is closed to new replies.