Error on custom_orders_table_usage_is_enabled function in order detail

With 3.5 plugin version, when I go to a WooCommerce order page this error is sent to my mail (my site is in italian):

Un errore di E_ERROR è stato causato nella linea 229 del file
Messaggio di errore: Uncaught Error: Call to a member function
custom_orders_table_usage_is_enabled() on null in
Stack trace:
#0 /xxxxxxxx/public_html/wp-includes/class-wp-hook.php(310):
#1 /xxxxxxxx/public_html/wp-includes/class-wp-hook.php(332):
WP_Hook->apply_filters(NULL, Array)
#2 /xxxxxxxx/public_html/wp-includes/plugin.php(517):
#3 /xxxxxxxx/public_html/wp-admin/includes/meta-boxes.php(1599):
do_action('add_meta_boxes', 'shop_order', Object(WP_Post))
#4 /xxxxxxxx/public_html/wp-admin/edit-form-advanced.php(271):
#5 /xxxxxxxx/public_html/wp-admin/post.php(206):
#6 {main}

My WP version is 6.1.1 and PHP version is 7.4.

  • This topic was modified 13 minutes ago by Scribit.


This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer