Fatal error: Uncaught Error: Call to undefined method WP_Error::get_data()
-
Hi,
today I found out in my website (which is still in development not reachable, so I can’t share a link to view) I’m receiving a lot of times a fatal error on my cart page and also on the checkout page, related to WP Blocks plugin.The error is the following (for Cart.php, but the same also for Checkout.php):
Fatal error: Uncaught Error: Call to undefined method WP_Error::get_data() in /web/htdocs/www.zona-tre.com/home/wp-content/plugins/woo-gutenberg-products-block/src/RestApi.php:64 Stack trace: #0 /web/htdocs/www.zona-tre.com/home/wp-content/plugins/woo-gutenberg-products-block/src/BlockTypes/AbstractBlock.php(349): Automattic\WooCommerce\Blocks\RestApi->get_routes_from_namespace('wc/store') #1 /web/htdocs/www.zona-tre.com/home/wp-content/plugins/woo-gutenberg-products-block/src/BlockTypes/Cart.php(88): Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->enqueue_data(Array) #2 /web/htdocs/www.zona-tre.com/home/wp-content/plugins/woo-gutenberg-products-block/src/BlockTypes/AbstractBlock.php(287): Automattic\WooCommerce\Blocks\BlockTypes\Cart->enqueue_data(Array) #3 /web/htdocs/www.zona-tre.com/home/wp-content/plugins/woo-gutenberg-products-block/src/BlockTypes/Cart.php(59): Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->enqueue_assets(Array) #4 /web/htdocs/www.zona-tre.com/home/wp-content/plugins/woo-gutenberg-p in /web/htdocs/www.zona-tre.com/home/wp-content/plugins/woo-gutenberg-products-block/src/RestApi.php on line 64
This is really important since it is in the final steps before customers buy our products so it’s necessary all works fine.
Do you know why this is happening and how to possibly fix this??Many thanks in advance.
Francesco
- The topic ‘Fatal error: Uncaught Error: Call to undefined method WP_Error::get_data()’ is closed to new replies.