Website crashes eveytime an extention is added

Describe the issue in as much detail as possible. Please remove the sections below if the issue is obvious enough and doesn’t require extra details.

Steps to reproduce

every time an extension is added my wordpress crashes

Actual result

An error of type E_ERROR occurred on line 440 in the file /home/customer/www/ritmolocal.com/public_html/wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/CustomOrdersTableController.php.

Error Message:
Uncaught Exception: The authoritative table for orders storage can’t be changed while there are orders out of sync in /home/customer/www/ritmolocal.com/public_html/wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/CustomOrdersTableController.php:440

Stack trace:
#0 [internal function]: Automattic\WooCommerce\Internal\DataStores\Orders\CustomOrdersTableController->process_pre_update_option(‘no’, ‘woocommerce_cus…’, ‘yes’)
#1 /home/customer/www/ritmolocal.com/public_html/wp-content/plugins/woocommerce/src/Internal/Traits/AccessiblePrivateMethods.php(158): call_user_func_array(Array, Array)
#2 /home/customer/www/ritmolocal.com/public_html/wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\Internal\DataStores\Orders\CustomOrdersTableController->__call(‘process_pre_upd…’, Array)
#3 /home/customer/www/ritmolocal.com/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘no’, Array)
#4 /home/customer/www/ritmolocal.com/public_html/wp-includes/option.php(904): apply_filters(‘pre_update_opti…’, ‘no’, ‘woocommerce_cus…’, ‘yes’)
#5 /home/customer/www/ritmolocal.com/public_html/wp-content/plugins/hivepress/includes/components/class-woocommerce.php(96): update_option(‘woocommerce_cus…’, ‘no’)
#6 /home/customer/www/ritmolocal.com/public_html/wp-includes/class-wp-hook.php(324): HivePress\Components\WooCommerce->update_options(‘’)
#7 /home/customer/www/ritmolocal.com/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#8 /home/customer/www/ritmolocal.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#9 /home/customer/www/ritmolocal.com/public_html/wp-content/plugins/hivepress/includes/class-core.php(167): do_action(‘hivepress/v1/ac…’)
#10 /home/customer/www/ritmolocal.com/public_html/wp-includes/class-wp-hook.php(324): HivePress\Core->install(‘’)
#11 /home/customer/www/ritmolocal.com/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#12 /home/customer/www/ritmolocal.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#13 /home/customer/www/ritmolocal.com/public_html/wp-settings.php(704): do_action(‘init’)
#14 /home/customer/www/ritmolocal.com/public_html/wp-config.php(103): require_once(‘/home/customer/…’)
#15 /home/customer/www/ritmolocal.com/public_html/wp-load.php(50): require_once(‘/home/customer/…’)
#16 /home/customer/www/ritmolocal.com/public_html/wp-admin/admin.php(34): require_once(‘/home/customer/…’)
#17 /home/customer/www/ritmolocal.com/public_html/wp-admin/plugins.php(10): require_once(‘/home/customer/…’)
#18 {main}
thrown

Expected result

for the extension to install and WordPress site to work

.

Hi,

Please clarify which extension this error occurs after enabling so that we can check in more detail. Also, please check if the HPOS feature is disabled: High-Performance Order Storage Documentation - WooCommerce

when we add the statistics extension into the hivepress theme

Thanks. I will check the WooCommerce](High-Performance Order Storage Documentation - WooCommerce)

Thank you!

Hi,

Please note that this issue is definitely not in the Statistics extension, as the error says the following “The authoritative table for storage orders cannot be changed while there are orders out of sync”. That is, this error is related to storage, and it is solved by switching to compatibility mode and enabling WordPress posts storage (legacy), as shown in the documentation.