Incorrect way to call status
-
Hi,
After upgrade to wordpress 5.4.2 and Woocommerce 4.2.2
Some error message show on customer’s feelback.
Please help to fix, thank you very much.
Here is the error message:
Notice: Incorrect way to call status. Order properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/oceanwp/page.php’), get_template_part, locate_template, load_template, require(‘/themes/oceanwp/partials/page/layout.php’), get_template_part, locate_template, load_template, require(‘/themes/oceanwp/partials/page/article.php’), the_content, apply_filters(‘the_content’), WP_Hook->apply_filters, do_shortcode, preg_replace_callback, do_shortcode_tag, WC_Shortcodes::my_account, WC_Shortcodes::shortcode_wrapper, WC_Shortcode_My_Account::output, WC_Shortcode_My_Account::my_account, wc_get_template, include(‘/plugins/woocommerce/templates/myaccount/my-account.php’), do_action(‘woocommerce_account_content’), WP_Hook->do_action, WP_Hook->apply_filters, woocommerce_account_content, do_action(‘woocommerce_account_view-order_endpoint’), WP_Hook->do_action, WP_Hook->apply_filters, woocommerce_account_view_order, WC in /home/website/wp-includes/functions.php on line 5167
- The topic ‘Incorrect way to call status’ is closed to new replies.