Fatal error: Uncaught Error: (RestApi.php on line 53)
-
Hi,
I getting this error intermittently (once every three to four times) when I visit my cart and checkout page. The error appears, independently, if I reach my checkout page through the Cart page or through a direct link.
I am also getting the same error every time I try to customize my cart page and checkout page with the WordPress Theme Customizer.
My current WordPress environment is:
WooCommerce version: 4.5.2
WooCommerce REST API package: 4.5.2 /home2/-/public_html/wp-content/plugins/woocommerce/includes
WooCommerce Blocks package: 3.4.0 /home2/-/public_html/wp-content/plugins/woo-gutenberg-products-block/
Action Scheduler package: 3.1.6 /home2/-/public_html/wp-content/plugins/woocommerce/packages/action-scheduler
WooCommerce Admin package: 1.5.0 /home2/-/public_html/wp-content/plugins/woocommerce/packages/woocommerce-admin
Log directory writable: /home2/-/public_html/wp-content/uploads/wc-logs/
WordPress version: 5.5.1
WordPress multisite: –
WordPress memory limit: 256 MB
WordPress debug mode: –
WordPress cron:
Language: en_US
External object cache: –My WordPress PHP is: 7.1.24
The error that appears is the following:
Fatal error: Uncaught Error: Call to undefined method WP_Error::get_data() in /public_html/wp-content/plugins/woo-gutenberg-products-block/src/RestApi.php:53 Stack trace: #0 /public_html/wp-content/plugins/woo-gutenberg-products-block/src/Assets.php(170): Automattic\WooCommerce\Blocks\RestApi->get_routes_from_namespace(‘wc/store’) #1 /public_html/wp-includes/class-wp-hook.php(287): Automattic\WooCommerce\Blocks\Assets::get_wc_block_data(Array) #2 /public_html/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array) #3 /public_html/wp-content/plugins/woo-gutenberg-products-block/src/Assets/AssetDataRegistry.php(131): apply_filters(‘woocommerce_sha…’, Array) #4 /public_html/wp-content/plugins/woo-gutenberg-products-block/src/Assets/AssetDataRegistry.php(222): Automattic\WooCommerce\Blocks\Assets\AssetDataRegistry->initialize_core_data() #5 /public_html/wp-includes/class-wp-hook.php(287): Automatt in?/public_html/wp-content/plugins/woo-gutenberg-products-block/src/RestApi.php?on line?53
There has been a critical error on your website.Let me know if there is any more info you need.
Thanks!
- The topic ‘Fatal error: Uncaught Error: (RestApi.php on line 53)’ is closed to new replies.