[BUG report] Restock when refunding order does not work at all
-
Hi. I am using the woocommerce v6.7
I disabled all plugins except woocomerce. the restock function does not work at all.
https://ibb.co/GFVt7jZI have to use the below code to bring the restock function.
Any chance your side could fix it ASAP? The below code only can be used temporarily. Because it still restocks even when the restock checkbox is not checked.Thanks
if ( ! class_exists( 'WC_Auto_Stock_Restore' ) ) { class WC_Auto_Stock_Restore { function __construct() { add_action( 'woocommerce_order_status_processing_to_cancelled', array( $this, 'restore_order_stock' ), 10, 2 ); add_action( 'woocommerce_order_status_completed_to_cancelled', array( $this, 'restore_order_stock' ), 10, 2 ); add_action( 'woocommerce_order_status_on-hold_to_cancelled', array( $this, 'restore_order_stock' ), 10, 2 ); add_action( 'woocommerce_order_status_processing_to_refunded', array( $this, 'restore_order_stock' ), 10, 2 ); add_action( 'woocommerce_order_status_completed_to_refunded', array( $this, 'restore_order_stock' ), 10, 2 ); add_action( 'woocommerce_order_status_on-hold_to_refunded', array( $this, 'restore_order_stock' ), 10, 2 ); } public function restore_order_stock( $order_id, $order ) { $items = $order->get_items(); if ( ! get_option('woocommerce_manage_stock') == 'yes' && ! count( $items ) > 0 ) return; // We exit foreach ( $order->get_items() as $item ) { $product_id = $item->get_product_id(); if ( $product_id > 0 ) { $product = $item->get_product(); if ( $product && $product->exists() && $product->managing_stock() ) { // Get the product initial stock quantity (before update) $initial_stock = $product->get_stock_quantity(); $item_qty = apply_filters( 'woocommerce_order_item_quantity', $item->get_quantity(), $this, $item ); // Update the product stock quantity // Replace DEPRECATED methods: increase_stock() & discrease_stock() wc_update_product_stock( $product, $item_qty, 'increase' ); // Get the product updated stock quantity $updated_stock = $initial_stock + $item_qty; do_action( 'woocommerce_auto_stock_restored', $product, $item ); // A unique Order note: Store each order note in an array… $order_note[] = sprintf( __( 'Product ID #%s stock incremented from %s to %s.', 'woocommerce' ), $product_id, $initial_stock, $updated_stock); // DEPRECATED & NO LONGER NEEDED - can be removed //$order->send_stock_notifications( $product, $updated_stock, $item_qty ); } } } // Adding a unique composite order note (for multiple items) $order_notes = count($order_note) > 1 ? implode(' | ', $order_note) : $order_note[0]; $order->add_order_note( $order_notes ); } } $GLOBALS['wc_auto_stock_restore'] = new WC_Auto_Stock_Restore(); }
-
Hello,
If I understood correctly the restock after a refund is not working:
Link to image: https://snipboard.io/UYf7j6.jpgBecause it still restocks even when the restock checkbox is not checked.
This is not normal behavior, for better assistance please provide the following:
Can you please share a copy of your site’s System Status? You can find it via
WooCommerce > Status
. Select “Get system report” and then “Copy for support”.?Error Log: Share a copy of any fatal error log found under
WooCommerce > System Status > Logs
(if any).Hello. yes, without the snippet I mentioned. The restock won’t work when refunding an order.
I don’t have any fatal error log during the day.
*I have tried disabled all plugins except for the woocommerce. to Test Refunding an orderPlease take a look
Thanks2022-08-04T05:43:04+00:00 CRITICAL Uncaught Error: Call to a member function get_stock_status() on null in /tmp/421-woo-shortcode-sale.php:8 Stack trace: #0 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(356): ds_replace_sale_text() #1 [internal function]: do_shortcode_tag() #2 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(228): preg_replace_callback() #3 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-content/plugins/oxygen/component-framework/components/classes/shortcode.class.php(58): do_shortcode() #4 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(356): CT_Shortcode->add_shortcode() #5 [internal function]: do_shortcode_tag() #6 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(228): preg_replace_callback() #7 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-content/plugins/oxygen/component-framework/components/classes/div-block.class.php(47): do_shortcode() #8 /home/xxxxxxx.cloudwaysapps.com/ 於 /tmp/421-woo-shortcode-sale.php 在 8 線上 2022-08-04T05:43:05+00:00 CRITICAL Uncaught Error: Call to a member function get_stock_status() on null in /tmp/421-woo-shortcode-sale.php:8 Stack trace: #0 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(356): ds_replace_sale_text() #1 [internal function]: do_shortcode_tag() #2 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(228): preg_replace_callback() #3 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-content/plugins/oxygen/component-framework/components/classes/shortcode.class.php(58): do_shortcode() #4 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(356): CT_Shortcode->add_shortcode() #5 [internal function]: do_shortcode_tag() #6 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(228): preg_replace_callback() #7 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-content/plugins/oxygen/component-framework/components/classes/div-block.class.php(47): do_shortcode() #8 /home/xxxxxxx.cloudwaysapps.com/ 於 /tmp/421-woo-shortcode-sale.php 在 8 線上 2022-08-04T05:44:14+00:00 CRITICAL Uncaught Error: Call to a member function get_stock_status() on null in /tmp/421-woo-shortcode-sale.php:8 Stack trace: #0 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(356): ds_replace_sale_text() #1 [internal function]: do_shortcode_tag() #2 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(228): preg_replace_callback() #3 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-content/plugins/oxygen/component-framework/components/classes/shortcode.class.php(58): do_shortcode() #4 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(356): CT_Shortcode->add_shortcode() #5 [internal function]: do_shortcode_tag() #6 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(228): preg_replace_callback() #7 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-content/plugins/oxygen/component-framework/components/classes/div-block.class.php(47): do_shortcode() #8 /home/xxxxxxx.cloudwaysapps.com/ 於 /tmp/421-woo-shortcode-sale.php 在 8 線上 2022-08-04T05:44:16+00:00 CRITICAL Uncaught Error: Call to a member function get_stock_status() on null in /tmp/421-woo-shortcode-sale.php:8 Stack trace: #0 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(356): ds_replace_sale_text() #1 [internal function]: do_shortcode_tag() #2 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(228): preg_replace_callback() #3 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-content/plugins/oxygen/component-framework/components/classes/shortcode.class.php(58): do_shortcode() #4 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(356): CT_Shortcode->add_shortcode() #5 [internal function]: do_shortcode_tag() #6 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(228): preg_replace_callback() #7 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-content/plugins/oxygen/component-framework/components/classes/div-block.class.php(47): do_shortcode() #8 /home/xxxxxxx.cloudwaysapps.com/ 於 /tmp/421-woo-shortcode-sale.php 在 8 線上 2022-08-04T05:53:59+00:00 CRITICAL Uncaught Error: Call to a member function get_stock_status() on null in /tmp/421-woo-shortcode-sale.php:8 Stack trace: #0 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(356): ds_replace_sale_text() #1 [internal function]: do_shortcode_tag() #2 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(228): preg_replace_callback() #3 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-content/plugins/oxygen/component-framework/components/classes/shortcode.class.php(58): do_shortcode() #4 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(356): CT_Shortcode->add_shortcode() #5 [internal function]: do_shortcode_tag() #6 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(228): preg_replace_callback() #7 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-content/plugins/oxygen/component-framework/components/classes/div-block.class.php(47): do_shortcode() #8 /home/xxxxxxx.cloudwaysapps.com/ 於 /tmp/421-woo-shortcode-sale.php 在 8 線上 2022-08-04T05:53:59+00:00 CRITICAL Uncaught Error: Call to a member function get_stock_status() on null in /tmp/421-woo-shortcode-sale.php:8 Stack trace: #0 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(356): ds_replace_sale_text() #1 [internal function]: do_shortcode_tag() #2 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(228): preg_replace_callback() #3 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-content/plugins/oxygen/component-framework/components/classes/shortcode.class.php(58): do_shortcode() #4 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(356): CT_Shortcode->add_shortcode() #5 [internal function]: do_shortcode_tag() #6 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(228): preg_replace_callback() #7 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-content/plugins/oxygen/component-framework/components/classes/div-block.class.php(47): do_shortcode() #8 /home/xxxxxxx.cloudwaysapps.com/ 於 /tmp/421-woo-shortcode-sale.php 在 8 線上 2022-08-04T07:03:39+00:00 CRITICAL Uncaught Error: Call to a member function get_stock_status() on null in /tmp/421-woo-shortcode-sale.php:8 Stack trace: #0 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(356): ds_replace_sale_text() #1 [internal function]: do_shortcode_tag() #2 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(228): preg_replace_callback() #3 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-content/plugins/oxygen/component-framework/components/classes/shortcode.class.php(58): do_shortcode() #4 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(356): CT_Shortcode->add_shortcode() #5 [internal function]: do_shortcode_tag() #6 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(228): preg_replace_callback() #7 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-content/plugins/oxygen/component-framework/components/classes/div-block.class.php(47): do_shortcode() #8 /home/xxxxxxx.cloudwaysapps.com/ 於 /tmp/421-woo-shortcode-sale.php 在 8 線上 2022-08-04T07:03:39+00:00 CRITICAL Uncaught Error: Call to a member function get_stock_status() on null in /tmp/421-woo-shortcode-sale.php:8 Stack trace: #0 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(356): ds_replace_sale_text() #1 [internal function]: do_shortcode_tag() #2 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(228): preg_replace_callback() #3 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-content/plugins/oxygen/component-framework/components/classes/shortcode.class.php(58): do_shortcode() #4 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(356): CT_Shortcode->add_shortcode() #5 [internal function]: do_shortcode_tag() #6 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(228): preg_replace_callback() #7 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-content/plugins/oxygen/component-framework/components/classes/div-block.class.php(47): do_shortcode() #8 /home/xxxxxxx.cloudwaysapps.com/ 於 /tmp/421-woo-shortcode-sale.php 在 8 線上 2022-08-04T07:50:27+00:00 CRITICAL Uncaught Error: Call to a member function get_stock_status() on null in /tmp/421-woo-shortcode-sale.php:8 Stack trace: #0 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(356): ds_replace_sale_text() #1 [internal function]: do_shortcode_tag() #2 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(228): preg_replace_callback() #3 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-content/plugins/oxygen/component-framework/components/classes/shortcode.class.php(58): do_shortcode() #4 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(356): CT_Shortcode->add_shortcode() #5 [internal function]: do_shortcode_tag() #6 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(228): preg_replace_callback() #7 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-content/plugins/oxygen/component-framework/components/classes/div-block.class.php(47): do_shortcode() #8 /home/xxxxxxx.cloudwaysapps.com/ 於 /tmp/421-woo-shortcode-sale.php 在 8 線上 2022-08-04T07:50:28+00:00 CRITICAL Uncaught Error: Call to a member function get_stock_status() on null in /tmp/421-woo-shortcode-sale.php:8 Stack trace: #0 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(356): ds_replace_sale_text() #1 [internal function]: do_shortcode_tag() #2 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(228): preg_replace_callback() #3 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-content/plugins/oxygen/component-framework/components/classes/shortcode.class.php(58): do_shortcode() #4 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(356): CT_Shortcode->add_shortcode() #5 [internal function]: do_shortcode_tag() #6 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(228): preg_replace_callback() #7 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-content/plugins/oxygen/component-framework/components/classes/div-block.class.php(47): do_shortcode() #8 /home/xxxxxxx.cloudwaysapps.com/ 於 /tmp/421-woo-shortcode-sale.php 在 8 線上 2022-08-04T12:37:54+00:00 CRITICAL Uncaught Error: Call to a member function get_stock_status() on null in /tmp/421-woo-shortcode-sale.php:8 Stack trace: #0 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(356): ds_replace_sale_text() #1 [internal function]: do_shortcode_tag() #2 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(228): preg_replace_callback() #3 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-content/plugins/oxygen/component-framework/components/classes/shortcode.class.php(58): do_shortcode() #4 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(356): CT_Shortcode->add_shortcode() #5 [internal function]: do_shortcode_tag() #6 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(228): preg_replace_callback() #7 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-content/plugins/oxygen/component-framework/components/classes/div-block.class.php(47): do_shortcode() #8 /home/xxxxxxx.cloudwaysapps.com/ 於 /tmp/421-woo-shortcode-sale.php 在 8 線上 2022-08-04T12:41:53+00:00 CRITICAL Uncaught Error: Call to a member function get_stock_status() on null in /tmp/421-woo-shortcode-sale.php:8 Stack trace: #0 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(356): ds_replace_sale_text() #1 [internal function]: do_shortcode_tag() #2 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(228): preg_replace_callback() #3 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-content/plugins/oxygen/component-framework/components/classes/shortcode.class.php(58): do_shortcode() #4 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(356): CT_Shortcode->add_shortcode() #5 [internal function]: do_shortcode_tag() #6 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(228): preg_replace_callback() #7 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-content/plugins/oxygen/component-framework/components/classes/div-block.class.php(47): do_shortcode() #8 /home/xxxxxxx.cloudwaysapps.com/ 於 /tmp/421-woo-shortcode-sale.php 在 8 線上 2022-08-04T12:42:24+00:00 CRITICAL Uncaught Error: Call to a member function get_stock_status() on null in /tmp/421-woo-shortcode-sale.php:8 Stack trace: #0 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(356): ds_replace_sale_text() #1 [internal function]: do_shortcode_tag() #2 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(228): preg_replace_callback() #3 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-content/plugins/oxygen/component-framework/components/classes/shortcode.class.php(58): do_shortcode() #4 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(356): CT_Shortcode->add_shortcode() #5 [internal function]: do_shortcode_tag() #6 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(228): preg_replace_callback() #7 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-content/plugins/oxygen/component-framework/components/classes/div-block.class.php(47): do_shortcode() #8 /home/xxxxxxx.cloudwaysapps.com/ 於 /tmp/421-woo-shortcode-sale.php 在 8 線上 2022-08-04T12:42:58+00:00 CRITICAL Uncaught Error: Call to a member function get_stock_status() on null in /tmp/421-woo-shortcode-sale.php:8 Stack trace: #0 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(356): ds_replace_sale_text() #1 [internal function]: do_shortcode_tag() #2 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(228): preg_replace_callback() #3 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-content/plugins/oxygen/component-framework/components/classes/shortcode.class.php(58): do_shortcode() #4 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(356): CT_Shortcode->add_shortcode() #5 [internal function]: do_shortcode_tag() #6 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(228): preg_replace_callback() #7 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-content/plugins/oxygen/component-framework/components/classes/div-block.class.php(47): do_shortcode() #8 /home/xxxxxxx.cloudwaysapps.com/ 於 /tmp/421-woo-shortcode-sale.php 在 8 線上 2022-08-04T12:44:25+00:00 CRITICAL Uncaught Error: Call to a member function get_stock_status() on null in /tmp/421-woo-shortcode-sale.php:8 Stack trace: #0 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(356): ds_replace_sale_text() #1 [internal function]: do_shortcode_tag() #2 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(228): preg_replace_callback() #3 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-content/plugins/oxygen/component-framework/components/classes/shortcode.class.php(58): do_shortcode() #4 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(356): CT_Shortcode->add_shortcode() #5 [internal function]: do_shortcode_tag() #6 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(228): preg_replace_callback() #7 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-content/plugins/oxygen/component-framework/components/classes/div-block.class.php(47): do_shortcode() #8 /home/xxxxxxx.cloudwaysapps.com/ 於 /tmp/421-woo-shortcode-sale.php 在 8 線上 2022-08-04T14:03:55+00:00 CRITICAL Uncaught Error: Call to a member function get_stock_status() on null in /tmp/421-woo-shortcode-sale.php:8 Stack trace: #0 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(356): ds_replace_sale_text() #1 [internal function]: do_shortcode_tag() #2 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(228): preg_replace_callback() #3 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-content/plugins/oxygen/component-framework/components/classes/shortcode.class.php(58): do_shortcode() #4 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(356): CT_Shortcode->add_shortcode() #5 [internal function]: do_shortcode_tag() #6 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(228): preg_replace_callback() #7 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-content/plugins/oxygen/component-framework/components/classes/div-block.class.php(47): do_shortcode() #8 /home/xxxxxxx.cloudwaysapps.com/ 於 /tmp/421-woo-shortcode-sale.php 在 8 線上 2022-08-04T14:03:56+00:00 CRITICAL Uncaught Error: Call to a member function get_stock_status() on null in /tmp/421-woo-shortcode-sale.php:8 Stack trace: #0 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(356): ds_replace_sale_text() #1 [internal function]: do_shortcode_tag() #2 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(228): preg_replace_callback() #3 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-content/plugins/oxygen/component-framework/components/classes/shortcode.class.php(58): do_shortcode() #4 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(356): CT_Shortcode->add_shortcode() #5 [internal function]: do_shortcode_tag() #6 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-includes/shortcodes.php(228): preg_replace_callback() #7 /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-content/plugins/oxygen/component-framework/components/classes/div-block.class.php(47): do_shortcode() #8 /home/xxxxxxx.cloudwaysapps.com/ 於 /tmp/421-woo-shortcode-sale.php 在 8 線上
I will hide the site url
### WordPress Environment ### WordPress address (URL): https://xxxxx Site address (URL): https://xxxxx WC Version: 6.7.0 REST API Version: ? 6.7.0 WC Blocks Version: ? 7.8.3 Action Scheduler Version: ? 3.4.0 Log Directory Writable: ? WP Version: 6.0.1 WP Multisite: – WP Memory Limit: 2 GB WP Debug Mode: – WP Cron: ? Language: en_US External object cache: ? ### Server Environment ### Server Info: Apache/2.4.51 (Debian) PHP Version: 7.4.27 PHP Post Max Size: 100 MB PHP Time Limit: 120 PHP Max Input Vars: 10000 cURL Version: 7.64.0 OpenSSL/1.1.1d SUHOSIN Installed: – MySQL Version: 5.5.5-10.4.20-MariaDB-1:10.4.20+maria~buster-log Max Upload Size: 100 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 6.7.0 WC Database Prefix: wp_ Total Database Size: 209.82MB Database Data Size: 147.83MB Database Index Size: 61.99MB wp_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_order_itemmeta: Data: 0.09MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_actions: Data: 1.02MB + Index: 0.16MB + Engine InnoDB wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_logs: Data: 1.03MB + Index: 0.13MB + Engine InnoDB wp_bv_fw_requests: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_bv_ip_store: Data: 0.34MB + Index: 0.31MB + Engine InnoDB wp_bv_lp_requests: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_duplicator_pro_entities: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_duplicator_pro_packages: Data: 0.19MB + Index: 0.02MB + Engine InnoDB wp_fc_campaigns: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_fc_campaign_emails: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_fc_campaign_url_metrics: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_fc_funnels: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_fc_funnel_metrics: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_fc_funnel_sequences: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_fc_funnel_subscribers: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_fc_lists: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_fc_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_fc_sequence_tracker: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_fc_smart_links: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_fc_subscribers: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_fc_subscriber_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_fc_subscriber_notes: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_fc_subscriber_pivot: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_fc_tags: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_fc_url_stores: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_ff_scheduled_actions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_fluentform_draft_submissions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_fluentform_entry_details: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_fluentform_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_fluentform_form_analytics: Data: 0.05MB + Index: 0.00MB + Engine InnoDB wp_fluentform_form_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_fluentform_logs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_fluentform_order_items: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_fluentform_submissions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_fluentform_submission_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_fluentform_subscriptions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_fluentform_transactions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_fsmpt_email_logs: Data: 0.42MB + Index: 0.00MB + Engine InnoDB wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_micro_revisions: Data: 59.52MB + Index: 0.00MB + Engine InnoDB wp_options: Data: 8.06MB + Index: 0.17MB + Engine InnoDB wp_pmxe_exports: Data: 0.22MB + Index: 0.00MB + Engine InnoDB wp_pmxe_google_cats: Data: 0.39MB + Index: 0.00MB + Engine InnoDB wp_pmxe_posts: Data: 0.42MB + Index: 0.00MB + Engine InnoDB wp_pmxe_templates: Data: 0.14MB + Index: 0.00MB + Engine InnoDB wp_pmxi_files: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_pmxi_hash: Data: 0.30MB + Index: 0.00MB + Engine InnoDB wp_pmxi_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_pmxi_images: Data: 0.23MB + Index: 0.00MB + Engine InnoDB wp_pmxi_imports: Data: 0.50MB + Index: 0.00MB + Engine InnoDB wp_pmxi_posts: Data: 1.52MB + Index: 0.00MB + Engine InnoDB wp_pmxi_templates: Data: 0.20MB + Index: 0.00MB + Engine InnoDB wp_postmeta: Data: 29.52MB + Index: 14.86MB + Engine InnoDB wp_posts: Data: 12.52MB + Index: 2.08MB + Engine InnoDB wp_post_views: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_rank_math_analytics_keyword_manager: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_rank_math_analytics_objects: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_rank_math_internal_links: Data: 0.28MB + Index: 0.14MB + Engine InnoDB wp_rank_math_internal_meta: Data: 0.25MB + Index: 0.00MB + Engine InnoDB wp_reviewx_criterias: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_reviewx_process_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_reviewx_reminder_email: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_searchwp_index: Data: 9.52MB + Index: 20.06MB + Engine InnoDB wp_searchwp_log: Data: 0.06MB + Index: 0.05MB + Engine InnoDB wp_searchwp_status: Data: 0.08MB + Index: 0.11MB + Engine InnoDB wp_searchwp_tokens: Data: 2.52MB + Index: 5.55MB + Engine InnoDB wp_shortpixel_folders: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_shortpixel_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_shortpixel_postmeta: Data: 0.16MB + Index: 0.08MB + Engine InnoDB wp_shortpixel_queue: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_simple_history: Data: 1.52MB + Index: 0.31MB + Engine InnoDB wp_simple_history_contexts: Data: 3.52MB + Index: 4.03MB + Engine InnoDB wp_social_users: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_swiss_knife_scripts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_termmeta: Data: 1.52MB + Index: 0.70MB + Engine InnoDB wp_terms: Data: 0.30MB + Index: 0.38MB + Engine InnoDB wp_term_relationships: Data: 1.38MB + Index: 1.30MB + Engine InnoDB wp_term_taxonomy: Data: 0.23MB + Index: 0.28MB + Engine InnoDB wp_trp_dictionary_zh_hk_en_hk: Data: 1.52MB + Index: 1.88MB + Engine InnoDB wp_trp_dictionary_zh_hk_en_us: Data: 0.06MB + Index: 0.05MB + Engine InnoDB wp_trp_gettext_en_hk: Data: 0.33MB + Index: 0.39MB + Engine InnoDB wp_trp_gettext_en_us: Data: 0.47MB + Index: 0.58MB + Engine InnoDB wp_trp_gettext_zh_hk: Data: 1.52MB + Index: 0.75MB + Engine InnoDB wp_trp_original_meta: Data: 0.09MB + Index: 0.13MB + Engine InnoDB wp_trp_original_strings: Data: 1.52MB + Index: 1.52MB + Engine InnoDB wp_usermeta: Data: 0.06MB + Index: 0.03MB + Engine InnoDB wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_bundle_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_product_attributes_lookup: Data: 0.11MB + Index: 0.11MB + Engine InnoDB wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_product_meta_lookup: Data: 0.52MB + Index: 0.94MB + Engine InnoDB wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfpklist_template_data: Data: 0.11MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_bundled_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_bundled_items: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpgb_cache: Data: 0.17MB + Index: 0.00MB + Engine InnoDB wp_wpgb_cards: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wpgb_facets: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wpgb_grids: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wpgb_index: Data: 1.52MB + Index: 3.05MB + Engine InnoDB wp_wpsr_caches: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpsr_reviews: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wt_abandonment_coupon: Data: 0.05MB + Index: 0.00MB + Engine InnoDB ### Post Type Counts ### acf-field: 54 acf-field-group: 6 acfe-dop: 2 attachment: 4365 ct_template: 23 faq: 23 fc_template: 1 is_search_form: 1 language_switcher: 4 nav_menu_item: 36 oembed_cache: 2 page: 25 post: 21 product: 1493 product_variation: 1049 rank_math_schema: 1 revision: 86 scorg: 19 shop_coupon: 2 shop_order: 12 shop_order_refund: 3 wp_block: 3 wp_global_styles: 1 wpsr_social_chats: 1 yaymail_template: 11 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (68) ### Hydrogen Pack: by Clean Plugins – 1.4.0 Advanced Custom Fields: Extended: by ACF Extended – 0.8.8.7 Advanced Custom Fields PRO: by Delicious Brains – 5.12.3 Advanced Product Fields for WooCommerce: by StudioWombat – 1.5.1 Breeze: by Cloudways – 2.0.7 Bulk remove posts from category: by MasterNs – 3.3 Custom Post Type UI: by WebDevStudios – 1.12.1 Disable All WordPress Updates: by Oliver Schl?be – 1.7.0 Duplicator Pro: by Snap Creek – 4.5.5.2 Duplicator Pro: by Snap Creek – 4.5.5.2 Easy Auto SKU Generator for WooCommerce: by Dan Zakirov – 1.1.2 Advanced Scripts: by Clean Plugins – 2.3.4 Favorites: by Kyle Phillips – 2.3.2 Flexible Shipping PRO: by Octolize – 2.10.0 Flexible Shipping: by Octolize – 4.13.2 FluentSMTP: by FluentSMTP & WPManageNinja Team – 2.1.2 Fluent Forms: by Contact Form - WPManageNinja LLC – 4.3.9 Fluent Forms Pro Add On Pack: by Fluent Forms – 4.3.9 GazChap's WooCommerce Auto Category Product Thumbnails: by Gareth 'GazChap' Griffiths – 1.4 HappyFiles Pro: by Codeer – 1.7 WP All Import - Rank Math SEO Add-On: by WP All Import – 1.1 MalCare WordPress Security Plugin - Malware Scanner, Cleaner, Security Firewall: by MalCare Security – 4.78 Microthemer: by Themeover – 7.1.5.3 mPDF addon for PDF Invoices: by WebToffee – 1.0.6 My Custom Functionality: by Your Name – 1.0.0 Nextend Social Login: by Nextendweb – 3.1.5 Nextend Social Login Pro Addon: by Nextendweb – 3.1.5 OxyNinja: by OxyNinja – 3.5.2 Oxy Toolbox: by Gagan S Goraya Sridhar Katakam – 1.5.6 OxyExtras: by OxyExtras – 1.4.3 Oxygen Elements for WooCommerce: by Soflyy – 1.4 Oxygen: by Soflyy – 3.9 Oxy Ultimate Woo: by Paul Chinmoy – 1.4.12 Post Views Counter: by Digital Factory – 1.3.11 Resize Image After Upload: by ShortPixel – 1.8.6 SearchWP Live Ajax Search: by SearchWP LLC – 1.7.2 SearchWP WooCommerce Integration: by SearchWP – 1.3.10 SearchWP: by SearchWP – 4.2.3 Rank Math SEO PRO: by Rank Math – 3.0.15.1 Rank Math SEO: by Rank Math – 1.0.94 ShortPixel Image Optimizer: by ShortPixel – 5.0.5 Simple History: by P?r Thernstr?m – 3.3.0 TranslatePress - Business: by Cozmoslabs Razvan Mocanu Madalin Ungureanu – 1.1.6 TranslatePress - Multilingual: by Cozmoslabs Razvan Mocanu Madalin Ungureanu Cristophor Hurduban – 2.3.3 User Role Editor: by Vladimir Garagulya – 4.63 Shipping Method Description for WooCommerce: by Thomas Charbit – 1.2.6 Additional Variation Images Gallery for WooCommerce: by Emran Ahmed – 1.3.7 WooCommerce Custom Payment Gateway Pro: by WPRuby – 2.4.1 WooCommerce Stripe Gateway: by WooCommerce – 6.5.0 WooCommerce Min/Max Quantities: by WooCommerce – 2.4.25 WooCommerce Custom Payment Gateway: by WPRuby – 1.3.5 WooCommerce PayPal Payments: by WooCommerce – 1.9.1 WooCommerce Product Bundles: by WooCommerce – 6.15.5 WooCommerce: by Automattic – 6.7.0 WP All Export Pro: by Soflyy – 1.7.7 WP All Import Pro: by Soflyy – 4.7.3 WP Grid Builder - Oxygen: by Lo?c Blascos – 1.1.0 WP Grid Builder: by Lo?c Blascos – 1.6.8 WP Social Ninja Pro: by WPManageNinja LLC – 3.6.0 WP Social Ninja: by WPManageNinja LLC – 3.6.1 WP All Export - ACF Export Add-On Pro: by Soflyy – 1.0.4 WP All Export - WooCommerce Export Add-On Pro: by Soflyy – 1.0.5 WP All Import - ACF Add-On: by Soflyy – 3.3.6 WP All Import - User Import Add-On Pro: by Soflyy – 1.1.6 WP All Import - WooCommerce Import Add-On Pro: by Soflyy – 3.3.1 Smart Coupons for WooCommerce Pro: by WebToffee – 2.0.4 WooCommerce PDF Invoices, Packing Slips, Delivery Notes & Shipping Labels (Pro): by WebToffee – 4.4.2 YayMail - WooCommerce Email Customizer: by YayCommerce – 3.0 ### Inactive Plugins (9) ### FluentCRM - Marketing Automation For WordPress: by Newsletter Team by Fluent CRM – 2.5.93 FluentCRM Pro: by Fluent CRM – 2.5.93 Kadence Blocks – Gutenberg Blocks for Page Builder Features: by Kadence WP – 2.4.3 Query Monitor: by John Blackbourn – 3.9.0 SearchWP Shortcodes: by SearchWP – 1.8.2 ShipAny: by ShipAny – 1.0.48 ShortPixel Adaptive Images: by ShortPixel – 3.4.2 WP Grid Builder - Caching: by Lo?c Blascos – 1.0.7 WP Sheet Editor - Post Types (Premium): by WP Sheet Editor – 2.24.15.2 ### Dropin Plugins (2) ### advanced-cache.php: advanced-cache.php object-cache.php: Object Cache Pro (Drop-in) ### Must Use Plugins (1) ### Object Cache Pro (MU): by Rhubarb Group – 1.14.5 ### Settings ### API Enabled: – Force SSL: – Currency: HKD (HK$) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 0 Taxonomies: Product Types: bundle (bundle) external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: – Enforce Approved Product Download Directories: – ### WC Pages ### Shop base: #52 - /shop-all/ Cart: #53 - /cart/ Checkout: #54 - /checkout/ My account: ? Page does not contain the [woocommerce_my_account] shortcode. Terms and conditions: #269 - /terms-and-conditions/ ### Theme ### Name: Twenty Twenty-One Version: 1.2 (update to version 1.6 is available) Author URL: https://www.ads-software.com/ Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme WooCommerce Support: ? ### Templates ### Overrides: /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-content/plugins/woo-variation-gallery/templates/product-images.php /home/xxxxxxx.cloudwaysapps.com/wmkfpnszey/public_html/wp-content/plugins/woo-variation-gallery/templates/product-thumbnails.php ### Product Bundles ### Database Version: 6.15.5 Loopback Test: ? Template Overrides: – ### WooCommerce PayPal Payments ### Onboarded: ? Shop country code: HK WooCommerce currency supported: ? PayPal card processing available in country: – Pay Later messaging available in country: – Webhook status: – Vault enabled: ? Logging enabled: – Reference Transactions: – Used PayPal Checkout plugin: – ### Admin ### Enabled Features: activity-panels analytics coupons customer-effort-score-tracks experimental-products-task experimental-import-products-task experimental-fashion-sample-products experimental-product-tour homescreen marketing mobile-app-banner navigation onboarding onboarding-tasks remote-inbox-notifications remote-free-extensions payment-gateway-suggestions shipping-label-banner subscriptions store-alerts transient-notices wc-pay-promotion wc-pay-welcome-page wc-pay-subscriptions-page Disabled Features: minified-js settings Daily Cron: ? Next scheduled: 2022-08-07 08:17:15 +08:00 Options: ? Notes: 72 Onboarding: completed ### Action Scheduler ### Complete: 301 Oldest: 2022-07-07 13:39:28 +0800 Newest: 2022-08-06 22:30:03 +0800 Pending: 3 Oldest: 2022-08-07 15:15:02 +0800 Newest: 2022-08-13 20:45:01 +0800 ### Status report information ### Generated at: 2022-08-06 22:32:04 +08:00
Hi @theblueli!
Thanks for the system status and error logs.
There’s a reference to the Oxygen builder plugin in the logs. Can you make sure the plugin is up to date? I can see you’re running version 3.9 but it seems a newer version is available (4.0.2) according to the changelog.
I also noticed that you have caching enabled on the server. Would you mind reaching out to your host and disabling caching?
### Dropin Plugins (2) ### advanced-cache.php: advanced-cache.php object-cache.php: Object Cache Pro (Drop-in) ### Must Use Plugins (1) ### Object Cache Pro (MU): by Rhubarb Group – 1.14.5
Would you try this on your end?
I made another try, on a freshly installed site. No cache, or object cache. Still no restock when refunding an order. Thanks
https://ibb.co/0YXG5HS### WordPress Environment ### WordPress address (URL): https://oxygen-qz5n2dadxgbnl.oxygen-demo.qsandbox.me Site address (URL): https://oxygen-qz5n2dadxgbnl.oxygen-demo.qsandbox.me WC Version: 6.7.0 REST API Version: ? 6.7.0 WC Blocks Version: ? 7.8.3 Action Scheduler Version: ? 3.4.0 Log Directory Writable: ? WP Version: 6.0.1 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ? Language: en_US External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.2.24-0ubuntu0.18.04.13 PHP Post Max Size: 256 MB PHP Time Limit: 90 PHP Max Input Vars: 1000 cURL Version: 7.58.0 OpenSSL/1.1.1 SUHOSIN Installed: – MySQL Version: 5.5.5-10.1.48-MariaDB-0ubuntu0.18.04.1 Max Upload Size: 256 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? Your server does not have the SoapClient class enabled - some gateway plugins which use SOAP may not work as expected. DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 6.7.0 WC Database Prefix: wp_ Total Database Size: 9.35MB Database Data Size: 7.37MB Database Index Size: 1.98MB wp_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_actions: Data: 0.02MB + Index: 0.11MB + Engine InnoDB wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_logs: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_options: Data: 4.48MB + Index: 0.06MB + Engine InnoDB wp_postmeta: Data: 1.48MB + Index: 0.06MB + Engine InnoDB wp_posts: Data: 0.09MB + Index: 0.06MB + Engine InnoDB wp_relevanssi: Data: 0.34MB + Index: 0.30MB + Engine InnoDB wp_relevanssi_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_relevanssi_stopwords: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wpgb_cards: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wpgb_facets: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wpgb_grids: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wpgb_index: Data: 0.02MB + Index: 0.05MB + Engine InnoDB ### Post Type Counts ### attachment: 7 ct_template: 6 page: 21 post: 13 product: 1 revision: 16 shop_order: 3 shop_order_refund: 3 wp_global_styles: 1 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (1) ### WooCommerce: by Automattic – 6.7.0 ### Inactive Plugins (3) ### Oxygen: by Soflyy – 4.0.2 Oxygen Elements for WooCommerce: by Soflyy – 2.0 Oxygen Gutenberg Integration: by Soflyy – 1.4.3 ### Must Use Plugins (1) ### sandbox.php: by – ### Settings ### API Enabled: – Force SSL: – Currency: USD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: – Enforce Approved Product Download Directories: ? ### WC Pages ### Shop base: #88 - /shop/ Cart: #89 - /cart/ Checkout: #90 - /checkout/ My account: #91 - /my-account/ Terms and conditions: ? Page not set ### Theme ### Name: Twenty Twenty-One Version: 1.6 Author URL: https://www.ads-software.com/ Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme WooCommerce Support: ? ### Templates ### Overrides: – ### Admin ### Enabled Features: activity-panels analytics coupons customer-effort-score-tracks experimental-products-task experimental-import-products-task experimental-fashion-sample-products experimental-product-tour homescreen marketing mobile-app-banner navigation onboarding onboarding-tasks remote-inbox-notifications remote-free-extensions payment-gateway-suggestions shipping-label-banner subscriptions store-alerts transient-notices wc-pay-promotion wc-pay-welcome-page wc-pay-subscriptions-page Disabled Features: minified-js settings Daily Cron: ? Next scheduled: 2022-08-08 04:59:22 +00:00 Options: ? Notes: 34 Onboarding: - ### Action Scheduler ### Complete: 14 Oldest: 2022-08-07 05:00:25 +0000 Newest: 2022-08-07 05:02:41 +0000 Pending: 4 Oldest: 2022-08-07 05:02:52 +0000 Newest: 2022-08-08 04:59:31 +0000 ### Status report information ### Generated at: 2022-08-07 05:03:11 +00:00
- This reply was modified 2 years, 3 months ago by theblueli.
Hello,
Would you try this on your end?
Did you issue a refund following the steps described here? https://woocommerce.com/document/woocommerce-refunds
This order note makes me think that you changed the order status to Refunded without actually issuing a refund.
I’ve also tried refunding an order and the stock was increased correctly:
https://snipboard.io/wB920l.jpgHello,
I recorded a quick video, I think my step is correct. I hit the left grey refund button and issue a refund manually. But the order note did not generate restock action.
https://streamable.com/4dgtfcThe wired thing here from your document demo.
refund with restocks option enable. The demo order note did not restock as well.
https://woocommerce.com/wp-content/uploads/2020/03/refunds-2.gifI don’t understand… why it works on your end but not working on my currently working-on project or a freshly installed site. And the Demo .GIF file above…
Thanks
Hi again.. I finally resolved my issue…
Instead of typing the amount I need to put the item qty in as a refund
This “Restock refunded items” checkbox is seriously a trap to me…Thanks now it works…
Hi @theblueli
Thank you for your reply! Glad to hear it works now!
One more thing I’d like to point out is that your PHP version needs to be updated.
PHP Version: 7.2.24-0ubuntu0.18.04.13
The recommended PHP is currently 7.4 or higher as written here: https://woocommerce.com/document/server-requirements/#section-2
If you don’t know how to update your PHP version, please contact your hosting provider and they should be able to help you with that.
In the meantime, I’ll go ahead and mark this thread as resolved. If you have a few minutes, we’d love if you could leave us a review: https://www.ads-software.com/support/plugin/woocommerce/reviews/
- This reply was modified 2 years, 3 months ago by MayKato.
- The topic ‘[BUG report] Restock when refunding order does not work at all’ is closed to new replies.