Fatal error when in Customiser
-
#### WordPress 5.8 ####
#### Elementor 3.3.1 ####
#### Elementor Pro 3.3.5 ###
#### Astra Pro 3.5.8 ####
#### WooCommerce 5.5.2 ####When I’m on Customiser, displays the following fatal error:
Fatal error: Uncaught Error: Call to undefined method WP_Error::get_data() in /home/customer/www/lubrichem.com/public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/RestApi.php:64 Stack trace: #0 /home/customer/www/lubrichem.com/public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypes/AbstractBlock.php(349): Automattic\WooCommerce\Blocks\RestApi->get_routes_from_namespace(‘wc/store’) #1 /home/customer/www/lubrichem.com/public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypes/AbstractBlock.php(287): Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->enqueue_data(Array) #2 /home/customer/www/lubrichem.com/public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypes/AbstractBlock.php(84): Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->enqueue_assets(Array) #3 /home/customer/www/lubrichem.com/public_html/wp-includes/class-wp-block.php(221): Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->render_callbac in /home/customer/www/lubrichem.com/public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/RestApi.php on line 64
By deactivating WooCommerce, the error is gone but deactivating the plugin is not feasible.
Any way to fix this?
- The topic ‘Fatal error when in Customiser’ is closed to new replies.